mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-05 18:48:59 +00:00
1.0 KiB
1.0 KiB
layout, title, description, date, sidebar, comments, sharing, footer
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Raspberry PI GPIO sensor support | Instructions how to integrate the GPIO sensor capability of a Raspberry PI into Home Assistant. | 2015-08-30 19: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
sensor:
platform: rpi_gpio
pull_mode: "UP"
value_high: "Active"
value_low: "Inactive"
ports:
11: PIR Office
12: PIR Bedroom
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.