User Tools

Site Tools


relay_v6_0

Differences

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

Link to this comparison view

relay_v6_0 [2015/01/27 15:40]
curlymo created
relay_v6_0 [2015/11/27 21:09]
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":​ { 
- "​weather":​ { 
- "​name":​ "​Weather Station",​ 
- "​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| 
- 
-==== Notes ==== 
- 
-The relay protocol follows the wiringX numbering as can be found here: 
-http://​www.wiringx.org 
relay_v6_0.txt ยท Last modified: 2015/11/27 21:09 (external edit)