Je vois bien mes deux modules Sonoff_Zigbee_3.0 :
# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 19 nov. 19:58 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 10 nov. 17:35 usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0 -> ../../ttyUSB0
Mon OS et docker son à jour :
# docker -v
Docker version 20.10.22, build 3a2c30b
# cat /etc/os-release | grep "PRETTY_NAME"
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
Test 1
J’ai fait une configuration basique :
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: {}
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: ezsp
La communication semble bone :
test -w /dev/ttyUSB0 && echo success || echo failure
Mais impossible de lancer le module.
Dans les logs :
# docker logs d5ab8e1b74d1
[22:01:02] INFO: Preparing to start...
[22:01:02] INFO: Socat not enabled
[22:01:02] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-11-19 22:01:05] info: z2m: Logging to console, file (filename: log.log)
[2024-11-19 22:01:05] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-11-19 22:01:05] info: z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-19 22:01:06] error: z2m: Error while starting zigbee-herdsman
[2024-11-19 22:01:06] error: z2m: Failed to start zigbee
[2024-11-19 22:01:06] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-11-19 22:01:06] error: z2m: Exiting...
[2024-11-19 22:01:06] error: z2m: Error: No path provided and failed to auto detect path
at Function.create (/app/node_modules/zigbee-herdsman/src/adapter/adapter.ts:107:23)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:133:24)
at Zigbee.start (/app/lib/zigbee.ts:69:27)
at Controller.start (/app/lib/controller.ts:161:27)
at start (/app/index.js:154:5)
J’ai essayé de changer la configuration :
Test 2 : KO
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: {}
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: deconz
– Test 3 : KO
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: {}
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: ember
- L’erreur semble être maintenant :
[2024-11-19 22:15:41] error: z2m: Error while starting zigbee-herdsman
[2024-11-19 22:15:41] error: z2m: Failed to start zigbee
[2024-11-19 22:15:41] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-11-19 22:15:41] error: z2m: Exiting...
[2024-11-19 22:15:41] error: z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
Test 4 : KO
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
user: mqtt
password: mqtt
server: mqtt://core-mosquitto:1883
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: ember
baudrate: 230400
Test 5 : KO
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
user: mqtt
password: mqtt
server: mqtt://core-mosquitto:1883
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: zstack
Dans les logs :
# docker logs cb06c5c275d6
[22:26:26] INFO: Preparing to start...
[22:26:26] INFO: Socat not enabled
[22:26:27] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-11-19 22:26:29] info: z2m: Logging to console, file (filename: log.log)
[2024-11-19 22:26:29] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-11-19 22:26:29] info: z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-19 22:26:30] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-11-19 22:26:30] info: zh:zstack:znp: Serialport opened
[2024-11-19 22:27:35] error: z2m: Error while starting zigbee-herdsman
[2024-11-19 22:27:35] error: z2m: Failed to start zigbee
[2024-11-19 22:27:35] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-11-19 22:27:35] error: z2m: Exiting...
[2024-11-19 22:27:35] error: z2m: Error: network commissioning timed out - most likely network with the same panId or extendedPanId already exists nearby (Error: AREQ - ZDO - stateChangeInd after 60000m
Test 6 : KO
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
user: mqtt
password: mqtt
server: mqtt://core-mosquitto:1883
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: zstack
advanced:
pan_id: GENERATE
ext_pan_id: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
network_key: GENERATE
Test 7 : KO
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
user: mqtt
password: mqtt
server: mqtt://core-mosquitto:1883
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e888a2e55f0cee11a6c834d6f49e3369-if00-port0
adapter: zstack
advanced:
pan_id: GENERATE
ext_pan_id: GENERATE
network_key: GENERATE
Test 7 : KO
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
user: mqtt
password: mqtt
server: mqtt://core-mosquitto:1883
serial:
port: /dev/ttyUSB1
permit_join: true
advanced:
pan_id: GENERATE
ext_pan_id:
- 221
- 221
- 221
- 221
- 221
- 221
- 221
- 221
network_key: GENERATE
channel: 11
J’aime ça :
J’aime chargement…