Hello everyone,
I’m new to HA and just set up my first system on a nuc. After my first attempts with ZHA I recognized some issues like not showing battery status on some of my Aqara E1 Thermostats so that I decided to test Zigbee2MQTT. I literally watched hours on youtube on how to set up Zigbee2MQTT but there are just a minor numbers of dealing with SkyConnect. The problem is that I’m unable to get z2m to run using SkyConnect.
So here are the steps I’ve done so far:
- fresh installation of HA:
(Home Assistant 2023.2.3 Supervisor 2023.01.1 Operating System 9.5 Frontend 20230202.0 - latest) - SkyConnect is connected via extension cable that it comes with in the box and is connected due to a lack of missing USB 2.0 ports on a NUC8 to a USB 3.0 port
- setting HA into advanced mode
- installing mosquitto-broker add-on
- rebooting system
- creating an user for mqtt with local access only
- configuring core-mosquitto MQTT integration with the created user information and is working
- adding repo from official z2m source
- installing zigbee2mqtt
- checking hardware information for serial port
- adding port info and adapter to ezsp under serial configuration in the z2m add-on
configuration.yaml in the add-on states:
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: {}
serial:
port: >-
/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_e45b1159af57ed11ae724aca5720eef3-if00-port0
adapter: ezsp
The strange thing is that when looking via file editor into the folder directory /config/zigbee2mqtt/configuration.yaml there is nothing in it than just:
homeassistant: true
So even when the official documentation says that when using mosquitto-broker no mqtt information are required I also tried to set the information for mqtt like:
base_topic: zigbee2mqtt
server: mqtt://localhost:1883 -> also tried homeassistant:1883
username: mqttuser -> created after installing mosquitto add-on
password: password for mqttuser -> same
but with no difference. The log states always states:
[12:38:43] INFO: Preparing to start...
[12:38:43] INFO: Socat not enabled
[12:38:43] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-02-10 12:38:44: Logging to console and directory: '/config/zigbee2mqtt/log/2023-02-10.12-38-44' filename: log.txt
Zigbee2MQTT:info 2023-02-10 12:38:44: Starting Zigbee2MQTT version 1.30.1 (commit #unknown)
Zigbee2MQTT:info 2023-02-10 12:38:44: Starting zigbee-herdsman (0.14.89)
Zigbee2MQTT:error 2023-02-10 12:39:04: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-02-10 12:39:04: Failed to start zigbee
Zigbee2MQTT:error 2023-02-10 12:39:04: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-02-10 12:39:04: Exiting...
Zigbee2MQTT:error 2023-02-10 12:39:05: Error: Connection not initialized
at Ezsp.execCommand (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:518:19)
at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:325:35)
at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:141:25)
at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:165:16)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)
I recognized the Error code
Zigbee2MQTT:error 2023-02-10 12:39:05: Error: Connection not initialized
but I don’t know how to initialize the connection correctly?
Does anyone has an advice on how to set it up and get it run?
Thanks in advance.