migrating zigbee2mqtt from version 1.3 to 2.1

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
alkempter
Posts: 26
Joined: Sunday 17 February 2019 10:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

migrating zigbee2mqtt from version 1.3 to 2.1

Post 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.
User avatar
waltervl
Posts: 5598
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: migrating zigbee2mqtt from version 1.3 to 2.1

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5598
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: migrating zigbee2mqtt from version 1.3 to 2.1

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2451
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: migrating zigbee2mqtt from version 1.3 to 2.1

Post by gizmocuz »

You also need the latest beta version of Domoticz
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest