Z2m: Failed to call 'Bridge' 'start'

Bonjour,

Suite à migration de SSD / mise à jour HA/ désinstallation-réinstallation Z2M, le bouton « tout apairer » ne fonctionne plus dans Z2M… J’ai ces erreurs dans les logs après redémarrage:

[2024-11-27 21:11:53] info: 	z2m: Logging to console, file (filename: log.log)
[2024-11-27 21:11:53] info: 	z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-11-27 21:11:53] info: 	z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-27 21:11:53] info: 	z2m: zigbee-herdsman started (resumed)
[2024-11-27 21:11:53] info: 	z2m: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":114,"product":0,"revision":"0x26720700","transportrev":0},"type":"ConBee2/RaspBee2"}'
[2024-11-27 21:11:53] info: 	z2m: Currently 0 devices are joined.
[2024-11-27 21:11:53] info: 	z2m: Zigbee: disabling joining new devices.
[2024-11-27 21:11:53] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquitto
[2024-11-27 21:11:54] info: 	z2m: Connected to MQTT server
[2024-11-27 21:11:54] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
[2024-11-27 21:11:54] error: 	z2m: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'getDevice')
    at Bridge.publishInfo (/app/lib/extension/bridge.ts:746:69)
    at Bridge.start (/app/lib/extension/bridge.ts:174:20)
    at Controller.callExtensions (/app/lib/controller.ts:399:17)
    at Controller.start (/app/lib/controller.ts:218:9)
    at start (/app/index.js:154:5))
[2024-11-27 21:11:54] info: 	z2m: Started frontend on port 8099
[2024-11-27 21:11:54] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"unknown","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":114,"product":0,"revision":"0x26720700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"info","network":{"channel":11,"extendedPanID":"0x5921e16bb5e3c8c6","panID":49999},"permit_join":false,"version":"1.41.0"}'
[2024-11-27 21:11:54] error: 	z2m: Failed to call 'HomeAssistant' 'start' (TypeError: Cannot read properties of undefined (reading 'deviceIeeeAddress')
    at HomeAssistant.getBridgeEntity (/app/lib/extension/homeassistant.ts:2021:78)
    at HomeAssistant.start (/app/lib/extension/homeassistant.ts:481:28)
    at Controller.callExtensions (/app/lib/controller.ts:399:17)
    at Controller.start (/app/lib/controller.ts:218:9)
    at start (/app/index.js:154:5))
[2024-11-27 21:11:54] info: 	z2m: Zigbee2MQTT started!

Je vois des sujets qui parlent de flasher la clé zigbee (conbee 2 pour moi)et tout mais je suis loiiin de savoir faire ça…
Donc si vous avez des idées…

System Information

version core-2024.11.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1466
Downloaded Repositories 4
Home Assistant Cloud
logged_in true
subscription_expiration 2 mars 2025 à 01:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
cloud_ice_servers_enabled true
remote_server eu-central-1-17.ui.nabu.casa
certificate_status ready
instance_id ad8b8bda1b174a2abc2136a29095e2c0
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 13.2
update_channel stable
supervisor_version supervisor-2024.11.4
agent_version 1.6.0
docker_version 27.2.0
disk_total 439.4 GB
disk_used 7.7 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Spotify Connect (0.13.0), File editor (5.8.0), Terminal & SSH (9.15.0), openWakeWord (1.10.0), Mosquitto broker (6.4.1), Zigbee2MQTT (1.41.0-1)
Dashboards
dashboards 3
resources 0
views 3
mode storage
Recorder
oldest_recorder_run 24 novembre 2024 à 00:01
current_recorder_run 27 novembre 2024 à 21:04
estimated_db_size 59.84 MiB
database_engine sqlite
database_version 3.45.3
Spotify
api_endpoint_reachable ok

Bonjour,
tu dois avoir un souci avec le datatbase.db dans le dossier de Zigbee2mqtt. Fais un backup du fichier datatbase.db et supprime-le. Relance Z2M.

Pour le firmware de la conbeeII:
Avertissement : les versions du micrologiciel Conbee 2 plus récentes que 0x26580700 entraîneront un réseau instable avec des appareils qui se déconnecteront de manière aléatoire.

Regarde sur quelle version tu es, dans les paramètres de Z2M:

Super ça a fonctionné ! Merci :partying_face: !

Ah… Je suis au dessus évidement… ça ne sera jamais corrigé? C’est dommage de ne pas avoir les dernières maj, non?

image

Comme recommandé dans la doc de Z2M, il faut avoir le firmware 0x26580700, qui doit être le plus stable a ce jour. Je n’en sais rien si ça sera corrigé, la conbeeII commence à dater.

