Raspberry PI GPIO Switch
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:
# Example configuration.yaml entry
switch:
- platform: rpi_gpio
ports:
11: Fan Office
12: Light Desk
Configuration variables:
- ports array (Required): Array of used ports.
- port: name (Required): Port numbers and corresponding names.
- 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.