Zigbee2MQTT Error - Socat not enabled?

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

SOCAT
enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: “-d -d”
log: false

MQTT
server: mqtt://core-mosquitto:1883
user: mqttuser
password: mqtt

SERIAL
port: >-
/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0

please let me know if you need any other info?

thanks a lot for any help

1 Like

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

Cheers

How. Did you already setup ZHA or Deconz? If so you have to disable them before you setup Z2M

And without the extension that stick probably won’t connect successfully to much.

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.

/dev/serial-by-id is recommended.

https://www.zigbee2mqtt.io/guide/configuration/adapter-settings.html

1 Like

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).

Supported Adapters | Zigbee2MQTT

1 Like

A lot of chance you configured ZHA
Do you see this
afbeelding
in integrations ?

1 Like

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.

So which configure button specifically?

1 Like

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 -

enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: “-d -d”
log: false

base_topic: zigbee2mqtt
user: mqttuser
password: mqtt
server: mqtt://core-mosquitto:1883

port: /dev/ttyUSB0

I now get a different error massge… any ideas?

[17:20:15] INFO: Preparing to start…
[17:20:15] INFO: Socat not enabled
[17:20:17] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2023-08-07 17:20:23: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-08-07.17-20-23’ filename: log.txt
Zigbee2MQTT:info 2023-08-07 17:20:23: Starting Zigbee2MQTT version 1.32.2 (commit #unknown)
Zigbee2MQTT:info 2023-08-07 17:20:23: Starting zigbee-herdsman (0.17.2)
Zigbee2MQTT:info 2023-08-07 17:20:24: zigbee-herdsman started (resumed)
Zigbee2MQTT:info 2023-08-07 17:20:24: Coordinator firmware version: ‘{“meta”:{“maintrel”:1,“majorrel”:2,“minorrel”:7,“product”:1,“revision”:20230507,“transportrev”:2},“type”:“zStack3x0”}’
Zigbee2MQTT:info 2023-08-07 17:20:24: Currently 0 devices are joined:
Zigbee2MQTT:info 2023-08-07 17:20:24: Zigbee: disabling joining new devices.
Zigbee2MQTT:info 2023-08-07 17:20:24: Connecting to MQTT server at mqtt://core-mosquitto:1883
Zigbee2MQTT:error 2023-08-07 17:20:25: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:25: MQTT failed to connect, exiting…
Zigbee2MQTT:info 2023-08-07 17:20:25: Stopping zigbee-herdsman…
Zigbee2MQTT:error 2023-08-07 17:20:26: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:27: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:28: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:29: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:30: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:31: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-08-07 17:20:32: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:info 2023-08-07 17:20:32: Stopped zigbee-herdsman

Its the P model… please see below question after some more messing around this aft.
Thanks

Did you create a mqttuser in HA ?

1 Like

yes in the ‘people’ bit

Under people or users ?

under ‘people’. Does it need to go in ‘users’?

Yes it does

I cant find anywhere to add ‘users’? the only thing I can find is ‘people’?