Page 1 of 1

migrating zigbee2mqtt from version 1.3 to 2.1

Posted: Tuesday 18 March 2025 12:29
by alkempter
Hi,
I was finally able to migrate zigbee2mqtt to the current version 2.1.3
It now runs without any problem in my small Domoticz environment. :)

Changes needed were:
1)
Change the Auto Discovery Prefix to a different value as the prefix topic in the MQTT Client Gateway with LAN interface.
This was done in my case by changing the Auto Discovery Prefix in the "MQTT Auto Discovery Client Gateway with LAN" definition to "domoadzigbee"
and
making this change also in configuration.yaml:
homeassistant:
discovery_topic: domoadzigbee
2)
Adding the protocol my Sonoff USB dongle uses in configuration.yaml:
serial:
adapter: zstack

Cheers
Al

P.S. Most of the migration information found on the zigbee2mqtt pages and Github were only relevant for Home Assistant users for which going to version 2 seems to be a serious change. It was difficult to figure out what was for Domoticz users, too.

Re: migrating zigbee2mqtt from version 1.3 to 2.1

Posted: Tuesday 18 March 2025 13:09
by waltervl
alkempter wrote: Tuesday 18 March 2025 12:29 1)
Change the Auto Discovery Prefix to a different value as the prefix topic in the MQTT Client Gateway with LAN interface.
This was done in my case by changing the Auto Discovery Prefix in the "MQTT Auto Discovery Client Gateway with LAN" definition to "domoadzigbee"
and
making this change also in configuration.yaml:
homeassistant:
discovery_topic: domoadzigbee
I do not understand why you need to change the default discovery_topic 'homeassistant' to 'domoadzigbee' for the upgrade from 1.3 to 2.1.
Also this has to be done on the Domoticz MQTT Auto Discovery Client Gateway with LAN interface..... Not on the normal MQTT Gateway as you indicate.

Re: migrating zigbee2mqtt from version 1.3 to 2.1

Posted: Tuesday 18 March 2025 14:05
by waltervl
Apparently there are some breaking changes when upgrading Z2M to 2.x, see the discussion and instructions here: https://github.com/Koenkk/zigbee2mqtt/discussions/24198

Re: migrating zigbee2mqtt from version 1.3 to 2.1

Posted: Friday 21 March 2025 10:39
by gizmocuz
You also need the latest beta version of Domoticz