Zigbee2MQTT 2.0 Update - Potential Breaking Change

The Z2M home assistant addon recently got updated to v2.0 which has some breaking changes that could affect Blue Series users.

The first issue I came across is the addon would not connect to my coordinator. This is because the adapter needed to be defined under serial: In my case it was zstack, but this could change depending on which coordinator you’re using.

serial:
  port: tcp://192.168.XX.XX:6638
  adapter: zstack

The other major breaking change is the removal of the sensor.*_action entities. This was a legacy entity that could be used to trigger automations and would show a state based on the button presses used. It’s been deprecated for a while but now has been removed by default from Z2M.

There’s a popular blueprint by @starbuck93 that uses this action entity. To be able to continue using this blueprint, or any manual automations that are using the action sensor, you need to enable the legacy action feature in Z2M. To do so, this code needs to be added to your configuration.

homeassistant:
  legacy_action_sensor: true

Alternatively, this blueprint by @rohan uses the device events to detect the number of clicks and should continue to function properly.

2 Likes

Very helpful! I added that line into my Z2M config file and my automation are working as expected again. Thank you!

1 Like

I’d recommend starting to transition to the new method. There’s no guarantee how long they continue to provide that legacy option. With a blueprint already released with the proper way, it should be fairly quick and easy to make the switch.

Is anyone also having issues with groups not toggling off since the update. I have a three way setup with all bulbs and both switch’s in a group as well. That way when I toggle the lights from the UI the switch’s update as well.

However since the change the group status in HA always stays on when using the switch. All lights will go off and the switches but an hour or so later the lights just come back on because the group was never truly set to off.

Thanks for the tag @MRobi - I’ll update that blueprint today with the device actions and Z2M v2.0

2 Likes

Alright, folks, here’s the updated blueprint - Inovelli Blue Series 2-in-1 blueprint demo for Home Assistant Z2M v2.0 · GitHub Well, it’s the same link, actually. And here’s the Home Assistant forums link as well with all the same info - Z2M v2.0 - Inovelli Blue Series 2-in-1 switch + dimmer - Blueprints Exchange - Home Assistant Community

1 Like