This shows you the differences between two versions of the page.
— |
relay_v7_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> | ||
+ | { | ||
+ | "devices": { | ||
+ | "switch": { | ||
+ | "protocol": [ "relay" ], | ||
+ | "id": [{ | ||
+ | "gpio": 1 | ||
+ | }], | ||
+ | "state": "off" | ||
+ | } | ||
+ | }, | ||
+ | "gui": { | ||
+ | "switch": { | ||
+ | "name": "Relay Switch", | ||
+ | "group": [ "Outside" ], | ||
+ | "media": [ "all" ] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | ==== Optional Settings ==== | ||
+ | |||
+ | 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| | ||
+ | |||
+ | ==== Notes ==== | ||
+ | |||
+ | The relay protocol follows the wiringX numbering as can be found here: | ||
+ | http://www.wiringx.org |