Raspberry PI GPIO Switch
The rpi_rf
switch platform allows you to control devices over 433/315MHz LPD/SRD signals with generic low-cost GPIO RF modules on a Raspberry Pi.
To use your Raspberry Pi with a 433MHz adaptor in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry switch: platform: rpi_rf gpio: 17 switches: bedroom_light: code_on: 1234567 code_off: 1234568 ambilight: pulselength: 200 code_on: 987654 code_off: 133742
Configuration variables:
- gpio array (Required): Array of used ports.
- switches: (Required): Array of switches.
- [name] (Requireld): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).
- code_on (Requireld): Code to switch the device on, eg.
987654
. - code_off (Requireld): Code to switch the device off, eg.
133742
. - pulselength (Optional): Length of the pulse
- code_on (Requireld): Code to switch the device on, eg.
- [name] (Requireld): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).