Bonjour,
après avoir passé permit_join à true dans configuration.yaml, tu as redémarré le service ? :
systemctl restart zigbee2mqtt
tu peux voir le log avec la commande :
journalctl -u zigbee2mqtt -f
ça donne :
Apr 12 19:53:54 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:53: Successfully interviewed '0x00124b00226974c9', device has successfully been paired
Apr 12 19:53:54 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:54: Device '0x00124b00226974c9' is supported, identified as: SONOFF Contact sensor (SNZB-04)
Apr 12 19:53:54 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:54: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Contact sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"SNZB-04","supports_ota":false,"vendor":"SONOFF"},"friendly_name":"0x00124b00226974c9","ieee_address":"0x00124b00226974c9","status":"successful","supported":true},"type":"device_interview"}'
Apr 12 19:53:54 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:54: Configuring '0x00124b00226974c9'
Apr 12 19:53:54 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:54: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Contact sensor","friendly_name":"0x00124b00226974c9","model":"SNZB-04","supported":true,"vendor":"SONOFF"},"type":"pairing"}'
Apr 12 19:53:55 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:55: MQTT publish: topic 'zigbee2mqtt/0x00124b00226974c9', payload '{"battery":80,"device":{"applicationVersion":4,"dateCode":"20201026","friendlyName":"0x00124b00226974c9","hardwareVersion":1,"ieeeAddr":"0x00124b00226974c9","manufacturerID":0,"manufacturerName":"eWeLink","model":"SNZB-04","networkAddress":22399,"powerSource":"Battery","type":"EndDevice","zclVersion":1},"linkquality":31,"voltage":2900}'
Apr 12 19:53:55 domobox npm[30734]: Zigbee2MQTT:info 2021-04-12 19:53:55: Successfully configured '0x00124b00226974c9'
Sinon, vérifier le lien entre le système et la clé avec la commande :
ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Apr 2 18:17 usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B001949xxxx-if00 → …/…/ttyACM0
akenad