Relay
None
-t --on turn the relay on -f --off turn the relay off -g --gpio=gpio the gpio the relay is connected to
"living": { "name": "Living", "switch": { "name": "switch", "protocol": [ "relay" ], "id": [{ "gpio": 1 }], "state": "off" }, }
Setting | Default | Format | Description |
---|---|---|---|
default-state | “off” | State | Default state of the relay |
gui-readonly | 0 | 1 or 0 | Disable controlling this device from the GUIs |
The relay protocol follows the wiringPi numbering as can be found here: https://projects.drogon.net/raspberry-pi/wiringpi/pins/