-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Bug - Z2M 2.0 will break all blueprints in January 2025 #622
Comments
Hi. Any news regarding this bug? I dropped the legacy mode in Z2M in preparation for Z2M 2.0... |
Probably wise to start migrating away, as the repo seems to be dead for quite a while now: #554 |
Thanks @oskari . But sad to hear :( |
There is a fork that is working on updating the blueprints (controllers) to work with z2m 2.0.0 BTW: Currently z2m devs are delaying the removal of legacy triggers from the 2.0.0 version |
Hey there, Thank you all for your continuous support - can't believe we are getting close to 900 stars! Let's bring Awesome HA Blueprints back to life! 🔥 |
I might get to work on this in the following days. It looks like someone opened a PR some time ago with support for Direct Triggers for one of our blueprints. I will replicate the change to all blueprints, also making sure we provide backward compatibility to people still on Z2M <2.0.0. Anyone here willing to help me test out the fix for at least a few controllers once the PR is ready? |
There is a fork that is working on updating the blueprints (controllers) to work with z2m 2.0.0 with backwards compatibility. https://github.com/lsismeiro/awesome-ha-blueprints BTW: Currently z2m devs are delaying the removal of legacy triggers from the 2.0.0 version |
I can warmly recommend this fork. |
Thanks for pointing me out to the fork. Love the work you've done there guys! I totally understand how upsetting it must have been for you all, users and supporters, to see this project fall into oblivion. I'm honestly left speechless by looking at the efforts and time everyone here put to keep the project alive while I was away. This simply shows how much you care about Awesome HA Blueprints, and motivates me to bring my contributions and time back to this project. Thank you so much! 🔥 I can see the fix for this bug is going strong in the fork. So, I'd be really happy to join efforts and gradually bring the development back to the main repo here. Let's discuss how to better approach this! |
Any way to migrate sanely? I'm using this (the legacy version) for over 20 Phillips remotes and not looking forward to setting everything up from scratch again. |
Thanks. But doesn't the light hook depend on entity attributes which are also gone? |
A few of us are working on a solution to prepare for z2m 2.x that will also be backwards compatible with z2m 1.x. |
Just updated Z2m and this one is broken: |
@SHxKM sorry, missed that you were talking about attributes, but I guess then the answer to your question is no. The light and control hook need the action sensor, which is being brought back by that setting, have it working on my end. |
That's interesting, because this is what I get when I disable the legacy attributes in Z2M:
And as you can see, this is part of the light hook: awesome-ha-blueprints/blueprints/hooks/light/light.yaml Lines 528 to 532 in 20ef4e4
|
@SHxKM I double checked on my end, that attribute is still there in Z2M 2.0 even with the legacy action sensor option in Z2M unchecked: |
That's because it goes away (or at least: HA prints an error about it not being available) after you change |
@SHxKM do you happen to have some documentation about these options? I am confused by now. I didn't really dig into this, but in my understanding these options were only needed to prep your Z2M <2.0 for the upgrade, I believe they were even automatically removed from the config.yml during the update. Nevertheless, I addedd them back in now and still see all the attributes. I also couldn't find the error message you had in my logs. |
My hooks are all broken (from hue switch) after the upgrade, even with legacy turned on. I suspect the event is missing some data which the blueprint depends on? Regardless, I've switched to a simpler solution https://community.home-assistant.io/t/very-easy-custom-philips-hue-dimmer-switch-for-z2m-zigbee2mqtt/521205/6 and may come back if it gets fixed. |
If anyone is up to testing, check this branch https://github.com/lsismeiro/awesome-ha-blueprints We are working to add z2m 2.x support and discussions with @EPMatt are ongoing to see how to merge back into the main branch |
Same here. Really weird. I don't want to change to the new solution in https://github.com/lsismeiro/awesome-ha-blueprints because I think relying on Device IDs/triggers is not an ideal solution. I'd rather stay with the deprecated actions for now. |
Is it working with the code in this repo? because I just upgraded to |
Nope, it's broken for the moment - but I see commits actively being made as I write this. Watch this space. |
If you enabled legacy actions, you have to relink the controler field to the good controler entity in the 2 automations created from the blueprints |
Amazing @chpego! 🔥 Thank you all for your incredible support! |
Just wanted to chip in with a temporary solution, I've put the opposite of what was suggested in Zigbee2MQTT 2.0.0 breaking changes #24198 so false to true and everything work like it was before the upgrade. From the doc:
change false to true, I don't know if all those options are required but at least it's a fix for now untill you guy's can upgrade the code! |
Thanks! Will give that a try over the weekend. The recommendation to switch to 2.0.0 cold turkey and disable all the legacy stuff seems a bit rigorous for a non-developer setup |
Yeah it is but this message was back in october so I think the idea was, disable all the legacy stuff so you'll see what will break before 2.0 comes in. As we can see not many of us did it back then so here we are :P |
For anyone following this thread: Initial PR for MQTT Device triggers for the IKEA E1743 has been opened. 🔥 As soon as we merge that, we are gonna follow up with PRs for all the other controllers. |
Thanks! Will be happy to test E2001/E2002 remotes :) |
E2002 is working fine for me! Waiting for e1810 now 👍 |
Did you enable any of the legacy stuff? If I disable all the legacy stuff in Z2MQTT 1.4 already E2002 stops working as the sensor.XXX bit is no longer functioning |
Yes legecy I disabled and I manually had to remove the action sensor in the blueprint . |
Where did you find version 2025.01.07? The latest in this repository is 2025.01.03 |
From here |
Sorry guys. |
Thanks for your work and the clarification. |
There are a bit many forks, yes! Thanks for your hard work and efforts |
Update: IKEA E1743 Controller Blueprint Version 2025.01.23 is published, with Z2M 2.0.0 support! 🔥 See updated changelog here. We will now replicate changes and bring Z2M 2.0.0 support to all controllers. |
Blueprint name
All blueprints
Home Assistant Core Version
Home Assistant Installation Type
Home Assistant Core
Description
As mentioned in the latest release notes: Zigbee2MQTT 2.0 is planned to be released in January 2025. It will remove the
homeassistant_legacy_triggers
currently required to trigger these blueprints. Hopefully they can be updated in time.Zigbee2MQTT docs suggest moving to MQTT device triggers instead of the
sensor.*
-triggers. Docs for breaking changes are here.I saw #244 but I figured it would be nice with a new issue for visibility, since that one is quite old.
Automation YAML config
To Reproduce
Upgrade to Z2M 2.0
Expected behavior
Blueprints supporting MQTT device triggers.
Actual Behaviour
Currently no support for MQTT device triggers.
Additional Details
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: