Closed Krzysztonek closed 9 months ago
Dear @Koenkk I've just updated Z2M add-on to the last available version 1.34.0-1, but the issue remains the same. The log is following:
[08:52:28] INFO: Preparing to start...
[08:52:28] INFO: Socat not enabled
[08:52:28] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-12-24 08:52:32: Logging to console and directory: '/config/z2m/log/2023-12-24.08-52-32' filename: log.txt
Zigbee2MQTT:info 2023-12-24 08:52:32: Starting Zigbee2MQTT version 1.34.0 (commit #unknown)
Zigbee2MQTT:info 2023-12-24 08:52:32: Starting zigbee-herdsman (0.25.0)
Zigbee2MQTT:error 2023-12-24 08:52:46: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-12-24 08:52:46: Failed to start zigbee
Zigbee2MQTT:error 2023-12-24 08:52:46: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-12-24 08:52:46: Exiting...
Zigbee2MQTT:error 2023-12-24 08:52:46: Error: Failure send version:{"type":"Buffer","data":[1,0,1,0,0,12]}
at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:562:23
at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)
I have checked https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html but the above issue has not been treated there. I have over 120 zigbee devices and such an issue makes my HA instance totally useless..
I'm stuck. Can you help me, please?
This looks like some issue with the EZSP integration (which is experimental), could you report the issue here: https://github.com/Koenkk/zigbee-herdsman/issues/319 ?
Try with /dev/serial/by-id/
in the serial config instead of /dev/ttyUSB0
. It seems to fix a lot of weird starting issues.
To get the proper ID for your adapter:
ls -l /dev/serial/by-id
For example:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_XXXXXXXXXXXXXX-if00
adapter: ezsp
port: >-
/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_xxxxxxx-if00
adapter: ezsp
disable_led: true
rtscts: false
leads to the following:
[08:24:25] INFO: Preparing to start...
[08:24:25] INFO: Socat not enabled
[08:24:26] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-12-26 08:24:28: Logging to console and directory: '/config/z2m/log/2023-12-26.08-24-28' filename: log.txt
Zigbee2MQTT:info 2023-12-26 08:24:28: Starting Zigbee2MQTT version 1.34.0 (commit #unknown)
Zigbee2MQTT:info 2023-12-26 08:24:28: Starting zigbee-herdsman (0.25.0)
Zigbee2MQTT:error 2023-12-26 08:24:49: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-12-26 08:24:49: Failed to start zigbee
Zigbee2MQTT:error 2023-12-26 08:24:49: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-12-26 08:24:49: Exiting...
Zigbee2MQTT:error 2023-12-26 08:24:49: Error: Connection not initialized
at Ezsp.execCommand (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:551:19)
at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:349:35)
at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:140:25)
at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:172:16)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:60:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)
Seems it never manages to connect to your adapter (just fails at the wrong time because of above PR). Try enabling debug to get more info (tick Show unused optional configuration options
in addon configuration page).
I have the same problem and I can't start the add-on.
Addon version 1.35.1-1
I'm using the Sonoff dongle v2 E.
data_path: /config/zigbee2mqtt 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://localhost:1883 base_topic: zigbee2mqtt user: mqttuser password: mqttpass serial: port: >- /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231216145407-if00 adapter: ezsp
[17:21:42] INFO: Preparing to start... [17:21:43] INFO: Socat not enabled [17:21:43] INFO: Starting Zigbee2MQTT... Zigbee2MQTT:info 2024-01-22 17:21:47: Logging to console and directory: '/config/zigbee2mqtt/log/2024-01-22.17-21-47' filename: log.txt Zigbee2MQTT:info 2024-01-22 17:21:47: Starting Zigbee2MQTT version 1.35.1 (commit #unknown) Zigbee2MQTT:info 2024-01-22 17:21:47: Starting zigbee-herdsman (0.30.0) Zigbee2MQTT:error 2024-01-22 17:22:07: Error while starting zigbee-herdsman Zigbee2MQTT:error 2024-01-22 17:22:07: Failed to start zigbee Zigbee2MQTT:error 2024-01-22 17:22:07: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2024-01-22 17:22:07: Exiting... Zigbee2MQTT:error 2024-01-22 17:22:07: Error: Failure to connect at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:277:19) at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:139:9) at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:172:16) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29) at Zigbee.start (/app/lib/zigbee.ts:60:27) at Controller.start (/app/lib/controller.ts:98:27) at start (/app/index.js:107:5)
@Krzysztonek is your problem solved?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Description of the issue
Since version 1.32.0 I'm not able to start Z2M add-on correctly. However, it randomly starts with no issue very rarely. When errors occur I'm getting the log given below. I'm quite confused.
Addon version
1.34.0
Platform
Core 2023.12.1 Supervisor 2023.11.6 Operating System 11.2
Logs of the issue (if applicable)