Connect remote to deconz with zigbee2mqtt

Hi,
is it possible to connect zigbee2mqtt remote to deconz over tcp? I have homeassistant running in a virtualbox and a raspberrypi running with deconz and raspbee-interface. Homeassistant found my devices automatically and I can control them without problems. But I didn’t have success with zigbee2mqtt yet. For zigbee2mqtt serial config I tried this:

port: tcp://192.168.188.47:81
adapter: deconz

It seems to connect somehow but zigbee2mqtt does not start and throws undefined error. Port 81 is the http port I use for deconz on raspi and of course the ip-address of raspi 192.168.188.47. The help page does not really help me.

log:

[07:43:11] INFO: Preparing to start…
[07:43:12] INFO: Socat not enabled
[07:43:13] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2023-07-31 07:43:16: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-07-31.07-43-16’ filename: log.txt
Zigbee2MQTT:info 2023-07-31 07:43:17: Starting Zigbee2MQTT version 1.32.1 (commit #unknown)
Zigbee2MQTT:info 2023-07-31 07:43:17: Starting zigbee-herdsman (0.16.0)
Zigbee2MQTT:error 2023-07-31 07:43:27: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-07-31 07:43:27: Failed to start zigbee
Zigbee2MQTT:error 2023-07-31 07:43:27: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-07-31 07:43:27: Exiting…
Zigbee2MQTT:error 2023-07-31 07:43:27: undefined

I somehow think you try to use deconz and zigbee2mqtt at the same time with only one stick.

Yes. Isn’t this possible?

No

Only one piece of software can use the stick at a time.

If you want deCONZ to use the stick then Zigbee2MQTT can’t. If you want Zigbee2MQTT to use it then deCONZ has to be stopped (and removed).

Ok. But deconz and zigbee2mqtt is not on the same device. So I thought it possible to connect like any other app (Homeassistant, Amazon Alexa, Hue Essentials and so on).

Compare your raspbee to a car. There can only be one driver (conbee or zigbee2mqtt), but there can be more passengers (Homeassistant, Amazon Alexa, Hue Essentials and so on).

1 Like

And in recommended hardware the connection to Conbee/Raspbee is documented like this:

serial:
  adapter: deconz

So I thought deconz acts like a server and it’s possible to connect zigbee2mqtt to it. And if yes, the next step would be to connect remotely over tcp.

the key there is

serial:

and to remove any doubt, the words above that are

USB connected adapters (ConBee and ConBee II) and Raspberry Pi GPIO modules (RaspBee and RaspBee II). If Zigbee2MQTT fails to start, try adding the following to your configuration.yaml

1 Like

Ok, I see. So there is no way. :cry:
I wanted to use zigbee2mqtt to send raw commands to zigbee devices like in this video: https://www.youtube.com/watch?v=QeIUiuXBzLw. Is there another possibility to do this? But the current system with raspberrypi/raspbee/deconz must remain.

Buy another dongle, best a CC2652. But you will need to repair your plugs temporarily to Zigbee2MQTT.
Or stop deconz, start Zigbee2MQTT, pair your plugs, send the commands, stop Zigbee2MQTT, start deconz, repair to deconz

1 Like

So I have to connect all my 20 devices temporarily to another dongle. :dizzy_face:
I think I have to bury my plans.

Do you know if there are older versions of zigbee2mqtt that run on older node v11? I think newest version needs at least v14.

Use Docker. It solves your problem perfectly.

Ok thanks! I will try.

Works! Very good. Had some initial problems to find my Raspbee device.
Thanks for your recommendation.

1 Like