This shows you the differences between two versions of the page.
— |
gpio_switch_v7_0 [2015/11/27 22:09] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **GPIO Switch** | ||
+ | ^Feature^Support^ | ||
+ | |Sending|{{http://wiki.pilight.org/lib/images/notsupported.gif}}| | ||
+ | |Receiving|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |Config|{{http://wiki.pilight.org/lib/images/supported.gif}}| | ||
+ | |||
+ | ==== Supported Brands ==== | ||
+ | |||
+ | //None// | ||
+ | |||
+ | ==== Sender Arguments ==== | ||
+ | <code> | ||
+ | -g --gpio=gpio the gpio the switch is connected to | ||
+ | |||
+ | </code> | ||
+ | |||
+ | ==== Config ==== | ||
+ | <code> | ||
+ | "devices": { | ||
+ | "Lamp": { | ||
+ | "protocol": [ "gpio_switch" ], | ||
+ | "id": [{ | ||
+ | "gpio": 1 | ||
+ | }], | ||
+ | "state": "off" | ||
+ | } | ||
+ | } | ||
+ | "gui": { | ||
+ | "Lamp": { | ||
+ | "name": "Switch", | ||
+ | "group": [ "Switches" ], | ||
+ | "media": [ "all" ] | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | ==== Optional Settings ==== | ||
+ | |||
+ | GUI Settings | ||
+ | |||
+ | ^Setting^Default^Format^Description^ | ||
+ | |readonly|1|1|This switch is always readonly| | ||
+ | |confirm|0|1 or 0|Ask for confirmation when switching device| | ||
+ | |||
+ | ==== Notes ==== | ||
+ | |||
+ | The GPIO switch protocol follows the wiringX numbering as can be found here: http://wiringx.org |