Bonjour, je me permets de continuer ce post car j’ai le même problème (pas d’appairage possible).
J’ai effacé la datatbase.db de Zigbee2mqtt puis restart z2m mais rien de mieux.
Par contre dans « about » j’ai rien dans la version du firmware de la conbee… Une idée de mon prob ?
Merci d’avance.
PS: Je joins aussi le log z2m.

Starting Zigbee2MQTT without watchdog.
[2024-12-01 07:36:28] info: 	z2m: Logging to console, file (filename: log.log)
[2024-12-01 07:36:28] info: 	z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-12-01 07:36:28] info: 	z2m: Starting zigbee-herdsman (2.1.7)
[2024-12-01 07:36:28] info: 	z2m: zigbee-herdsman started (resumed)
[2024-12-01 07:36:28] info: 	z2m: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":104,"product":0,"revision":"0x26680700","transportrev":0},"type":"ConBee2/RaspBee2"}'
[2024-12-01 07:36:28] info: 	z2m: Currently 0 devices are joined.
[2024-12-01 07:36:28] info: 	z2m: Zigbee: disabling joining new devices.
[2024-12-01 07:36:38] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-12-01 07:36:39] info: 	z2m: Connected to MQTT server
[2024-12-01 07:36:39] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
[2024-12-01 07:36:39] error: 	z2m: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'getDevice')
    at Bridge.publishInfo (/app/lib/extension/bridge.ts:746:69)
    at Bridge.start (/app/lib/extension/bridge.ts:174:20)
    at Controller.callExtensions (/app/lib/controller.ts:399:17)
    at Controller.start (/app/lib/controller.ts:218:9)
    at start (/app/index.js:154:5))
[2024-12-01 07:36:39] info: 	z2m: Started frontend on port 8099
[2024-12-01 07:36:39] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"unknown","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":104,"product":0,"revision":"0x26680700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xddd98f73c27e11a2","panID":44554},"permit_join":false,"version":"1.41.0"}'
[2024-12-01 07:36:39] error: 	z2m: Failed to call 'HomeAssistant' 'start' (TypeError: Cannot read properties of undefined (reading 'deviceIeeeAddress')
    at HomeAssistant.getBridgeEntity (/app/lib/extension/homeassistant.ts:2021:78)
    at HomeAssistant.start (/app/lib/extension/homeassistant.ts:481:28)
    at Controller.callExtensions (/app/lib/controller.ts:399:17)
    at Controller.start (/app/lib/controller.ts:218:9)
    at start (/app/index.js:154:5))
[2024-12-01 07:36:39] info: 	z2m: Zigbee2MQTT started!

Bonjour,
je re-flasherai la clé en firmware 0x26580700.

Montre ton configuration.yaml de Zigbee2mqtt.

homeassistant: true
advanced:
  network_key:
    - 203
    - 128
    - 21
    - 225
    - 143
    - 231
    - 239
    - 57
    - 66
    - 29
    - 220
    - 245
    - 11
    - 85
    - 61
    - 220
  pan_id: 44554
  ext_pan_id:
    - 221
    - 217
    - 143
    - 115
    - 194
    - 126
    - 17
    - 162
mqtt:
  server: mqtt://core-mosquitto:1883
  user: mqtt
  password: mqtt
serial:
  port: /dev/serial/by-id/usb-0658_0200-if00
  adapter: ezsp
frontend:
  port: 8099

Tu n’as pas une conbeeII ?

Je te conseille de lire ce tuto:

Désolé, on s’est mal compris… Je t’ai envoyé le .yaml présent dans le répertoire \zigbee2mqtt qui est « stock ». Celui que j’ai config dans l’addon est le suivant :

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:
  server: mqtt://core-mosquitto:1883
  user: mqtt
  password: mqtt
  discovery: true
serial:
  port: >-
    /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2212736-if00
  adapter: deconz

Il est la le problème. Tu as déjà un fichier configuration.yaml créer dans le dossier de zigbee2mqtt.
Donc toutes les modifications par la configuration en UI, n’est pas sauvegardé.
Il faut que tu modifies le fichier configuration.yaml de Z2M dans le dossier directement pour prendre en compte les modifications.

1 « J'aime »

Un grand merci @WarC0zes, c’est parfait.

1 « J'aime »

Salut,

ça se fait facilement…? Tu connais un tuto?

Ce n’est pas trop compliqué. Je ne connais pas de tuto, mais il y a une vidéo de Phoscon.

https://phoscon.de/en/conbee2/install#fwupdate

1 « J'aime »

Top, Merci beaucoup ! En effet c’était easy :partying_face:

1 « J'aime »