Missing Actions in MQTT from Hue Dimmer Switch

Hey,

i just switched from ZHA to Zigbee2mqtt and everything worked great exept for my hue dimmer switch. Pairing is no problem, re-paired allready twice. but in the MQTT Integration i dont see the pressed button type or that a button was pressed at all. The only thing i see is the press duration time.

does anyone know how to solve that or has any idea about the reason for that problem.

thanks in advance
Michi




grafik

1 Like

Hi,
You are not the only one, It was working fine until yesterday and HA update to 2025.1.0 on my side (also zigbee2mqtt 2.0, but action is present in zigbee2mqtt).
We have to wait for a patch, if someone raised an issue at HA

1 Like

Go to the Zigbee2Mqtt UI and there to the options, there is a tab “Homeassistant Integration”. Here you can activate the legacy actions then all should work as before.
The event stuff is really nice and good, but it seems there will be some changes (maybe) to it, so you have to change the things in the next months ,but then, there should be also some more blueprints and so on.

HTH Ronny

3 Likes

Cheers, action sensors are back :slight_smile:
I need to read more docs before updating stuff like that

Thanks so much - solved within 30 seconds.
Actually in all that stress of setting up home assistant from my dads backup (he borrowed my stuff during my 4 month vacation) i did not notice that i updated to 2025.1 :smiley:
But good to know. Never had problems before.

for others that are searching: it is that “gear” symbol where you need to navigate

Had the exact same thing and was so worried… thank you very much. Also same UI things broke. I guess the 2025 version was a gamechanger.

Edit: for me, it does not work. The action was activated again but I see that in Zigbee2MQTT the action is String ohne Inhalt(“”), so just an empty string after I press a button. Probably the device is buggy now?

Thanks for this specific comment; it was helpful!

1 Like

I have a big problem. Does nobody else have it? As soon as I enable legacy action sensor they only deliver an empty string and do not work anymore. When I disable this option and restart Z2MQTT the buttons work again and give me things like on_press but they are not in Home Assistant. What kind of bug is this???

I have the same issue.

EDIT: (just this line is updated) I’m probably mistaken about which of the below occurred during legacy off or on so I’ve adding the strikethrough. I’ll have to debug later, sorry!

If I have legacy turned on, all my BPs for Hue Dimmers just say “Unknown condition” and fail out at the start of the automation.

Screenshot 2025-01-10 at 8.59.07 AM

If I have legacy turned off, the automation gets further. I’m having trouble debugging, but sometimes the action appears as unknown:

Screenshot 2025-01-10 at 9.00.48 AM

And other times it appears correctly! But it still doesn’t work?

Screenshot 2025-01-10 at 9.00.59 AM

Alright it’s working for me now. I’m not sure what I did exactly, but I definitely have the legacy options enabled and am using this BP: CrazyCoder/zigbee2mqtt_hue_dimmer_v2.yaml

Is your Zigbee2MQTT showing empty strings on button press as well?

Not with legacy settings turned on.

You mean Home Assistant legacy action sensors, right?

Yes