Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.22k stars 1.69k forks source link

Fails to connect to Conbee II #24651

Open johnsprogs opened 3 weeks ago

johnsprogs commented 3 weeks ago

What happened?

On start-up z2m gives error: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'getDevice') at Bridge.publishInfo (/opt/zigbee2mqtt/lib/extension/bridge.ts:746:69)... Tried serial/by-device and dev/tty..., makes no difference. Stick worked with Deconz on previous Pi, but now making a fresh install from scratch. My settings in configuration.yaml: `permit_join: true homeassistant: true frontend: port: 8090 mqtt: broker: core-mosquitto port: 1883 server: mqtt://localhost discovery: true base_topic: zigbee2mqtt discovery_prefix: Zigbee2MQTT birth_message: topic: 'hass/status' payload: 'online' will_message: topic: 'hass/status' payload: 'offline' server: mqtt://localhost serial: adapter: deconz port: >- /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2228982-if00 advanced: log_level: debug network_key:

What did you expect to happen?

It would connect properly. Earlier in the process the Conbee II seems to be recognised: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":120,"product":0,"revision":"0x26780700","transportrev":0},"type":"ConBee2/RaspBee2"}'

How to reproduce it (minimal and precise)

Just starting it up with npm start

Zigbee2MQTT version

1.41.0

Adapter firmware version

26780700

Adapter

Conbee II

Setup

Running on Pi 4B, At the moment plain, will later connect to Domoticz

Debug log

log.log

johnsprogs commented 3 weeks ago

Previous log appears to be one before debug enabled, Here is another one: [2024-11-05 15:51:01] info: z2m: Logging to console, file (filename: log.log) [2024-11-05 15:51:01] debug: z2m: Loaded state from file /opt/zigbee2mqtt/data/state.json [2024-11-05 15:51:01] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #cc31cea) [2024-11-05 15:51:01] debug: z2m: sd-notify loaded [2024-11-05 15:51:01] info: z2m: Starting zigbee-herdsman (2.1.7) [2024-11-05 15:51:01] debug: z2m: Using zigbee-herdsman with settings: '"{\"network\":{\"panID\":34867,\"extendedPanID\":[3,207,62,224,189,59,129,105],\"channelList\":[11],\"networkKey\":\"HIDDEN\"},\"databasePath\":\"/opt/zigbee2mqtt/data/database.db\",\"databaseBackupPath\":\"/opt/zigbee2mqtt/data/database.db.backup\",\"backupPath\":\"/opt/zigbee2mqtt/data/coordinator_backup.json\",\"serialPort\":{\"path\":\"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2228982-if00\",\"adapter\":\"deconz\"},\"adapter\":{\"disableLED\":false}}"' [2024-11-05 15:51:01] debug: zh:deconz:driver: Set delay to 0 [2024-11-05 15:51:01] debug: zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":"HIDDEN","panID":34867,"extendedPanID":[3,207,62,224,189,59,129,105],"channelList":[11]},"serialPort":{"path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2228982-if00","adapter":"deconz"},"adapter":{"disableLED":false},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json"}' [2024-11-05 15:51:01] debug: zh:deconz:driver: Opening with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2228982-if00 [2024-11-05 15:51:01] debug: zh:deconz:driver: Serialport opened [2024-11-05 15:51:01] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 1 paramId: 5 [2024-11-05 15:51:01] debug: zh:deconz:frameparser: PANID: 8833 [2024-11-05 15:51:01] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 2 paramId: 11 [2024-11-05 15:51:01] debug: zh:deconz:frameparser: APS_EXT_PANID: 0x03cf3ee0bd3b8169 [2024-11-05 15:51:01] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 3 paramId: 28 [2024-11-05 15:51:01] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10100010 [2024-11-05 15:51:01] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:01] debug: zh:deconz:frameparser: CHANNEL: 11 [2024-11-05 15:51:01] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 4 paramId: 24 [2024-11-05 15:51:01] debug: zh:deconz:frameparser: NETWORK_KEY: hidden [2024-11-05 15:51:01] debug: zh:deconz: Channel in configuration.yaml (11) differs from current channel (162). Changing channel. [2024-11-05 15:51:01] debug: zh:deconz:driver: send write parameter request from queue. seqNr: 5 paramId: 10 param: 2048 [2024-11-05 15:51:01] debug: zh:deconz:frameparser: write parameter response - parameter id: 10 - status: 0 [2024-11-05 15:51:02] debug: zh:deconz:driver: send change network state request from queue. seqNr: 6 [2024-11-05 15:51:02] debug: zh:deconz:frameparser: change network state - status: 0 new state: 0 [2024-11-05 15:51:02] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10000011 [2024-11-05 15:51:02] debug: zh:deconz:driver: networkstate: 3 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 0 [2024-11-05 15:51:02] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10000000 [2024-11-05 15:51:02] debug: zh:deconz:driver: networkstate: 0 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 0 [2024-11-05 15:51:04] debug: zh:deconz:driver: send change network state request from queue. seqNr: 7 [2024-11-05 15:51:04] debug: zh:deconz:frameparser: change network state - status: 0 new state: 0 [2024-11-05 15:51:04] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10000001 [2024-11-05 15:51:04] debug: zh:deconz:driver: networkstate: 1 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 0 [2024-11-05 15:51:04] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10100010 [2024-11-05 15:51:04] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:06] debug: zh:deconz:driver: send write parameter request from queue. seqNr: 8 paramId: 19 param: 5,2,5,0,0,32,0,1,4,5,1,0,25,0,10,6,0,0,0,5,1,0,5,1,4,1,0 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: write parameter response - parameter id: 19 - status: 0 [2024-11-05 15:51:06] debug: zh:controller: Started with result 'resumed' [2024-11-05 15:51:06] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 9 paramId: 5 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: PANID: 8833 [2024-11-05 15:51:06] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 10 paramId: 11 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: APS_EXT_PANID: 0x03cf3ee0bd3b8169 [2024-11-05 15:51:06] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 11 paramId: 28 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: CHANNEL: 11 [2024-11-05 15:51:06] debug: zh:controller: Injected database: true, adapter: true [2024-11-05 15:51:06] debug: zh:controller:device: Request Queue (0x00212effff060382): default expiration timeout set to 0 [2024-11-05 15:51:06] debug: zh:controller:database: Writing database to '/opt/zigbee2mqtt/data/database.db' [2024-11-05 15:51:06] debug: zh:deconz:driver: send read parameter request from queue. seqNr: 12 paramId: 1 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: MAC: 0x00212effff060382 [2024-11-05 15:51:06] info: z2m: zigbee-herdsman started (resumed) [2024-11-05 15:51:06] debug: zh:deconz:driver: send read firmware version request from queue. seqNr: 13 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: read firmware version response - version: 0,7,120,38 [2024-11-05 15:51:06] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":120,"product":0,"revision":"0x26780700","transportrev":0},"type":"ConBee2/RaspBee2"}' [2024-11-05 15:51:06] debug: z2m: Zigbee network parameters: {"channel":11,"extendedPanID":"0x03cf3ee0bd3b8169","panID":34867} [2024-11-05 15:51:06] info: z2m: Currently 0 devices are joined. [2024-11-05 15:51:06] warning: z2m:permit_joinset totruein configuration.yaml. [2024-11-05 15:51:06] warning: z2m: Allowing new devices to join. [2024-11-05 15:51:06] warning: z2m: Setpermit_jointofalseonce you joined all devices. [2024-11-05 15:51:06] info: z2m: Zigbee: allowing new devices to join. [2024-11-05 15:51:06] debug: zh:deconz:driver: send write parameter request from queue. seqNr: 14 paramId: 33 param: 254 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: write parameter response - parameter id: 33 - status: 0 [2024-11-05 15:51:06] debug: zh:deconz: Permit joining on coordinator for 254 sec. [2024-11-05 15:51:06] debug: zh:deconz: zclFrame to all - 242 [2024-11-05 15:51:06] debug: zh:deconz: sendZclFrameToAll - message send [2024-11-05 15:51:06] debug: zh:deconz:driver: DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 15 request id: 1 [2024-11-05 15:51:06] debug: zh:deconz:driver: DATA_REQUEST - destAddr: 0xfffd EP:242 SeqNr. 16 request id: 2 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: DATA_REQUEST RESPONSE - request id: 1 status: 0 [2024-11-05 15:51:06] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:06] debug: zh:deconz:frameparser: DATA_REQUEST RESPONSE - request id: 2 status: 0 [2024-11-05 15:51:06] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:07] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10100110 [2024-11-05 15:51:07] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:07] debug: zh:deconz:driver: query aps data confirm [2024-11-05 15:51:07] debug: zh:deconz:driver: DATA_CONFIRM - sending data state request - SeqNr. 17 [2024-11-05 15:51:07] debug: zh:deconz:frameparser: DATA_CONFIRM RESPONSE - destAddr: 0xfffc request id: 1 confirm status: 0 [2024-11-05 15:51:07] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:07] debug: zh:deconz:driver: query aps data confirm [2024-11-05 15:51:07] debug: zh:deconz:driver: DATA_CONFIRM - sending data state request - SeqNr. 18 [2024-11-05 15:51:07] debug: zh:deconz:frameparser: DATA_CONFIRM RESPONSE - destAddr: 0xfffd request id: 2 confirm status: 0 [2024-11-05 15:51:07] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:07] info: z2m: Connecting to MQTT server at mqtt://localhost [2024-11-05 15:51:07] debug: z2m: Using MQTT anonymous login [2024-11-05 15:51:07] info: z2m: Connected to MQTT server [2024-11-05 15:51:07] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' [2024-11-05 15:51:07] error: z2m: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'getDevice') at Bridge.publishInfo (/opt/zigbee2mqtt/lib/extension/bridge.ts:746:69) at Bridge.start (/opt/zigbee2mqtt/lib/extension/bridge.ts:174:20) at Controller.callExtensions (/opt/zigbee2mqtt/lib/controller.ts:399:17) at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:218:9) at start (/opt/zigbee2mqtt/index.js:154:5)) [2024-11-05 15:51:07] info: z2m: Started frontend on port 8090 [2024-11-05 15:51:07] debug: z2m:mqtt: Received MQTT message on 'zigbee2mqtt/bridge/config' with data '{"commit":"cc31cea","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":120,"product":0,"revision":"0x26780700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"info","network":{"channel":11,"extendedPanID":"0x03cf3ee0bd3b8169","panID":34867},"permit_join":true,"version":"1.41.0"}' [2024-11-05 15:51:07] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"cc31cea","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":120,"product":0,"revision":"0x26780700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"debug","network":{"channel":11,"extendedPanID":"0x03cf3ee0bd3b8169","panID":34867},"permit_join":true,"version":"1.41.0"}' [2024-11-05 15:51:07] error: z2m: Failed to call 'HomeAssistant' 'start' (TypeError: Cannot read properties of undefined (reading 'deviceIeeeAddress') at HomeAssistant.getBridgeEntity (/opt/zigbee2mqtt/lib/extension/homeassistant.ts:2021:78) at HomeAssistant.start (/opt/zigbee2mqtt/lib/extension/homeassistant.ts:481:28) at Controller.callExtensions (/opt/zigbee2mqtt/lib/controller.ts:399:17) at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:218:9) at start (/opt/zigbee2mqtt/index.js:154:5)) [2024-11-05 15:51:07] info: z2m: Zigbee2MQTT started! [2024-11-05 15:51:11] debug: zh:deconz:driver: send read device state from queue. seqNr: 19 [2024-11-05 15:51:11] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:51:11] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:21] debug: zh:deconz:driver: send read device state from queue. seqNr: 20 [2024-11-05 15:51:21] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:51:21] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:31] debug: zh:deconz:driver: send read device state from queue. seqNr: 21 [2024-11-05 15:51:31] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:51:31] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:41] debug: zh:deconz:driver: send read device state from queue. seqNr: 22 [2024-11-05 15:51:41] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:51:41] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:51:51] debug: zh:deconz:driver: send read device state from queue. seqNr: 23 [2024-11-05 15:51:51] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:51:51] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:52:01] debug: zh:deconz:driver: send read device state from queue. seqNr: 24 [2024-11-05 15:52:01] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:52:01] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:52:11] debug: zh:deconz:driver: send read device state from queue. seqNr: 25 [2024-11-05 15:52:11] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:52:11] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:52:21] debug: zh:deconz:driver: send read device state from queue. seqNr: 26 [2024-11-05 15:52:21] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:52:21] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:52:31] debug: zh:deconz:driver: send read device state from queue. seqNr: 27 [2024-11-05 15:52:31] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:52:31] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:52:41] debug: zh:deconz:driver: send read device state from queue. seqNr: 28 [2024-11-05 15:52:41] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:52:41] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:52:51] debug: zh:deconz:driver: send read device state from queue. seqNr: 29 [2024-11-05 15:52:51] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:52:51] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:53:01] debug: zh:deconz:driver: send read device state from queue. seqNr: 30 [2024-11-05 15:53:01] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:53:01] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:53:11] debug: zh:deconz:driver: send read device state from queue. seqNr: 31 [2024-11-05 15:53:11] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:53:11] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:53:21] debug: zh:deconz:driver: send read device state from queue. seqNr: 32 [2024-11-05 15:53:21] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:53:21] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:53:31] debug: zh:deconz:driver: send read device state from queue. seqNr: 33 [2024-11-05 15:53:31] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:53:31] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:53:41] debug: zh:deconz:driver: send read device state from queue. seqNr: 34 [2024-11-05 15:53:41] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:53:41] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:53:51] debug: zh:deconz:driver: send read device state from queue. seqNr: 35 [2024-11-05 15:53:51] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:53:51] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:54:01] debug: zh:deconz:driver: send read device state from queue. seqNr: 36 [2024-11-05 15:54:01] debug: zh:deconz:frameparser: device state: 10100010 [2024-11-05 15:54:01] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:54:09] debug: z2m: Saving state to file /opt/zigbee2mqtt/data/state.json [2024-11-05 15:54:09] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline' [2024-11-05 15:54:09] info: z2m: Disconnecting from MQTT server [2024-11-05 15:54:09] info: z2m: Stopping zigbee-herdsman... [2024-11-05 15:54:09] debug: zh:controller: Disable joining [2024-11-05 15:54:09] debug: zh:deconz: zclFrame to all - 242 [2024-11-05 15:54:09] debug: zh:deconz: sendZclFrameToAll - message send [2024-11-05 15:54:09] debug: zh:deconz:driver: DATA_REQUEST - destAddr: 0xfffd EP:242 SeqNr. 37 request id: 3 [2024-11-05 15:54:09] debug: zh:deconz:frameparser: DATA_REQUEST RESPONSE - request id: 3 status: 0 [2024-11-05 15:54:09] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:54:10] debug: zh:deconz:frameparser: DEVICE_STATE changed: 10100110 [2024-11-05 15:54:10] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 1 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:54:10] debug: zh:deconz:driver: query aps data confirm [2024-11-05 15:54:10] debug: zh:deconz:driver: DATA_CONFIRM - sending data state request - SeqNr. 38 [2024-11-05 15:54:10] debug: zh:deconz:frameparser: DATA_CONFIRM RESPONSE - destAddr: 0xfffd request id: 3 confirm status: 0 [2024-11-05 15:54:10] debug: zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1 [2024-11-05 15:54:10] debug: zh:deconz:driver: send write parameter request from queue. seqNr: 39 paramId: 33 param: 0 [2024-11-05 15:54:10] debug: zh:deconz:frameparser: write parameter response - parameter id: 33 - status: 0 [2024-11-05 15:54:10] debug: zh:deconz: Permit joining on coordinator for 0 sec. [2024-11-05 15:54:10] debug: zh:controller:database: Writing database to '/opt/zigbee2mqtt/data/database.db' [2024-11-05 15:54:10] debug: zh:deconz:driver: DATA_REQUEST - destAddr: 0xfffc EP:0 SeqNr. 40 request id: 4 [2024-11-05 15:54:10] info: z2m: Stopped zigbee-herdsman [2024-11-05 15:54:10] info: z2m: Stopped Zigbee2MQTT

The stop at 15:54:09 is initiated by me (ctrl C). Dont ask me why in write-mode everything is neat, and in the preview return/newlines are ignored...

medabida commented 2 weeks ago

i am having the same problem as well i tried 2 different conbee || firmwares (0x26720700 and 0x26780700) without any luck.

this.zigbee.firstCoordinatorEndpoint() seems to be undefined.. https://github.com/Koenkk/zigbee2mqtt/blame/cc31ceabd1c29bc1f266640cc6e6bea95d9d6db3/lib/extension/bridge.ts#L746

medabida commented 2 weeks ago

Deleting database.db prompted Zigbee2MQTT to generate a new one, which resolved the issue.

This is my initial database.db

{"id":1,"type":"Coordinator","ieeeAddr":"0x00212effff093c77","nwkAddr":0,"manufId":4405,"epList":[],"endpoints":{},"interviewCompleted":true,"meta":{}}

and this is the newly generated database.db

{"id":1,"type":"Coordinator","ieeeAddr":"0x00212effff093c77","nwkAddr":0,"manufId":4405,"epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[0,1536,10,25,1281],"outClusterList":[1,32,1280,1282],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":49246,"epId":2,"devId":2080,"inClusterList":[0],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"interviewCompleted":true,"meta":{}}

Since this is my first time using Zigbee2MQTT, I’m not entirely sure why this change fixed the issue or what each property represents. My guess, however, is that when Zigbee2MQTT is initially installed and the coordinator isn’t properly configured, it creates a partial configuration and saves it to database.db to reuse in the future, which then causes issues. Regenerating database.db after the device is correctly set up seems to resolve this, as the database then reflects the proper configuration.

If someone with more Zigbee2MQTT experience could explain this further, I’d be happy to provide additional details and investigate more.