Remove configuration details
This commit is contained in:
parent
0fda89e983
commit
7801489149
1 changed files with 2 additions and 24 deletions
|
@ -3,31 +3,9 @@ homeassistant.components.switch.rpi_gpio
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Allows to control the GPIO pins of a Raspberry Pi.
|
Allows to control the GPIO pins of a Raspberry Pi.
|
||||||
|
|
||||||
Note: To use RPi GPIO, Home Assistant must be run as root.
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/switch.rpi_gpio.html
|
||||||
Configuration:
|
|
||||||
|
|
||||||
To use the Raspberry GPIO switches you will need to add something like the
|
|
||||||
following to your configuration.yaml file.
|
|
||||||
|
|
||||||
switch:
|
|
||||||
platform: rpi_gpio
|
|
||||||
invert_logic: false
|
|
||||||
ports:
|
|
||||||
11: Fan Office
|
|
||||||
12: Light Desk
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
invert_logic
|
|
||||||
*Optional
|
|
||||||
If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH)
|
|
||||||
|
|
||||||
ports
|
|
||||||
*Required
|
|
||||||
An array specifying the GPIO ports to use and the name to use in the frontend.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
try:
|
try:
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
|
|
Loading…
Add table
Reference in a new issue