MQTT AD - Zigbee2MQTT

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by waltervl »

But is there data inside?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

waltervl wrote: Friday 09 February 2024 9:51 But is there data inside?
Yes, the data remains.
I noticed that every time I restart zigbee2mqtt, the amount of subtopics remain the same, but the number of messages increases, this happens in all the three main topics.
Is that normal behaviour?
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
nonolk
Posts: 6
Joined: Thursday 08 February 2024 9:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by nonolk »

Hello everybody,

Just want to share that I'm experiencing the same issue (for me it started just after migrating to 2004.01), the work arround I found so far is to just go in the settings tab of the zigbee device and click on submit, after this the device works again.

If you need logs, please ask, I'm able to produce them. I also confirm that my mqtt topics still contains data (the info are retained) I also tested with the retain check box activated (in the device settings tab of zigbee2mqtt) and it changed nothing, I still have to apply my work arround to mka emy devices working again.
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

nonolk wrote: Friday 09 February 2024 11:14 go in the settings tab of the zigbee device and click on submit, after this the device works again
I have to do that for every device individually, everytime the MQTT Hardware is (re)started (fi after a reboot).

Is this the same in your experience?
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
nonolk
Posts: 6
Joined: Thursday 08 February 2024 9:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by nonolk »

azonneveld wrote: Friday 09 February 2024 11:40 Is this the same in your experience?
yes exactly, starting from the 2024.01 version.
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

nonolk wrote: Friday 09 February 2024 13:26 yes exactly, starting from the 2024.01 version.
There is even a quicker way to get the failing devices discovered (again):

First: in the zigbee2mqtt frontend, click the edit icon:
Image

Second: just press the 'Save description' button to trigger the discovery:

Image


I tried the current beta (2024.3.15906), but the bug is still there.

It looks like the init loop is terminated before all devices are read.
Afterwards updating them one by one makes MQTT AD to add them.
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
nonolk
Posts: 6
Joined: Thursday 08 February 2024 9:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by nonolk »

Ah, good catch, It's indeed faster.

@gizmocuz should we open a ticket for this ?
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by waltervl »

A related Github issue is created by a user: https://github.com/domoticz/domoticz/issues/6025
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

waltervl wrote: Monday 12 February 2024 11:07 A related Github issue is created by a user: https://github.com/domoticz/domoticz/issues/6025
That's me :-)
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

I've made a short video, demonstrating what is happening.

1. Everything is running fine
2. MQTT AD hardware is restarted
3. Device cannot be controlled (even if I waited a longer time)
4. Name of device is altered in zigbee2mqtt gui (or another trigger, updating the description also works)
5. Device is working again

Here is the video: https://www.azsystem.nl/download/domoticz.mp4
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by waltervl »

Are all devices not reacting after restart of mqtt AD gateway or some. Is there something specific with those not re-discovered devices? eg All battery devices, specific brand, specific functions?
Are all sub devices from a zigbee device not found (one zigbee device can have several devices created eg temp, lux, motion) or some of the Domoticz devices are not working anymore?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

waltervl wrote: Monday 12 February 2024 18:38 Are all devices not reacting after restart of mqtt AD gateway or some. Is there something specific with those not re-discovered devices? eg All battery devices, specific brand, specific functions?
Are all sub devices from a zigbee device not found (one zigbee device can have several devices created eg temp, lux, motion) or some of the Domoticz devices are not working anymore?
Most of the more 'complex' devices are not working:

Ikea Dimmable Lights
Ikea Pushbuttons
Tuya powermeasuring sockets
ledstrip

Only 4 urls allowed, next post will contain devices that keep working
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

Keeps working:
Silvercrest smart plug
Thermometers
Valve actuator

Im not sure about motion detectors (RTCGQ01LM), they work sometimes.
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by waltervl »

For for example the tuya power sockets are all the devices not working? There should be a switch on/off, a power measurement device, voltage, current, etc. Are all not working anymore?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

waltervl wrote: Monday 12 February 2024 20:38 For for example the tuya power sockets are all the devices not working? There should be a switch on/off, a power measurement device, voltage, current, etc. Are all not working anymore?
for the powersockets I know that the measurementdata is not updated, I have not tested switching them (one is used for the fridge, and therefor always on)
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

waltervl wrote: Monday 12 February 2024 20:38 For for example the tuya power sockets are all the devices not working? There should be a switch on/off, a power measurement device, voltage, current, etc. Are all not working anymore?
Managed to reproduce on a fresh install using the database.db from the zigbee2mqtt original instance, so the devices are there.

I can supply the image from the installation if you like.
You will need the following to run the image:
RPI4 or RPI3
ZigbeeStick
32gb SD or SSD.
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by waltervl »

I am no developer, so cannot help.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
dospider
Posts: 15
Joined: Monday 04 August 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by dospider »

After the update i had the same problem.
Some zigbees dudn't work. Nit sure if this was only in Domoticz or a zigbee2mqtt problem
Deleted the problem makers in zigbee2mqtt and recreatief them again. After that it worked again in Domoticz.

Not a big issue, but you're busy with it and i noticed after a couple days. So some data is calculated.
User avatar
Emil01
Posts: 6
Joined: Tuesday 01 September 2020 20:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by Emil01 »

Not sure this is related, but since 2024.4 I have issues with zigbee devices that are loosing connection. I use DeConz in stead of zigbee2mqtt but have simulair issues. Within DeConz devices are connected, in Domoticz they are offline for a long period.
--
Domoticz on Raspbery Pi and DeConz Zigbee.
Sonoff wifi (Tasmota) and Sonoff Zigbee. Lot of Ikea Zigbee sensors
azonneveld
Posts: 153
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: MQTT AD - Zigbee2MQTT

Post by azonneveld »

Emil01 wrote: Friday 16 February 2024 21:07 Not sure this is related, but since 2024.4 I have issues with zigbee devices that are loosing connection. I use DeConz in stead of zigbee2mqtt but have simulair issues. Within DeConz devices are connected, in Domoticz they are offline for a long period.
Is DeConz also communicating over MQTT?
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests