hi, the code below is from a user posted in this thread some replys above, whats wrong with it? it should start an automation for left and right button (ikea remote 5 button switch) , only the arguments are different? does anyone have a working automation for the 5 button ikea remote switch
{
"event_type": "zha_event",
"data": {
"unique_id": "0x1807:1:0x0005",
"device_ieee": "00:0d:6f:ff:fe:62:50:cf",
"command": "press",
"args": [
0,
1,
13,
0
]
},
"origin": "LOCAL",
"time_fired": "2019-08-19T00:32:25.590660+00:00",
"context": {
"id": "d344ee4083a34455aff7b04d3c66ba60",
"parent_id": null,
"user_id": null
}
}
Left arrow/button event:
Copy to clipboard
{
"event_type": "zha_event",
"data": {
"unique_id": "0x1807:1:0x0005",
"device_ieee": "00:0d:6f:ff:fe:62:50:cf",
"command": "press",
"args": [
1,
1,
13,
0
]
},
"origin": "LOCAL",
"time_fired": "2019-08-19T00:32:18.509855+00:00",
"context": {
"id": "8d9f0a3fa94745d7bbcfc019673b6db4",
"parent_id": null,
"user_id": null
}
}
Automation that triggers on either button being pressed:
Copy to clipboard
- id: '1562807168430'
alias: Basement Remote - right arrow press
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: '00:0d:6f:ff:fe:62:50:cf'
command: 'press'
args:
- 0
- 1
- 13
- 0
condition: []
action:
- service: light.toggle
data:
entity_id:
- light.basement_couch_lights_level
- light.basement_entry_lights_level
- light.right_overhead_lights_level
- light.left_overhead_lights_level
- light.basement_couch_lights_level