-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant no longer acts on button presses on Hue dimmer after upgrade to 2.0.0 #25500
Comments
Same issue with my STYRBAR remote control on Z2M. It seems like the action entity is not available in Home Assistant anymore. |
the I found this answer: now we must use: |
@vincentbattez Thanks — I saw that. However, the instructions are all for YAML-wallopers. Home Assistant has made great strides in making it so you can configure it from the GUI and not have to edit YAML, so this is a major step backwards. MQTT device triggers require forgetting the nice, readable names you gave the devices, and instead referring to them by meaningless hex strings. Not usable. Event entities are marked as "experimental", which means breaking changes could drop at any time, or the whole thing could just get binned. And it requires writing template strings? That is not a user-friendly way of doing things, either. (I can't even see a way to make the GUI accept template strings!) This makes Home Assistant considerably more of a pain to work with. It's a huge backwards step. I can see that the old, friendly way has been deprecated, but I've not yet managed to find why it was deprecated. Version 2 is unusable for me because of this. I would love to see instructions on how to roll the addon back to the most recent version of v1; I can then turn off updates for it and keep my easy-to-use and easy-to-edit setup until things improve. But I can't find them anywhere. |
If you use like me Option 1: Home Assistant event entity (experimental)In
|
Yeah, maybe. You should address this to the developers of the Zigbee2MQTT add-on, their repository is here. |
same issue for me! I am not a programmer and I can't control my lights anymore now! How can I roll-back the update? |
There should be instructions at Home Assistant, maybe ask for assistance at the Home Assistant forum or the Home Assistant Zigbee2MQTT Add-On repository at https://github.com/zigbee2mqtt/hassio-zigbee2mqtt |
Many thanks, I should think before writing. Under one of the links above is a description. You can keep the version 2 and activate "Homeassistant legacy action sensors" under the setting Z2M and then "Home Assistant Integration". But who knows for how long this will be working. |
Same here, can't pinpoint it exactly, but it seems it's using friendly names instead of the addresses in the 2.0 upgrade. Trying to rollback from my restic backups now and run 1.42.0 Well no luck, this will give me a massive headache. All my appdaemon references are now broken. Will try to resolve it another way. |
This blueprint I made for myself to duplicate how the Hue remote would function with a Hue hub works with Zigbee2MQTT legacy options disabled. https://gist.github.com/WillCodeForCats/1573e52ee3cf45f7e269635b163fb2d1 Look at the trigger section for examples on how to use MQTT platform triggers for the Hue dimmer switch.
I agree on that point, so at least when using blueprints that aspect is hidden for all of the triggers. |
Okay, what works for me for now:
In general I'm using the addresses instead of the friendly names and just set the home assistant name in zigbee2mqtt. That way if a device changes name all of my automations will still work. |
Not sure about the HA add-on, but with plain Zigbee2MQTT (which is adressed by this repository) there is an option to set a "Home Assistant Name" per device. This is not the friendly name but used as display name by Home Assistant. It is a per-device configuration, resulting in the following structure: devices:
'0xcafebabe':
homeassistant:
name: "Display Name" see https://www.zigbee2mqtt.io/guide/configuration/devices-groups.html#generic-device-options |
Yip I know, I suspect I had some friendly names from the past when that option wasn't there. Maybe it was inconsistent and now it is, but damn this is a lot of work to fix. |
@unikitty37 Is your issue addressed and ready to close? |
@m0wlheld I resolved this by rolling back to 1.14-0.2 and keeping at that version — but none of the other solutions is really a solution for me, as there isn't support in the Home Assistant GUI for configuring triggers that way; you have to edit the XML manually. I think the real issue is the removal of the click sensors, which causes a great deal of work for anyone using Home Assistant, especially those configuring it via the GUI. I've looked at #24198 and the wiki and I still can't find out why these were removed, apart from someone having declared them as "legacy" (legacy they may be, but they work and are easier to use!) Is there another open issue covering that removal? If so, then this should be OK to close in favour of that. |
Help me understand how can they remove and depreciate a thing without fixing the buttons first? I have like 10 switches and all stopped working. I could literally see the LQI, battery and even Voltage, but as a button it stopped working, there were no alternative new entities, they just removed the action without a replacement, why? https://www.zigbee2mqtt.io/devices/WXKG01LM.html#deprecated-click-event |
You are complaining in the wrong place, post your question at the Home Assistant Community forum or the HASSIO Zigbee2MQTT add-on repository. |
This is one of the Zigbee2MQTT 2.0.0 breaking changes, from #24198
|
The issue leaves anyone who has buttons after auto-updates and who's been using HA a few years probably confused. I have a 6 button with double/single/triple/hold/release states which means reconfiguring a lot of flows, but it seems @vincentbattez 2nd solution is quite close - the only thing I'd add would be a template node right after the mqtt to take the payload.action and forward that as payload, that way you have a drop-in replacement and no need to change the flow downstream.
EDIT: |
@unikitty37 |
Would adding "action" to the topic do the same? ![]() |
Is this way a single double and tripple click possible? because for me with version 2.0 the counters stayed 2 and not 1,2 or 3. |
I guess only if you have the "Home Assistant legacy action sensors" setting checked in MQTT, at which state there was already no reason to change any of your node red flows as you had backwards compatibility? at least my assumption is that the zigbee2mqtt/{device}/action topic only exists by the grace of that setting, but I could be wrong. |
I don't know what you mean by counters; my buttons expose single and double clicks through the action as a string. For instance, double clicking button_1 on my 6 button device gives me action: button_1_double. double clicking my single button aqara device just gives action "double" etc. Not keeping any counters or anything. Easiest is to press the button and look at the zigbee2mqtt log at the messages. |
I have this hue dimmer switch: And it reports no double or triple, only on, off, up and down and the hold of these 4. So I thought to use mqtt instead with v2 but the counter does not report good values so I cannot have a double of triple click. For now I downgraded to v1.42 |
Mi wireless switch lost the action entity as well after 2.0.0 update. I think this is also related to this thread |
seems to suggest it is not 2? I don't know the button you have but I suggest clearing the log, fiddle with it and keep an eye on your logs to figure out how it gets set. What tools are you using to read and act on the message? Node-red? |
Maybe open another issue since this one is closed by the owner and your issue seems different from the one reported here. |
i have already one: #25559 |
What happened?
After upgrading to 2.0.0, my Home Assistant automations no longer fire when I press a button on any Hue dimmer (version 1). This worked before the upgrade.
The Zigbee2MQTT log shows it is receiving the button presses:
but nothing is seen by HA — the status here does not change when I press the button.
The birth message topic is
homeassistant/status
, per the release notes, and I have applied the config changes and restarted HA. I can control the Zigbee Hue lightbulbs from the HA interface, so Zigbee2MQTT seems to be talking to HA.I noticed that my VALLHORN motion sensors had the "illuminance" sensor marked as disabled in HA and I had to re-enable them to get light level detection working, as I was using the now-removed "-lux" versions. But there doesn't seem to be anything disabled on the dimmer apart from "Linkquality", "Update state", and a binary sensor to show whether an update's needed — so there's nothing I can enable that might get this working again.
What did you expect to happen?
The update did not break this, or the steps necessary to fix it were listed in the Breaking Changes section of the release notes.
How to reproduce it (minimal and precise)
I'm not sure how to write this, TBH — I'm assuming that it's something specific to my setup, or it would probably have been spotted :)
Sadly, these steps are probably not very helpful :(
Zigbee2MQTT version
2.0.0 commit: unknown
Adapter firmware version
20210708
Adapter
Sonoff Universal Zigbee 3.0 (https://www.amazon.co.uk/gp/product/B09KXTCMSC)
Setup
Add-on on Home Assistant on a Home Assistant Green
Debug log
log.log
The text was updated successfully, but these errors were encountered: