Raspberry PI GPIO Sensor Support


The rpi_gpio sensor platform allows you to read sensor values of the GPIOs of your Raspberry Pi.

To use your Raspberry Pi’s GPIO in your installation, add the following to your configuration.yaml file:

1
2
3
4
5
6
7
8
9
# 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.