Raspberry PI GPIO Switch Support


The rpi_gpio switch platform allows you to control 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
# Example configuration.yaml entry
switch:
  platform: rpi_gpio
  ports:
    11: Fan Office
    12: Light Desk

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.