Relay
None
-t --on turn the relay on -f --off turn the relay off -g --gpio=gpio the gpio the relay is connected to
{ "devices": { "switch": { "protocol": [ "relay" ], "id": [{ "gpio": 1 }], "state": "off" } }, "gui": { "switch": { "name": "Relay Switch", "group": [ "Outside" ], "media": [ "all" ] } } }
Device Settings
Setting | Default | Format | Description |
---|---|---|---|
default-state | “off” | State | Default state of the relay |
GUI Settings
Setting | Default | Format | Description |
---|---|---|---|
readonly | 0 | 1 or 0 | Disable controlling this device from the GUIs |
confirm | 0 | 1 or 0 | Ask for confirmation when switching device |
The relay protocol follows the wiringX numbering as can be found here: http://www.wiringx.org