How to install Zigbee2MQTT for 'non-standard' Zigbee adapters

I’m using an Ethernet attached Ember Coordinator.

Service description for the Ember gateway:

[Unit]
Description=socat-for-zigbee
After=network.target
[Service]
ExecStart=socat -dd pty,link=/dev/ttyzbbridge,raw,user-late=openhab,group-late=dialout tcp:192.168.1.170:8888
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target

Now trying to install Zigbee2MQTT via openhabian-config.

Problem:
openHABian doesn’t offer /dev/ttyzbbridge as an option and doesn’t offer the possibility to enter a user defined device path:

The device offered is a Z-Wave stick.

Question:
How do I install Zigbee2MQTT on openHABian for /dev/ttyzbbridge?

Is there a solution to this? I have a similar problem.

Only my Z-Wave USB stick is displayed - but not the Ethernet Zigbee adapter,

Edit the configuration.yaml file or set the adapter from the Z2M GUI by going to Settings → Serial. I’ve never tried it myself, as I have a USB controller.

I’m guessing that the openHABian dialogue relies on mDNS Zeroconf discovery, which may not be supported by your ZBBridge.

@Selter, @anon71759204:
My original code within openhabian was just for usb-adaptors and showed the entries under /dev/serial/by-id in a radio dialogue.

But afaik @moody_blue made a PR to add support for network adapters. I never tried it, but if you got problems he might be able to help.

Otherwise you can just select any usb-adapter and edit the configuration.yaml manually. After that you have to reboot to start z2m.

1 Like

Thanks for the reply

I hope that selecting the USB-Z-Wave-Device will not affect my Z-Wave setup.

That won’t happen. After installation z2m will not be able to connect to the adapter and thus the service will not start. So, no problem.
But don’t you see a dialogue to enter the network address?

Unfortunately the installation of Z2M fails …

[openHABian] Checking for root privileges... OK
[openHABian] Loading configuration file '/etc/openhabian.conf'... OK
[openHABian] openHABian configuration tool version: [openHAB3]{2023-12-12T18:59:04+01:00}(8e591be)
[openHABian] Checking for changes in origin branch openHAB3... OK
[openHABian] Switching to branch openHAB3... OK
[openHABian] Checking openHAB Signing Key expiry.
[openHABian] Checking expiry date of apt keys... OK
[openHABian] Updating Linux package information... OK
[openHABian] Downloading Zigbee2MQTT... FAILED (download)
[openHABian] We hope you got what you came for! See you again soon ;)

image

I made a PR recently, if you update openhabian for the develop version it should support ethernet adapters.

Edit: now available in openHABian v1.9.3

1 Like

@Selter :

so better first delete the unsuccessful leftovers

  • sudo rm -rf /opt/zigbee2mqtt
  • sudo openhabian-config
    – 01 select branch
    – latest
  • and then install z2m with the network option from @moody_blue

Let us know if it works

1 Like