GPIO Switch
None
-g --gpio=gpio the gpio the switch is connected to
"devices": { "Lamp": { "protocol": [ "gpio_switch" ], "id": [{ "gpio": 1 }], "state": "off" } } "gui": { "Lamp": { "name": "Switch", "group": [ "Switches" ], "media": [ "all" ] } }
GUI Settings
Setting | Default | Format | Description |
---|---|---|---|
readonly | 1 | 1 | This switch is always readonly |
The GPIO switch protocol follows the wiringX numbering as can be found here: http://wiringx.org