This shows you the differences between two versions of the page.
— |
relay_v5_0 [2015/11/27 22:09] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **Relay** | ||
+ | ^Feature^Support^ | ||
+ | |Sending|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |Receiving|{{http://wiki.pilight.org/lib/images/notsupported.gif}}| | ||
+ | |Config|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |||
+ | ==== Supported Brands ==== | ||
+ | |||
+ | //None// | ||
+ | |||
+ | ==== Sender Arguments ==== | ||
+ | <code> | ||
+ | -t --on turn the relay on | ||
+ | -f --off turn the relay off | ||
+ | -g --gpio=gpio the gpio the relay is connected to | ||
+ | |||
+ | </code> | ||
+ | |||
+ | ==== Config ==== | ||
+ | <code> | ||
+ | "living": { | ||
+ | "name": "Living", | ||
+ | "switch": { | ||
+ | "name": "switch", | ||
+ | "protocol": [ "relay" ], | ||
+ | "id": [{ | ||
+ | "gpio": 1 | ||
+ | }], | ||
+ | "state": "off" | ||
+ | }, | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | ==== Optional Settings ==== | ||
+ | |||
+ | ^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| | ||
+ | |||
+ | ==== Notes ==== | ||
+ | |||
+ | The relay protocol follows the wiringPi numbering as can be found here: https://projects.drogon.net/raspberry-pi/wiringpi/pins/ |