mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Remove configuration details
This commit is contained in:
parent
0b7c407519
commit
07a75c5eeb
@ -1,41 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
homeassistant.components.sensor.rpi_gpio
|
homeassistant.components.sensor.rpi_gpio
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Allows to configure a binary state sensor using RPi GPIO.
|
Allows to configure a binary state sensor using RPi GPIO.
|
||||||
To avoid having to run Home Assistant as root when using this component,
|
|
||||||
run a Raspbian version released at or after September 29, 2015.
|
|
||||||
|
|
||||||
sensor:
|
For more details about this platform, please refer to the documentation at
|
||||||
platform: rpi_gpio
|
https://home-assistant.io/components/sensor.rpi_gpio.html
|
||||||
pull_mode: "UP"
|
|
||||||
value_high: "Active"
|
|
||||||
value_low: "Inactive"
|
|
||||||
ports:
|
|
||||||
11: PIR Office
|
|
||||||
12: PIR Bedroom
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
pull_mode
|
|
||||||
*Optional
|
|
||||||
The internal pull to use (UP or DOWN). Default is UP.
|
|
||||||
|
|
||||||
value_high
|
|
||||||
*Optional
|
|
||||||
The value of the sensor when the port is HIGH. Default is "HIGH".
|
|
||||||
|
|
||||||
value_low
|
|
||||||
*Optional
|
|
||||||
The value of the sensor when the port is LOW. Default is "LOW".
|
|
||||||
|
|
||||||
bouncetime
|
|
||||||
*Optional
|
|
||||||
The time in milliseconds for port debouncing. Default is 50ms.
|
|
||||||
|
|
||||||
ports
|
|
||||||
*Required
|
|
||||||
An array specifying the GPIO ports to use and the name to use in the frontend.
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user