User Tools

Site Tools


gpio_switch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gpio_switch [2015/01/17 10:50]
Luppie Removed the -t -f option, since this is not a relay.
gpio_switch [2015/11/27 22:09]
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 relay is connected to 
- 
-</​code> ​ 
- 
-==== Config ==== 
-<​code>​ 
-        "​living":​ { 
-                "​name":​ "​Living",​ 
-                "​switch":​ { 
-                        "​name":​ "​switch",​ 
-                        "​protocol":​ [ "​gpio_switch"​ ], 
- "​id":​ [{ 
- "​gpio":​ 1 
- }], 
-                        "​state":​ "​off"​ 
-                }, 
-        } 
-</​code>​ 
- 
-==== Optional Settings ==== 
- 
-^Setting^Default^Format^Description^ 
-|gui-readonly|0|1 or 0|Disable controlling this device from the GUIs| 
- 
-==== Notes ==== 
- 
-The GPIO switch protocol follows the wiringPi numbering as can be found here: https://​projects.drogon.net/​raspberry-pi/​wiringpi/​pins/​ 
- 
-Or the Radxa numbering as found here: 
-http://​radxa.com/​Rock/​extension_header 
gpio_switch.txt ยท Last modified: 2015/11/27 22:09 (external edit)