You can subscribe to specific events in developer tools -> events, I think you should subscribe to zha_event
No, you have to subscribe to it
OK so Iāve got it all working. Iām just using the on and off commands and the moment but am trying to think about the best ways to possibly use the dimmer buttons
when you just press the up dimmer you get this
{
"event_type": "zha_event",
"data": {
"unique_id": "0x212b:1:0x0008",
"device_ieee": "00:17:88:01:02:d4:35:36",
"command": "step",
"args": [
0,
30,
9
]
},
If you press and hold the up dimmer you get this for a button
{
"event_type": "zha_event",
"data": {
"unique_id": "0x212b:1:0x0008",
"device_ieee": "00:17:88:01:02:d4:35:36",
"command": "step",
"args": [
0,
56,
9
]
},
and then when you let go you get
{
"event_type": "zha_event",
"data": {
"unique_id": "0x212b:1:0x0008",
"device_ieee": "00:17:88:01:02:d4:35:36",
"command": "stop",
"args": []
},
Not sure if using the STOP command would offer any benefit in an automation or not.
Here is my basic on/off automations
- alias: Remote Control Kitchen Cabinet Lights On
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d4:35:36"
command: "on"
action:
- service: scene.turn_on
entity_id: scene.kitchen_cabinets_on
- alias: Remote Control Kitchen Cabinet Lights Off
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d4:35:36"
command: "off_with_effect"
action:
- service: scene.turn_on
entity_id: scene.kitchen_cabinets_off
Working on a couple automations and scripts for the hue dimmer, which Iāll share when done. I have a quick yaml question about the args: and how to handle it in my trigger/automation
Iām posting this without acually being at my HA system, so it could work, but was wondering if anyone had any experience about the proper formatting for args:
This would be just a push UPDATE; TESTED AND THIS WORKS
- alias: Shelf Lights Increase Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "your ieee here"
command: "step"
args: [0, 30, 9]
action:
- service: light.turn_on
data_template:
entity_id: light.shelf_only_color_lights
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- alias: Shelf Lights Decrease Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "your ieer here"
command: "step"
args: [1, 30, 9]
action:
- service: light.turn_on
data_template:
entity_id: light.shelf_only_color_lights
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
For press and hold - Tested working
- alias: Shelf Lights Increase Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "your ieer here"
command: "step"
args: [0, 56, 9]
action:
- service: script.turn_on
entity_id: script.increment_light
- alias: Shelf Lights Decrease Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "your ieer here"
command: "step"
args: [1, 56, 9]
action:
- service: script.turn_on
entity_id: script.decrement_light
- alias: Shelf Lights Stop scripts
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "your ieer here"
command: "stop"
action:
- service: script.turn_off
entity_id: script.increment_light
- service: script.turn_off
entity_id: script.decrement_light```
and the scripts
Scripts - Tested working
increment_light:
alias: Shelf Lights Dim
sequence:
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
decrement_light:
alias: Shelf Lights Brighten
sequence:
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- delay: 00:00:01
- service: light.turn_on
entity_id: light.shelf_only_color_lights
data_template:
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
The args above is what seems to come up with a button press (not hold). If this works, then Iāll set up another automation for the hold, that runs a brightness increase/decrease script and then stops the script when the zha_event command is āstopā
UPDATE: This works, for using the dimmer buttons as a dimmer. I created a light group for two hue lights, but I expect it work with any lights.
I feel like one thing that kept me on the Hue ecosystem was the ability to do cool things like color loop and the ability to dim lights with the dimmer.
These automations have worked for me I borrowed some of the yaml from other posts.
- alias: Remote Control Shelf Lights On
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "on"
action:
- service: scene.turn_on
entity_id: scene.shelf_lights_on
- alias: Remote Control Shelf Lights On
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "off_with_effect"
action:
- service: scene.turn_on
entity_id: scene.shelf_lights_off
- alias: Remote Control Kitchen Cabinet Lights On
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d4:35:36"
command: "on"
action:
- service: scene.turn_on
entity_id: scene.kitchen_cabinets_on
- alias: Remote Control Kitchen Cabinet Lights Off
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d4:35:36"
command: "off_with_effect"
action:
- service: scene.turn_on
entity_id: scene.kitchen_cabinets_off
- alias: Shelf Lights Increase Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "step"
args: [0, 30, 9]
action:
- service: light.turn_on
data_template:
entity_id: light.shelf_only_color_lights
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') < 230 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- alias: Shelf Lights Decrease Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "step"
args: [1, 30, 9]
action:
- service: light.turn_on
data_template:
entity_id: light.shelf_only_color_lights
brightness: >
{% if state_attr('light.shelf_only_color_lights' , 'brightness') > 25 %}
{{ state_attr('light.shelf_only_color_lights' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
- alias: Shelf Lights Increase Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "step"
args: [0, 56, 9]
action:
- service: script.turn_on
entity_id: script.increment_light
- alias: Shelf Lights Decrease Brightness
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "step"
args: [1, 56, 9]
action:
- service: script.turn_on
entity_id: script.decrement_light
- alias: Shelf Lights Stop scripts
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:1a:82:21"
command: "stop"
action:
- service: script.turn_off
entity_id: script.increment_light
- service: script.turn_off
entity_id: script.decrement_light
- alias: Color Loop All Downstairs
initial_state: false
trigger:
- platform: time_pattern
seconds: '/2'
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: light.turn_on
entity_id: light.downstairs_color_lights
data_template:
hs_color:
- "{{ (12 + (state_attr('light.downstairs_color_lights', 'hs_color')[0] or 0)) % 360 }}"
- 100
brightness_pct: 100
transition: 1
- alias: Color Loop Shelf Lights
initial_state: false
trigger:
- platform: time_pattern
seconds: '/2'
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: light.turn_on
entity_id: light.shelf_color_lights
data_template:
hs_color:
- "{{ (12 + (state_attr('light.shelf_color_lights', 'hs_color')[0] or 0)) % 360 }}"
- 100
brightness_pct: 100
transition: 1
- alias: Color Loop Living Room
initial_state: false
trigger:
- platform: time_pattern
seconds: '/2'
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: light.turn_on
entity_id: light.living_room_color_lights
data_template:
hs_color:
- "{{ (12 + (state_attr('light.living_room_color_lights', 'hs_color')[0] or 0)) % 360 }}"
- 100
brightness_pct: 100
transition: 1
- alias: Color Loop All Kitchen
initial_state: false
trigger:
- platform: time_pattern
seconds: '/2'
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: light.turn_on
entity_id: light.kitchen_color_lights
data_template:
hs_color:
- "{{ (12 + (state_attr('light.kitchen_color_lights', 'hs_color')[0] or 0)) % 360 }}"
- 100
brightness_pct: 100
transition: 1
- alias: Color Loop Kitchen Cabinets
initial_state: false
trigger:
- platform: time_pattern
seconds: '/2'
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: light.turn_on
entity_id: light.kitchen_cabinet_color_lights
data_template:
hs_color:
- "{{ (12 + (state_attr('light.kitchen_cabinet_color_lights', 'hs_color')[0] or 0)) % 360 }}"
- 100
brightness_pct: 100
transition: 1
and here is my light groups in a light.yaml file
- platform: group
name: All Downstairs Color Lights
entities:
- light.left_shelf_lights
- light.tv_backlights
- light.right_shelf_lights
- light.kitchen_cabinet_tops
- light.kitchen_cabinet_bottoms
- light.living_room_lamp_one
- light.living_room_lamp_two
- light.alcove_light
- platform: group
name: Living Room Color Lights
entities:
- light.left_shelf_lights
- light.tv_backlights
- light.right_shelf_lights
- light.living_room_lamp_one
- light.living_room_lamp_two
- platform: group
name: Kitchen Color Lights
entities:
- light.kitchen_cabinet_tops
- light.kitchen_cabinet_bottoms
- light.alcove_light
- platform: group
name: Shelf Color Lights
entities:
- light.left_shelf_lights
- light.tv_backlights
- light.right_shelf_lights
- platform: group
name: Shelf Only Color Lights
entities:
- light.left_shelf_lights
- light.right_shelf_lights
- platform: group
name: Kitchen Cabinet Color Lights
entities:
- light.kitchen_cabinet_tops
- light.kitchen_cabinet_bottoms
Of course your light groups will vary, but the idea is the same. This work well. Iāll probaby set up another automation to turn on/off the color loops, but it could be set up with a dimmer as well. Enjoy
Hello !
The dimmer switch actually sends step commands repeatedly as long as you keep pressing the brightness buttons, only the args are different. Thus you donāt actually need scripts to handle the brightness as start/stop of events.
Iām using a ConBee II and the following shorter automations work perfect for me :
# Hue Dimmer Switch salon (00:17:88:01:02:d5:b7:f2)
- alias: Switch lights on in Salon
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d5:b7:f2"
command: "on"
action:
- service: light.turn_on
entity_id: light.pied_bureau
- alias: Switch lights off in Salon
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d5:b7:f2"
command: "off_with_effect"
action:
- service: light.turn_off
entity_id: light.pied_bureau
- alias: Increase brightness in Salon
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d5:b7:f2"
command: "step"
args: [0, 30, 9]
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d5:b7:f2"
command: "step"
args: [0, 56, 9]
action:
- service: light.turn_on
data_template:
entity_id: light.pied_bureau
brightness: >
{% if state_attr('light.pied_bureau' , 'brightness') < 230 %}
{{ state_attr('light.pied_bureau' , 'brightness') + 25 }}
{% else %} 255 {% endif %}
- alias: Decrease brightness in Salon
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d5:b7:f2"
command: "step"
args: [1, 30, 9]
- platform: event
event_type: zha_event
event_data:
device_ieee: "00:17:88:01:02:d5:b7:f2"
command: "step"
args: [1, 56, 9]
action:
- service: light.turn_on
data_template:
entity_id: light.pied_bureau
brightness: >
{% if state_attr('light.pied_bureau' , 'brightness') > 25 %}
{{ state_attr('light.pied_bureau' , 'brightness') - 25 }}
{% else %} 1 {% endif %}
Thank a lot @ptdalen for the initial automations !!
For reference for people using Node Red. I have the remote working with single, double, triple, and 4 tap configurations, as well as single tap and hold incr/decr brightness. The heavy lifting is all done inside the call service data section with JSONata for the logic.
Find my Flow below:
[{"id":"3d99f4a4.0746cc","type":"server-events","z":"4b320b95.36aee4","name":"ZHA Event","server":"e7d779a8.bab228","event_type":"zha_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":120,"y":640,"wires":[["42b796fa.1021c8"]]},{"id":"42b796fa.1021c8","type":"switch","z":"4b320b95.36aee4","name":"On/Off/Step","property":"payload.event.command","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off_with_effect","vt":"str"},{"t":"eq","v":"step","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":290,"y":640,"wires":[["1d7869af.d74fe6"],["5cb4eab9.40f864"],["f853924.2219e7"]]},{"id":"1d7869af.d74fe6","type":"timed-counter","z":"4b320b95.36aee4","name":"","timelimit":350,"timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":520,"y":500,"wires":[["a48d0942.5ed8d8"]]},{"id":"5cb4eab9.40f864","type":"timed-counter","z":"4b320b95.36aee4","name":"","timelimit":350,"timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":520,"y":640,"wires":[["6c39c10b.afef4"]]},{"id":"f853924.2219e7","type":"switch","z":"4b320b95.36aee4","name":"Type of Step","property":"payload.event","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"msg.payload.event.args=[0,30,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[0,56,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[1,30,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[1,56,9]","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":510,"y":880,"wires":[["476e8a84.a189a4","a3ef5fa1.d47ba"],["476e8a84.a189a4","a3ef5fa1.d47ba"],["8973ea79.aa50d8","7015d5da.676d7c"],["8973ea79.aa50d8","7015d5da.676d7c"]]},{"id":"a48d0942.5ed8d8","type":"switch","z":"4b320b95.36aee4","name":"1/2/3 Taps","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":690,"y":500,"wires":[["c1eec69d.ff3ea8"],["2ab5e284.5f8c3e"],["6f228a32.8b6404"]]},{"id":"6c39c10b.afef4","type":"switch","z":"4b320b95.36aee4","name":"1/2/3/4+ Taps","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"gte","v":"4","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":700,"y":640,"wires":[["61b125d6.8077dc"],["c24eeb94.515f38"],["c470b1ec.771b6"],["cf34c612.079148"]]},{"id":"476e8a84.a189a4","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Ceiling Lights Brightness Incr","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\t \"brightness\": (\t $entities(\"light.master_bedroom_ceiling_lights\").state = \"on\"\t ) ? $min(\t [\t $entities(\"light.master_bedroom_ceiling_lights\").attributes.brightness + 25,\t 255\t \t ]\t \t ):0\t\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1000,"y":820,"wires":[[]]},{"id":"a3ef5fa1.d47ba","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Lamps Brightness Incr","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\t \"brightness\": ($entities(\"light.master_bedroom_lamps\").state = \"on\") ? $min(\t [\t $entities(\"light.master_bedroom_lamps\").attributes.brightness + 25,\t 255\t ]\t ):0\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":980,"y":860,"wires":[[]]},{"id":"8973ea79.aa50d8","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Ceiling Lights Brightness Dec","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\t \"brightness\": (\t $entities(\"light.master_bedroom_ceiling_lights\").state = \"on\"\t ) ? $max(\t [\t $entities(\"light.master_bedroom_ceiling_lights\").attributes.brightness - 25,\t 0\t \t ]\t \t ):0\t\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1000,"y":920,"wires":[[]]},{"id":"7015d5da.676d7c","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Lamps Brightness Incr","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\t \"brightness\": ($entities(\"light.master_bedroom_lamps\").state = \"on\") ? $max(\t [\t $entities(\"light.master_bedroom_lamps\").attributes.brightness - 25,\t 0\t ]\t ):0\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":980,"y":960,"wires":[[]]},{"id":"c1eec69d.ff3ea8","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Lamp Lights On","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\"brightness\": 255}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":440,"wires":[[]]},{"id":"2ab5e284.5f8c3e","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Lights On","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom","data":"{\"brightness\": 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":500,"wires":[[]]},{"id":"6f228a32.8b6404","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Ceiling Lights On","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\"brightness\": 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":560,"wires":[[]]},{"id":"61b125d6.8077dc","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Lamp Lights Off","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom_lamps","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":600,"wires":[[]]},{"id":"c24eeb94.515f38","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Lights Off","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":660,"wires":[[]]},{"id":"c470b1ec.771b6","type":"api-call-service","z":"4b320b95.36aee4","name":"MBR Ceiling Lights Off","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom_ceiling_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":720,"wires":[[]]},{"id":"cf34c612.079148","type":"api-call-service","z":"4b320b95.36aee4","name":"All Lights Off","server":"e7d779a8.bab228","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"all","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":930,"y":780,"wires":[[]]},{"id":"e7d779a8.bab228","type":"server","z":"","name":"Home Assistant"}]
Has anyone found a way to expose the ālong pressā? It appears the same as short press for some reason. Deconz does not have this problem.
This is what I get for both short and long press:
INFO event_monitor: zha_event: {ādevice_ieeeā: ā00:17:88:01:08:0b:4b:a0ā, āunique_idā: ā00:17:88:01:08:0b:4b:a0:1:0x0006ā, āendpoint_idā: 1, ācluster_idā: 6, ācommandā: āonā, āargsā: }
Iāve tested your flow (with some modifications) as a replacement for an AppDaemon control for my office light, but Iāve hit a snag: It seems that every single Hue remote in the house can now control the light in my office! Iām guessing thereās a way to parse the ID for the remote being used at the time, but Iām damned if I can figure it out. Can anyone help me here?
Import the following flow to see an example how multiple remotes can be handled. Double click on the comment node for more information.
[{"id":"5269581c.739f","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"83c0d793.ed0b48","type":"server-events","z":"5269581c.739f","name":"ZHA Event","server":"ac0c1ba5.61668","event_type":"zha_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":200,"y":660,"wires":[["e497f3a6.bdd578","dd5750cc.e6d0c"]]},{"id":"5ea3072.de3fcf8","type":"switch","z":"5269581c.739f","name":"On/Off/Step","property":"payload.event.command","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off_with_effect","vt":"str"},{"t":"eq","v":"step","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":830,"y":340,"wires":[["c99eff2a.daa648"],["ec23ef8f.3f72b8"],["63ce2cbf.8e750c"]]},{"id":"c99eff2a.daa648","type":"timed-counter","z":"5269581c.739f","name":"","timelimit":350,"timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":1060,"y":200,"wires":[["bc9b25fb.c833b"]]},{"id":"ec23ef8f.3f72b8","type":"timed-counter","z":"5269581c.739f","name":"","timelimit":350,"timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":1060,"y":340,"wires":[["7ab7bc74.1bbb3c"]]},{"id":"63ce2cbf.8e750c","type":"switch","z":"5269581c.739f","name":"Type of Step","property":"payload.event","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"msg.payload.event.args=[0,30,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[0,56,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[1,30,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[1,56,9]","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":1050,"y":580,"wires":[["b85e3408.f9f92","729a8745.df03b"],["b85e3408.f9f92","729a8745.df03b"],["becfcd60.84b1c8","a9a3af2b.30e17"],["becfcd60.84b1c8","a9a3af2b.30e17"]]},{"id":"bc9b25fb.c833b","type":"switch","z":"5269581c.739f","name":"1/2/3 Taps","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":1230,"y":200,"wires":[["59cf298c.6b482"],["4aa2a54f.adee94"],["76546ba8.440f4c"]]},{"id":"7ab7bc74.1bbb3c","type":"switch","z":"5269581c.739f","name":"1/2/3/4+ Taps","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"gte","v":"4","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":1240,"y":340,"wires":[["77d38d4c.85ffd4"],["1d0ad06f.222d7"],["ac20b739.94ee58"],["c835d525.2b9db8"]]},{"id":"b85e3408.f9f92","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights Brightness Incr","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\t \"brightness\": (\t $entities(\"light.master_bedroom_ceiling_lights\").state = \"on\"\t ) ? $min(\t [\t $entities(\"light.master_bedroom_ceiling_lights\").attributes.brightness + 25,\t 255\t \t ]\t \t ):0\t\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1540,"y":520,"wires":[[]]},{"id":"729a8745.df03b","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamps Brightness Incr","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\t \"brightness\": ($entities(\"light.master_bedroom_lamps\").state = \"on\") ? $min(\t [\t $entities(\"light.master_bedroom_lamps\").attributes.brightness + 25,\t 255\t ]\t ):0\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":560,"wires":[[]]},{"id":"becfcd60.84b1c8","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights Brightness Dec","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\t \"brightness\": (\t $entities(\"light.master_bedroom_ceiling_lights\").state = \"on\"\t ) ? $max(\t [\t $entities(\"light.master_bedroom_ceiling_lights\").attributes.brightness - 25,\t 0\t \t ]\t \t ):0\t\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1540,"y":620,"wires":[[]]},{"id":"a9a3af2b.30e17","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamps Brightness Incr","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\t \"brightness\": ($entities(\"light.master_bedroom_lamps\").state = \"on\") ? $max(\t [\t $entities(\"light.master_bedroom_lamps\").attributes.brightness - 25,\t 0\t ]\t ):0\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":660,"wires":[[]]},{"id":"59cf298c.6b482","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamp Lights On","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\"brightness\": 255}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":140,"wires":[[]]},{"id":"4aa2a54f.adee94","type":"api-call-service","z":"5269581c.739f","name":"MBR Lights On","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom","data":"{\"brightness\": 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":200,"wires":[[]]},{"id":"76546ba8.440f4c","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights On","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\"brightness\": 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":260,"wires":[[]]},{"id":"77d38d4c.85ffd4","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamp Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom_lamps","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":300,"wires":[[]]},{"id":"1d0ad06f.222d7","type":"api-call-service","z":"5269581c.739f","name":"MBR Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1480,"y":360,"wires":[[]]},{"id":"ac20b739.94ee58","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom_ceiling_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":420,"wires":[[]]},{"id":"c835d525.2b9db8","type":"api-call-service","z":"5269581c.739f","name":"All Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"all","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1470,"y":480,"wires":[[]]},{"id":"e84c5f9f.8dca78","type":"switch","z":"5269581c.739f","name":"On/Off/Step","property":"payload.event.command","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off_with_effect","vt":"str"},{"t":"eq","v":"step","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":850,"y":960,"wires":[["7e3b6ec8.37fd28"],["c59ede7c.d45d9"],["318e1007.1b8058"]]},{"id":"7e3b6ec8.37fd28","type":"timed-counter","z":"5269581c.739f","name":"","timelimit":350,"timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":1080,"y":820,"wires":[["a97b1b3c.85edf"]]},{"id":"c59ede7c.d45d9","type":"timed-counter","z":"5269581c.739f","name":"","timelimit":350,"timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":1080,"y":960,"wires":[["75294b48.f85444"]]},{"id":"318e1007.1b8058","type":"switch","z":"5269581c.739f","name":"Type of Step","property":"payload.event","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"msg.payload.event.args=[0,30,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[0,56,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[1,30,9]","vt":"jsonata"},{"t":"jsonata_exp","v":"msg.payload.event.args=[1,56,9]","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":1070,"y":1200,"wires":[["6866ec90.a31184","910adda8.427ff"],["6866ec90.a31184","910adda8.427ff"],["1a299f8.d3b01e1","9efed178.94068"],["1a299f8.d3b01e1","9efed178.94068"]]},{"id":"a97b1b3c.85edf","type":"switch","z":"5269581c.739f","name":"1/2/3 Taps","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":1250,"y":820,"wires":[["9a097fc5.bd89c"],["3f21b029.c3472"],["c2f0c2d5.5d4d48"]]},{"id":"75294b48.f85444","type":"switch","z":"5269581c.739f","name":"1/2/3/4+ Taps","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"gte","v":"4","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":1260,"y":960,"wires":[["6a72187c.3148d8"],["6e705015.3e18d8"],["cfd490a9.ca293"],["7b2a9839.e1c738"]]},{"id":"6866ec90.a31184","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights Brightness Incr","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\t \"brightness\": (\t $entities(\"light.master_bedroom_ceiling_lights\").state = \"on\"\t ) ? $min(\t [\t $entities(\"light.master_bedroom_ceiling_lights\").attributes.brightness + 25,\t 255\t \t ]\t \t ):0\t\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1560,"y":1140,"wires":[[]]},{"id":"910adda8.427ff","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamps Brightness Incr","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\t \"brightness\": ($entities(\"light.master_bedroom_lamps\").state = \"on\") ? $min(\t [\t $entities(\"light.master_bedroom_lamps\").attributes.brightness + 25,\t 255\t ]\t ):0\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1540,"y":1180,"wires":[[]]},{"id":"1a299f8.d3b01e1","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights Brightness Dec","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\t \"brightness\": (\t $entities(\"light.master_bedroom_ceiling_lights\").state = \"on\"\t ) ? $max(\t [\t $entities(\"light.master_bedroom_ceiling_lights\").attributes.brightness - 25,\t 0\t \t ]\t \t ):0\t\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1560,"y":1240,"wires":[[]]},{"id":"9efed178.94068","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamps Brightness Incr","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\t \"brightness\": ($entities(\"light.master_bedroom_lamps\").state = \"on\") ? $max(\t [\t $entities(\"light.master_bedroom_lamps\").attributes.brightness - 25,\t 0\t ]\t ):0\t\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1540,"y":1280,"wires":[[]]},{"id":"9a097fc5.bd89c","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamp Lights On","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_lamps","data":"{\"brightness\": 255}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":760,"wires":[[]]},{"id":"3f21b029.c3472","type":"api-call-service","z":"5269581c.739f","name":"MBR Lights On","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom","data":"{\"brightness\": 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":820,"wires":[[]]},{"id":"c2f0c2d5.5d4d48","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights On","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.master_bedroom_ceiling_lights","data":"{\"brightness\": 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":880,"wires":[[]]},{"id":"6a72187c.3148d8","type":"api-call-service","z":"5269581c.739f","name":"MBR Lamp Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom_lamps","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":920,"wires":[[]]},{"id":"6e705015.3e18d8","type":"api-call-service","z":"5269581c.739f","name":"MBR Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":980,"wires":[[]]},{"id":"cfd490a9.ca293","type":"api-call-service","z":"5269581c.739f","name":"MBR Ceiling Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.master_bedroom_ceiling_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":1040,"wires":[[]]},{"id":"7b2a9839.e1c738","type":"api-call-service","z":"5269581c.739f","name":"All Lights Off","server":"ac0c1ba5.61668","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"all","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1490,"y":1100,"wires":[[]]},{"id":"e497f3a6.bdd578","type":"switch","z":"5269581c.739f","name":"Per device switch","property":"payload.event.device_ieee","propertyType":"msg","rules":[{"t":"eq","v":"00:17:88:01:04:f7:19:35","vt":"str"},{"t":"eq","v":"00:17:88:01:04:f7:19:37","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":470,"y":660,"wires":[["5ea3072.de3fcf8"],["e84c5f9f.8dca78"]]},{"id":"dd5750cc.e6d0c","type":"debug","z":"5269581c.739f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.event.device_ieee","targetType":"msg","statusVal":"","statusType":"auto","x":430,"y":860,"wires":[]},{"id":"d160d98e.a33418","type":"comment","z":"5269581c.739f","name":"Double click for help","info":"The debug node below will output the device id, review the debug panel to obtain the different device id's. Then input the device id into the \"Per device switch\" node. ","x":390,"y":820,"wires":[]},{"id":"ac0c1ba5.61668","type":"server","z":"","name":"Home Assistant"}]
Thanks for your flow, it showed me what I needed.
Sorry to post on a very old topic but my on/off events donāt work and adding a debug just after the ZHA event, I see:
object
event_type: "zha_event"
entity_id: undefined
event: object
origin: "LOCAL"
time_fired: "2022-09-09T20:08:56.652382+00:00"
context: object
Did you ever sort this out?