mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-03 17:48:59 +00:00
1.2 KiB
1.2 KiB
layout, title, description, date, sidebar, comments, sharing, footer
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Raspberry PI GPIO switch support | Instructions how to integrate the GPIO of a Raspberry PI into Home Assistant. | 2015-08-07 14:00 | false | false | true | true |

To use your Raspberry Pi's GPIO in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
switch:
platform: rpi_gpio
ports:
11: Fan Office
12: Light Desk
invert_logic: false
Configuration variables:
- ports array (Required): Array of used ports.
- port: name (Required): Your username for the Edimax switch.
- invert_logic (Optional): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).
For more details about the GPIO layout, visit the Wikipedia article about the Raspberry Pi.
If you are not running Raspbian Jessie, you will need to run Home Assistant as root.