User Tools

Site Tools


relay

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

        "living": {
                "name": "Living",
                "switch": {
                        "name": "switch",
                        "protocol": [ "relay" ],
			"id": [{
				"gpio": 1
			}],
                        "state": "off"
                },
        }

Optional Settings

SettingDefaultFormatDescription
default-state“off”StateDefault state of the relay
gui-readonly01 or 0Disable controlling this device from the GUIs

Notes

The relay 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

relay.txt · Last modified: 2015/11/27 22:09 (external edit)