GPIO SwitchΒΆ

Feature Support
Sending no
Receiving yes
Config yes

Supported Brands

Brand Protocol
Raspberry Pi cpu_temp
Hummingboard cpu_temp

Sender Arguments

-g --gpio=gpio    the gpio the switch is connected to

Config

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
  "devices": {
    "switch": {
      "protocol": [ "gpio_switch" ],
      "id": [{
        "gpio": 1
      }],
      "state": "off"
    }
  },
  "gui": {
    "switch": {
      "name": "Switch",
      "group": [ "Misc" ],
      "media": [ "all" ]
    }
  }
}
Option Value
gpio 0 - 255
state on / off

Note

The gpio value should be a valid GPIO for the platform used

Optional Settings

Device Settings

Setting Default Format Description
readonly 0 1 or 0 Disable controlling this device from the GUIs
confirm 0 1 or 0 Ask for confirmation when switching device

Comments

The GPIO switch protocol follows the wiringX numbering as can be found here: http://wiringx.org