Page 1 of 1

error with Domoticz "Allow new zigbee devices to join "

Posted: Saturday 08 February 2025 13:05
by PaulAmsterdam
Unfortunately I am stuck with solving the problem with: "Allow new zigbee devices to join"
By using the Zigbee frontend I was able to add a device. I also see it in domoticz Zigbee2mqtt. But when I check the box for "Allow new zigbee devices to join" in domoticz I get this error message in the log.
----------------------------------------------------------------------------------
2025-02-08 12:51:52.395 Error: zigbee2: Call to function 'onMessage' failed, exception details:
2025-02-08 12:51:52.450 Error: zigbee2: Traceback (most recent call last):
2025-02-08 12:51:52.450 Error: zigbee2: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 299, in onMessage
2025-02-08 12:51:52.450 Error: zigbee2: _plugin.onMessage(Connection, Data)
2025-02-08 12:51:52.450 Error: zigbee2: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2025-02-08 12:51:52.450 Error: zigbee2: self.mqttClient.onMessage(Connection, Data)
2025-02-08 12:51:52.450 Error: zigbee2: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2025-02-08 12:51:52.450 Error: zigbee2: self.on_mqtt_message_cb(topic, message)
2025-02-08 12:51:52.450 Error: zigbee2: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 155, in onMQTTPublish
2025-02-08 12:51:52.450 Error: zigbee2: self.api.handle_mqtt_message(topic, message)
2025-02-08 12:51:52.450 Error: zigbee2: File "/home/pi/domoticz/plugins/zigbee2mqtt/api/api.py", line 36, in handle_mqtt_message
2025-02-08 12:51:52.450 Error: zigbee2: command.handle_mqtt_message(topic, message)
2025-02-08 12:51:52.450 Error: zigbee2: File "/home/pi/domoticz/plugins/zigbee2mqtt/api/bridge.py", line 18, in handle_mqtt_message
2025-02-08 12:51:52.450 Error: zigbee2: self.send_response(message['data']['value'])
2025-02-08 12:51:52.450 Error: zigbee2: ~~~~~~~~~~~~~~~^^^^^^^^^
2025-02-08 12:51:52.450 Error: zigbee2: KeyError: 'value'
----------------------------------------------------------------------------------------
Pairing zigbee in Domoticz doesn't work either.
I reinstalled everything and is uptodate..
Does anyone know what the solution is for this problem or what I'm doing wrong?
I'm using a Raspberry PI5.

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Saturday 08 February 2025 13:55
by waltervl
Ah, you are using the old zigbee2mqtt plugin...
Better use the MQTT AD hardware gateway to connect with zigbee2mqtt.
See wiki, alternative 1 https://wiki.domoticz.com/Zigbee2MQTT

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Saturday 08 February 2025 14:35
by PaulAmsterdam
I followed the instructions of https://wiki.domoticz.com/Zigbee2MQTT But not in Docker.

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Saturday 08 February 2025 18:05
by waltervl
PaulAmsterdam wrote: Saturday 08 February 2025 14:35 I followed the instructions of https://wiki.domoticz.com/Zigbee2MQTT But not in Docker.
You followed alternative 2 which is using a plugin that has not been maintained for 2 years now. Better remove the plugin and use the MQTT AD (AutoDiscover) method.

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Sunday 09 February 2025 11:07
by FlyingDomotic
You may also use the same button in zigbee2mqtt (classical) UI, not related to Domoticz. It works here.

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Sunday 09 February 2025 11:22
by PaulAmsterdam
That’s right, that works for me too, but wants it to work in Domoticz as well.
On another Raspberry, which has been running for a while, and everything installed in the same way I do now, everything works within Domoticz.

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Sunday 09 February 2025 11:25
by FlyingDomotic
What versions of Domoticz and Z2M plug-in do you have?

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Sunday 09 February 2025 15:00
by PaulAmsterdam
Ik maak gebruik van een
Raspberry PI4,
OS: Bookworm
Domoticz versie: 2024.7,
Zigbeemqtt: 3.2.0-beta
Mosquitto: 2.0.11

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Sunday 09 February 2025 16:31
by FlyingDomotic
Thanks!

What's the version of zigbee2mqtt Domoticz plug-in did you install (go to Domoticz "Configuration" > "Hardware", click on you zigbee2mqtt plugin, and read version in details under devices list) ?

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Tuesday 11 February 2025 11:50
by PaulAmsterdam
Plugin version: Zigbee2MQTT Plugin (v. 3.2.0-beta)

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Wednesday 12 February 2025 18:02
by FlyingDomotic
I just checked with same OS/Z2M/plugin version, and I don't saw this button.

Are you sure this is a zigbee2mqtt plug-in device?

To check, have a look to "setup" / "devices" tab, search for the button (enter part of its name in "search" at top/right of window) and look to the "hardware" column. Check that this is Z2M plug-in name, and not "MQTT autodiscovery" one.

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Thursday 13 February 2025 14:18
by PaulAmsterdam
Wederom bedankt voor je meedenken.
Ik heb alles opnieuw geïnstalleerd; Mosquitto, Zigbee2Mqtt. Beide niet in docker. Ook Domoticz opnieuw geïnstalleerd.
Nu niet de de plugin gebruikt maar nu "MQTT Auto Discovery Client Gateway with LAN interface" en de beschrijving in https://wiki.domoticz.com/Zigbee2MQTT gebruikt.
Alles, Zigbee, werkt nu zoals het zou moeten en kan nu weer verder.
Bedankt voor het meedenken!

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Thursday 13 February 2025 20:17
by waltervl
Thanks for explaining in Dutch you have moved from zigbee2mqtt plugin to MQTT AD hardware gateway :)

Re: error with Domoticz "Allow new zigbee devices to join "

Posted: Friday 14 February 2025 9:20
by PaulAmsterdam
Sorry, forgot to translate the text.