SwitchΒΆ

Feature Support
Sending yes
Receiving no
Config yes

Supported Brands

None

Sender Arguments

-t --on                  send an on signal
-f --off                 send an off signal
-i --id=id               control a device with this id

Config

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

Optional Settings

GUI 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