@getsmokes - I don’t have one for this specific device, but here are some flows of mine using zha_event listener and then using a switch node to identify and sort based on args. Hope this helps. On a somewhat related note, I’ve mostly abandoned this approach (although it works well) for most remotes and instead use ControllerX in AppDaemon as I find it faster to do with less configuration, especially if you have many remotes.
[
{
"id": "dca4b308.456bf",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Kitchen Table",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.kitchen_table_lights",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1000,
"y": 260,
"wires": [
[]
]
},
{
"id": "ba747c39.b24b",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Kitchen Island",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "toggle",
"entityId": "light.kitchen_island_lights",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1000,
"y": 300,
"wires": [
[]
]
},
{
"id": "a3e1398a.bfaab8",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Kitchen Nook",
"server": "b3217b27.630be8",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "toggle",
"entityId": "switch.kitchen_nook",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 990,
"y": 220,
"wires": [
[]
]
},
{
"id": "1ea4600f.43ae5",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Click Type",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "button_single",
"vt": "str"
},
{
"t": "eq",
"v": "button_double",
"vt": "str"
},
{
"t": "eq",
"v": "button_hold",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 750,
"y": 260,
"wires": [
[
"a3e1398a.bfaab8"
],
[
"dca4b308.456bf"
],
[
"ba747c39.b24b"
]
]
},
{
"id": "59236fc9.73ae6",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "SmartThings Button",
"property": "payload.event.device_ieee",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "28:6d:97:00:01:04:4a:a9",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 500,
"y": 280,
"wires": [
[
"1ea4600f.43ae5"
]
]
},
{
"id": "de2429e9.e6e878",
"type": "server-events",
"z": "7a66c3a0.b7162c",
"name": "ZHA Event Listener",
"server": "b3217b27.630be8",
"event_type": "zha_event",
"x": 230,
"y": 140,
"wires": [
[
"59236fc9.73ae6",
"fd7dc985.d34168",
"1e6d5c24.1a7054"
]
]
},
{
"id": "b117b8f3.33bbf8",
"type": "api-render-template",
"z": "7a66c3a0.b7162c",
"name": "Dim",
"server": "b3217b27.630be8",
"template": "{{ [10, state_attr('light.office_work_light', 'brightness')|int(0) - 26]|max }}",
"resultsLocation": "payload",
"resultsLocationType": "msg",
"templateLocation": "template",
"templateLocationType": "msg",
"x": 1050,
"y": 440,
"wires": [
[
"1f295def.eab742"
]
]
},
{
"id": "1f295def.eab742",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Office Work Light DOWN",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.office_work_light",
"data": "{\"brightness\":\"{{payload}}\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1290,
"y": 440,
"wires": [
[]
]
},
{
"id": "187bc16d.726b0f",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Left or Right",
"property": "payload.event.args",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0,1,13,0",
"vt": "str"
},
{
"t": "eq",
"v": "1,1,13,0",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 870,
"y": 420,
"wires": [
[
"c83636a0.fb7358"
],
[
"b117b8f3.33bbf8"
]
]
},
{
"id": "802c6f0f.7db3d",
"type": "api-render-template",
"z": "7a66c3a0.b7162c",
"name": "Brighten",
"server": "b3217b27.630be8",
"template": "{{ [255, state_attr('light.office_work_light', 'brightness')|int(0) + 26]|min }}",
"resultsLocation": "payload",
"resultsLocationType": "msg",
"templateLocation": "template",
"templateLocationType": "msg",
"x": 860,
"y": 360,
"wires": [
[
"c2171733.0bb528"
]
]
},
{
"id": "c83636a0.fb7358",
"type": "api-render-template",
"z": "7a66c3a0.b7162c",
"name": "Brighten",
"server": "b3217b27.630be8",
"template": "{{ [255, state_attr('light.office_work_light', 'brightness')|int(0) + 26]|min }}",
"resultsLocation": "payload",
"resultsLocationType": "msg",
"templateLocation": "template",
"templateLocationType": "msg",
"x": 1060,
"y": 400,
"wires": [
[
"c2171733.0bb528"
]
]
},
{
"id": "c2171733.0bb528",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Office Work Light UP",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.office_work_light",
"data": "{\"brightness\":\"{{payload}}\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1280,
"y": 360,
"wires": [
[]
]
},
{
"id": "91632225.4549d",
"type": "api-render-template",
"z": "7a66c3a0.b7162c",
"name": "Dim",
"server": "b3217b27.630be8",
"template": "{{ [10, state_attr('light.office_work_light', 'brightness')|int(0) - 26]|max }}",
"resultsLocation": "payload",
"resultsLocationType": "msg",
"templateLocation": "template",
"templateLocationType": "msg",
"x": 870,
"y": 460,
"wires": [
[
"1f295def.eab742"
]
]
},
{
"id": "13ddaa82.3f8e65",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Toggle",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.office_work_light",
"data": "{\"brightness_pct\":\"50\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 880,
"y": 520,
"wires": [
[]
]
},
{
"id": "2c48235e.c18d1c",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Click Type",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "step_with_on_off",
"vt": "str"
},
{
"t": "eq",
"v": "press",
"vt": "str"
},
{
"t": "eq",
"v": "step",
"vt": "str"
},
{
"t": "eq",
"v": "toggle",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 670,
"y": 400,
"wires": [
[
"802c6f0f.7db3d"
],
[
"187bc16d.726b0f"
],
[
"91632225.4549d"
],
[
"13ddaa82.3f8e65"
]
]
},
{
"id": "fd7dc985.d34168",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Ikea 5 Button Remote",
"property": "payload.event.device_ieee",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "d0:cf:5e:ff:fe:10:2d:61",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 460,
"y": 400,
"wires": [
[
"2c48235e.c18d1c"
]
]
},
{
"id": "1e6d5c24.1a7054",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Family Room Lamp Remote",
"property": "payload.event.device_ieee",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "ff:ff:00:0f:e7:ff:50:4b",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 520,
"y": 20,
"wires": [
[
"ef05a218.44eae"
]
]
},
{
"id": "ef05a218.44eae",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Click Type",
"property": "payload.event.command",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "move_to_level_with_on_off",
"vt": "str"
},
{
"t": "eq",
"v": "step_with_on_off",
"vt": "str"
},
{
"t": "eq",
"v": "step",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 810,
"y": 40,
"wires": [
[
"576c494c.b233a8"
],
[
"bcbb6397.d2d8d"
],
[
"c0ca892f.65e538"
]
]
},
{
"id": "576c494c.b233a8",
"type": "switch",
"z": "7a66c3a0.b7162c",
"name": "Top or Bottom",
"property": "payload.event.args",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "254",
"vt": "str"
},
{
"t": "cont",
"v": "0",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 1020,
"y": 20,
"wires": [
[
"efbe94af.be8918"
],
[
"1ab29345.a5734d"
]
]
},
{
"id": "efbe94af.be8918",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Family Room Lamps ON",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.family_room_lamps",
"data": "{\"brightness\":\"254\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1310,
"y": 60,
"wires": [
[]
]
},
{
"id": "1ab29345.a5734d",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Family Room Lamps OFF",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_off",
"entityId": "light.family_room_lamps",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1310,
"y": 120,
"wires": [
[]
]
},
{
"id": "9c9e04d3.885568",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Familty Room Lamps UP",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.family_room_lamps",
"data": "{\"brightness\":\"{{payload}}\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1310,
"y": 180,
"wires": [
[]
]
},
{
"id": "ebe296db.b0a258",
"type": "api-call-service",
"z": "7a66c3a0.b7162c",
"name": "Family Room Lamps DOWN",
"server": "b3217b27.630be8",
"version": "1",
"debugenabled": false,
"service_domain": "light",
"service": "turn_on",
"entityId": "light.family_room_lamps",
"data": "{\"brightness\":\"{{payload}}\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1320,
"y": 240,
"wires": [
[]
]
},
{
"id": "bcbb6397.d2d8d",
"type": "api-render-template",
"z": "7a66c3a0.b7162c",
"name": "Brighten",
"server": "b3217b27.630be8",
"template": "{{ [255, state_attr('light.family_room_lamps', 'brightness')|int(0) + 26]|min }}",
"resultsLocation": "payload",
"resultsLocationType": "msg",
"templateLocation": "template",
"templateLocationType": "msg",
"x": 1020,
"y": 80,
"wires": [
[
"9c9e04d3.885568",
"4534b473.458ccc"
]
]
},
{
"id": "c0ca892f.65e538",
"type": "api-render-template",
"z": "7a66c3a0.b7162c",
"name": "Dim",
"server": "b3217b27.630be8",
"template": "{{ [10, state_attr('light.family_room_lamps', 'brightness')|int(0) - 26]|max }}",
"resultsLocation": "payload",
"resultsLocationType": "msg",
"templateLocation": "template",
"templateLocationType": "msg",
"x": 1010,
"y": 140,
"wires": [
[
"ebe296db.b0a258",
"4534b473.458ccc"
]
]
},
{
"id": "4534b473.458ccc",
"type": "stoptimer",
"z": "7a66c3a0.b7162c",
"duration": "750",
"units": "Millisecond",
"payloadtype": "num",
"payloadval": "0",
"name": "750 ms timer",
"x": 1270,
"y": 300,
"wires": [
[
"1e6d5c24.1a7054"
],
[]
]
},
{
"id": "b3217b27.630be8",
"type": "server",
"z": "",
"name": "Home Assistant",
"legacy": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true
}
]