Connect zigbee2mqtt to matterbridge

Hello everyone,

I’m new to Gladys. I’ve added my peripherals to zigbee2mqtt and I need to retrieve them in matterbridge.

So I installed the matterbridge zigbee2mqtt plugin on matterbridge. However, it fails to start.

I have two messages: the first one tells me that I need to configure the Mdns parameter in matterbridge (I confess I don’t know what that is), and the second one informs me that the matterbridge zigbee2mqtt plugin is in error because it cannot connect to the MQTT broker.

Here are the error messages from the log:

    1. The plugin did not receive zigbee2mqtt bridge state. Check if zigbee2mqtt is running and connected to the MQTT broker.
    2. error[10:41:33.220][Matterbridge zigbee2mqtt plugin]The plugin did not receive zigbee2mqtt bridge info. Check if zigbee2mqtt is running and connected to the MQTT broker.
    3. error[10:41:33.221][Matterbridge zigbee2mqtt plugin]The plugin did not receive zigbee2mqtt bridge devices/groups. Check if zigbee2mqtt is running and connected to the MQTT broker.
    4. error[10:41:33.225][PluginManager]Failed to start plugin matterbridge-zigbee2mqtt: The plugin did not receive zigbee2mqtt bridge state or info or devices/groups. Check if zigbee2mqtt is running and connected to the MQTT broker. Stack: Error: The plugin did not receive zigbee2mqtt bridge state or info or devices/groups. Check if zigbee2mqtt is running and connected to the MQTT broker. at ZigbeePlatform.onStart (file:///usr/local/lib/node_modules/matterbridge-zigbee2mqtt/dist/module.js:316:19) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async PluginManager.start (file:///usr/local/l … inManager.js:916:13) at async PluginManager.load (file:///usr/local/l … inManager.js:877:21)

Can someone enlighten me?

Hi @deckard24 and welcome to the Gladys community :grin:

For mdns, you need to retrieve the name of your interface (visible on the matterbridge dashboard) and put it in the network Settings:
image

For the zigbee2mqtt plugin part, you must have activated the zigbee2mqtt integration in Gladys, chosen a USB key and its port.


If this is not your setup, you will need to provide screenshots of your configuration.

You will also need the username and password for the zigbee2mqtt integration, as well as the IP and port to zigbee2mqtt (sorry, I don’t have a screenshot).

I assume that the IP address of your Gladys is 192.168.10.10, you will change it with your values.

Moreover, the integration has created an mqtt server that you do not see but is indeed present (on port 1884) and this is what we are going to configure in matterbridge.

Here is the configuration to put in matterbridge:




The port 12000 in my screenshot will need to be modified according to what you have in Gladys.

Keep us updated on your progress.

Hello.

Thank you so much for this warm welcome.

Thank you very much for the reply. The Mdns is indeed fixed by setting the interface name.
For zigbee2mqtt, I have indeed successfully enabled the integration via the USB port and a Sonoff key.

For the settings, I just need the password and I don’t know where to find it.
Can you enlighten me?

Oops, I thought it was in the zigbee2mqtt integration config page :roll_eyes:
So it’s probably in a configuration file, but I don’t know which one (I have an external zigbee2mqtt and an external MQTT server, so different config).

@pierre-gilles could you guide @deckard24 to retrieve the password? Thanks!