Zigbee2mqtt - /dev/ttyACM0 problem after HASSIO update

Found a solution…

Uninstalled zigbee2mqtt and reinstalled it based on the description from Daniel Welch description.

After reinstall and configuration of mqtt server, ti now runs as before. It even kept all zigbee devices.
You may want to backup /share/zigbee2mqtt files before you do this…

Sorry I can’t find the description that you refer to. Could you send the link to it please? I’m stuck with exactly the same problem that you describe. Thanks.

They depreciated the repository and moved the readme file.
There is some documentation in the regular zigbee2mqtt docs.

Mine started giving these errors:

Zigbee2MQTT:error 2021-09-15 19:44:18: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-15 19:44:18: Failed to start zigbee
Zigbee2MQTT:error 2021-09-15 19:44:18: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-15 19:44:18: Exiting...
Zigbee2MQTT:error 2021-09-15 19:44:18: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12

It doesn’t start anymore…

Sometimes after a restart they switch ports. It is better to use the /dev/serial/by-id syntax.

1 Like

Do i need to replace by-id with an actual id or is it a built-in var?

something like :

/dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B001936A0BE-if00

but with the id off your own stick.

2 Likes

Btw is it easy to find the id? Is there a command line? I typed ha hardware info in my commnad line but I get a massive list of items…

ls /dev/serial/by-id

1 Like

OK that was pretty straight forward code :slight_smile:
Anyhow it still gives an error after updating the configuration info, I’ll try a fulll docker restart.

Zigbee2MQTT:error 2021-09-16 08:34:15: Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
[08:34:15] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js

OK reboot and change of USB port worked…

Actually it doesn’t work…

I set in the configuration options:

serial:
  port: >-
    /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018E2111C-if00

But I get:

Zigbee2MQTT:error 2021-09-16 08:47:22: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-16 08:47:22: Failed to start zigbee
Zigbee2MQTT:error 2021-09-16 08:47:22: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-16 08:47:22: Exiting...
Zigbee2MQTT:error 2021-09-16 08:47:22: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.js:66:27)
    at Controller.start (/app/lib/controller.js:110:27)
    at start (/app/index.js:95:5)

Error: SRSP - SYS - ping after 6000ms #

2 common reasons of this error:

  1. The port of your serial adapter changed. Check this to find out the port of your adapter.
  2. If you are using a CC2530 or CC2531; it is a common issue for this adapter to crash (due to its outdated hardware). Reflashing the firmware should fix the problem.

Yeah it’s prob #2, the USB adapter keeps disconnecting…

Is CC2531_DEFAULT_20201127.zip the latest version?

Firmware update seem to work, will see if it keeps dropping…

So it keeps dying, maybe it’s time to get a better dongle…

The CC2531 is a cheap dongle to get started, but there are better dongles available.

Found one called ConBee II but its $$$

I had the cc2531 and was having similar issues. I have the first one in the link provided by Francisp above- the Electrolama zzh, which was shipped from the UK and came in a couple weeks to the US- It’s worked great since. Probably any based on the upgraded CC2652R chip will work better.

The cc2531 is noted as “not recommended” in that list. Maybe it would be ok for a couple devices, but definitely not 20. It just doesn’t have enough processing power.

Update: further down the list on the link it says “up to 20 devices” for the cc2531, so you are at the very top end then.

Also, watch out for the slaesh one, a lot of complaints about ordering it and it never shows up

I just ordered directly from smartlight.me the Zigbee USB coordinator v4 CC2652P.