User Tools

Site Tools


relay_v6_0

Relay

FeatureSupport
Sending
Receiving
Config

Supported Brands

None

Sender Arguments

-t --on           turn the relay on
-f --off          turn the relay off
-g --gpio=gpio    the gpio the relay is connected to

Config

 {
	"devices": {
		"switch": {
			"protocol": [ "relay" ],
			"id": [{
				"gpio": 1
			}],
			"state": "off"
		}
	},
	"gui": {
		"switch": {
			"name": "Relay Switch",
			"group": [ "Outside" ],
			"media": [ "all" ]
		}
	}
}

Optional Settings

Device Settings

SettingDefaultFormatDescription
default-state“off”StateDefault state of the relay

GUI Settings

SettingDefaultFormatDescription
readonly01 or 0Disable 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 22:09 (external edit)