Hue dimmer switch, and node red, without a hue bridge... I can't find a button trigger

I have 2 Hue 4 button dimmer switches, connected directly to my HA box using the ZHA integration. Looking at the device in HA I can see the following options
:

Create automation with device
Do something when...
Device offline
"Turn on" button pressed
"Turn off" button pressed
"Dim up" button pressed
"Dim down" button pressed
"Turn on" button continuously pressed
"Turn off" button continuously pressed
"Dim up" button continuously pressed
"Dim down" button continuously pressed
"Turn on" button double clicked
"Turn off" button double clicked
"Dim up" button double clicked
"Dim down" button double clicked
"Turn on" button triple clicked
"Turn off" button triple clicked
"Dim up" button triple clicked
"Dim down" button triple clicked
"Turn on" button quadruple clicked
"Turn off" button quadruple clicked
"Dim up" button quadruple clicked
"Dim down" button quadruple clicked
"Turn on" button quintuple clicked
"Turn off" button quintuple clicked
"Dim up" button quintuple clicked
"Dim down" button quintuple clicked
"Turn on" button released
"Turn off" button released
"Dim up" button released
"Dim down" button released
"Turn on" button released after long press
"Turn off" button released after long press
"Dim up" button released after long press
"Dim down" button released after long press
Living Room Switch 1 power battery level changes
Only do something if...
Current Living Room Switch 1 power battery level

However when I try to use this device as a node red trigger all I can see is

sensor.living_room_switch_1_power

where living_room_switch_1 is the name of the device. both are the same. Am I being an idiot and missing something obvious?

I can get a zha event in node red, one button press typically produces 3 events but I don’t understand how to make use of that.
zha events from one button press:

zha_event : msg.payload : Object
object
event_type: "zha_event"
entity_id: undefined
event: object
device_ieee: "00:17:88:01:03:c9:34:89"
unique_id: "00:17:88:01:03:c9:34:89:1:0x0006"
endpoint_id: 1
cluster_id: 6
command: "on"
args: array[0]
origin: "LOCAL"
time_fired: "2020-11-20T20:51:24.070732+00:00"
context: object
id: "893027e808354d928a00f49341a75a9f"
parent_id: null
user_id: null
20/11/2020, 20:51:14node: 100ef75b.ff0f39
zha_event : msg.payload : Object
object
event_type: "zha_event"
entity_id: undefined
event: object
device_ieee: "00:17:88:01:03:c9:34:89"
unique_id: "00:17:88:01:03:c9:34:89:2:0xfc00"
endpoint_id: 2
cluster_id: 64512
command: "on_short_release"
args: object
origin: "LOCAL"
time_fired: "2020-11-20T20:51:24.166269+00:00"
context: object
id: "a8ce0f71937367754e7a6acea3435abd"
parent_id: null
user_id: null
20/11/2020, 20:51:14node: 100ef75b.ff0f39
zha_event : msg.payload : Object
object
event_type: "zha_event"
entity_id: undefined
event: object
device_ieee: "00:17:88:01:03:c9:34:89"
unique_id: "00:17:88:01:03:c9:34:89:2:0xfc00"
endpoint_id: 2
cluster_id: 64512
command: "on_press"
args: object
origin: "LOCAL"
time_fired: "2020-11-20T20:51:24.571988+00:00"
context: object
id: "11cf3dcc536ee7a2159e30b3395992e7"
parent_id: null
user_id: null

I’m migrating devices from SmartThings where these switches worked fine, and I’ve never had a Hue Bridge, so can’t go down that route…

I do something similar with the Smart Things button. You can respond to the zha_event “on_press” and filter to that device_ieee for your automations.

1 Like

These posts may help you.

1 Like

Excellent. that second one has got me where I needed to be. Thanks!