Hi Everyone, I’m a total newbee so please go easy on me… I’ve installed Zigbee2MQTT using the Mosquitto broker. I’m trying to run it but getting this error message. I’ve searched all over the place but cannot find a solution. I think its something to do with Socat not enabled? Can anyone help? Thanks
[12:01:08] INFO: Preparing to start…
[12:01:09] INFO: Socat not enabled
[12:01:11] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2023-08-07 12:01:24: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-08-07.12-01-24’ filename: log.txt
Zigbee2MQTT:info 2023-08-07 12:01:24: Starting Zigbee2MQTT version 1.32.2 (commit #unknown)
Zigbee2MQTT:info 2023-08-07 12:01:24: Starting zigbee-herdsman (0.17.2)
Zigbee2MQTT:error 2023-08-07 12:01:25: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-07 12:01:25: Failed to start zigbee
Zigbee2MQTT:error 2023-08-07 12:01:25: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-08-07 12:01:25: Exiting…
Zigbee2MQTT:error 2023-08-07 12:01:25: Error: spawn udevadm ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Please post your z2mqtt configuration (redact any keys) and tell us what kind of coordinator you are using. We also need your install type and how the coordinator stick is connected to your setup.
Hi, its a sonoff zigbee 3.0 usb dongle plus gateway. Its just plugged straight into the raspberry PI 4. I just installed home assistant through a flash drive as recommended on a youtube tutorial. Everything works fine except getting z2mqtt to work. This is the config of z2mqtt
To start with while people review your configuration… RPis are horrible generators of 2.4-3Ghz rf interference. Guess what also works on that range? Zigbee.
To start with get a short (at least half meter) usb extension cable (or USB2 powered hub, is what I use) to get that stick off the Pi. For best possible result. don’t plug it into any of the blue USB3 ports.
I don’t think that’s why herdsman isn’t starting but it will definitely hurt you.
You you have indication that the box sees the stick at all? (listed in HAs hardware list, did HA detect the stick when you plugged it in?)
Yeah i read that I need a usb extension… got one coming in from Amazon in the next hour or two so will try it out. Yes the stick is in hardware, it connects to devices etc. Although it connects to devices, I cant do anything with them hence why I need z2mqtt (i think anyway…) When this extension cables comes I’ll let you know if any changes
Excuse my ignorance… I plugged the stick in and just did the ‘configure’ in integrations. I didnt know there was anything else to do. Not sure what ZHA or Deconz is?
Are you sure the port is correct? I would expect something like port: /dev/ttyUSB0
check in system - Hardware to which port you connected the dongle. I have the same dongle (assuming it is a Sonoff dongle P model - note that there are 2 models… Sonoff Dongle E (which is experimental) and Sonoff Dongle P. I had the E… couldn’t get it to work well, so now reverted to the dongle P.
Thanks! never realized that! I’ve got mind on tty, but I saw the note, so that should not be the issue. @byronward can you confirm the exact stick you have? is it the Dongle E or Dongle P as for E you need to add the extra configuration (and in my case it did not even work smooth).
SPECIFICALLY WHICH - Configure did you hit? This is important. There’s many ways to ‘do Zigbee’ One is the default integration - ZHA, it’s built into HA and SHOULD auto detect that stick and offer to let you configure it.
Another is Zigbee2MQTT - which per your question you know about - is available in add-ons
Yet another is Deconz.
The rub is - one stick one integration. If you hit the ‘configure’ button offererd by HA for ZHA - it’s using the stick and Z2M CAN’T because ZHA is using it.
Thanks for everyones help… I’ve had an afternoon of messing around and followed instructions to ‘flash’ the USB with the new firmware which I’ve done. I also changed some settings as follows -