IR RemoteΒΆ

Description

Switch devices based on your IR remote buttons

Devices

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
{
  "devices": {
    "television": {
    "protocol": [ "kaku_switch" ],
    "id": [{
      "id": 123456,
      "unit": 0
    }],
    "state": "off"
  },
  "remote": {
    "protocol": [ "lirc" ],
    "id": [{
      "remote": "logitech"
    }],
    "code": "000000000000e290",
    "repeat": 2,
    "button": "KEY_P"
  }
}

Rule

1
2
3
4
5
6
{
  "remote-television-switch": {
    "rule": "IF remote.button IS KEY_P AND remote.repeat == 0 THEN toggle DEVICE television BETWEEN on AND off",
    "active": 1
  }
}

Changed in version 8.1.0.

1
2
3
4
5
6
{
  "remote-television-switch": {
    "rule": "IF remote.button == KEY_P AND remote.repeat == 0 THEN toggle DEVICE television BETWEEN on AND off",
    "active": 1
  }
}