J’étais sur Domoticz et je regarde pour migrer vers HA. J’ai pris la box Home Assistant Green qui est déjà fonctionnelle en y ajoutant pour commencer « Dongle USB Zigbee 3.0 Connect ZBT-1 pour Home Assistant » proposé par NABU CASA aussi et 2 capteurs de température/humidité (mais prise Tuya sont visible dans HA sans soucis).
ZHA s’est installé très facilement. J’ai immédiatement vu mes 2 capteurs. Par contre, j’ai vu qu’il était préférable d’utiliser zigbee2mqtt. Je désinstalle ZHA. Je suis le tuto. Cela ne marche plus. Je modifie, cela ne marche toujours pas et maintenant, je suis bien loin de comprendre comment trouver une solution…
configuration Mosquito de base (sans login/password).
log :
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[12:45:57] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
[12:45:59] INFO: Starting NGINX for authentication handling...
[12:46:00] INFO: Starting mosquitto MQTT broker...
2024-07-20 12:46:00: Warning: Mosquitto should not be run as root/administrator.
2024-07-20 12:46:00: mosquitto version 2.0.18 starting
2024-07-20 12:46:00: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-07-20 12:46:00: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-07-20 12:46:00: ├── Username/password checking enabled.
2024-07-20 12:46:00: ├── TLS-PSK checking enabled.
2024-07-20 12:46:00: └── Extended authentication not enabled.
2024-07-20 12:46:00: Opening ipv4 listen socket on port 1883.
2024-07-20 12:46:00: Opening ipv6 listen socket on port 1883.
2024-07-20 12:46:00: Opening websockets listen socket on port 1884.
2024-07-20 12:46:00: mosquitto version 2.0.18 running
2024-07-20 12:46:00: New connection from ::1:41848 on port 1883.
2024-07-20 12:46:00: *Client <unknown> disconnected due to protocol error.*
Déjà, je pense que j’ai une erreur dans les logs…
Zigbee2mqtt :
La configuration
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:
base_topic: zigbee2mqtt
server: mqtt://core-mosquitto
serial:
serial:
port: >-
/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_6ac636ce5ce2ed119ee7f45162c613ac-if00-port0
Pour le port, c’est le port qu’utilisait ZHA. Cela semble donc bon …
Dans les log, j’ai une belle erreur qui semble assez classique mais je ne m’en dépatouille pas
[12:50:29] INFO: Preparing to start...
[12:50:30] INFO: Socat not enabled
[12:50:34] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-20 12:50:43] info: z2m: Logging to console, file (filename: log.log)
[2024-07-20 12:50:43] info: z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-07-20 12:50:43] info: z2m: Starting zigbee-herdsman (0.50.1)
[2024-07-20 12:50:44] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-07-20 12:50:44] info: zh:zstack:znp: Serialport opened
[2024-07-20 12:50:45] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-07-20 12:50:46] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-07-20 12:51:04] error: z2m: Error while starting zigbee-herdsman
[2024-07-20 12:51:04] error: z2m: Failed to start zigbee
[2024-07-20 12:51:04] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-20 12:51:04] error: z2m: Exiting...
[2024-07-20 12:51:05] error: z2m: 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:101:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
at Zigbee.start (/app/lib/zigbee.ts:63:27)
at Controller.start (/app/lib/controller.ts:139:27)
at start (/app/index.js:154:5)
Comment puis je trouver la solution ?