Passage de zha à autre chose

Salut à toutes et tous

Je j’viens de jeedom et je bascule sur ha. Je suis passé direct sur zha mais j’ai l’impression que Z2M est mieux côté. Est ce bien le cas ?
Par contre je ne le trouve pas dans les intégrations c’est normal ?
J’avais prévu de toute façon de refaire mon réseau car j’ai déplacer pas mal de prises
Merci

Il supporte bien plus de device et surtout les intègre bien plus vite

Logique car c’est un Addon
Il faudra aussi installer un broker mqtt (mosquitto par exemple)

Il y’a beaucoup de tutos sur le sujet de l’installation de zigbee2mqtt

Bonjour,
tu as un article pour installer Z2M:

merci,
bon j’ai tout fait y compris le flashage de la clef, mais j’arrive à cette erreur dans le journal :

[17:45:00] INFO: Preparing to start...
[17:45:00] INFO: Socat not enabled
[17:45:00] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-05 17:45:01] info: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 17:45:01] info: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 17:45:01] info: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 17:45:01] error: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 17:45:01] error: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 17:45:01] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 17:45:01] error: 	z2m: Exiting...
[2025-01-05 17:45:02] error: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)
[2025-01-05 17:45:02] error: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364

Montre ta configuration du configuration.yaml du dossier de Zigbee2mqtt.

z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.

Quelle clé zigbee, tu utilises ?

J’utilise la clef sonoff zigbee E

voici la config yaml

version: 4
homeassistant:
  enabled: true
advanced:
  network_key:
    - 208
    - 208
    - 44
    - 118
    - 29
    - 174
    - 255
    - 119
    - 82
    - 76
    - 118
    - 111
    - 58
    - 240
    - 105
    - 74
  pan_id: 54162
  ext_pan_id:
    - 7
    - 83
    - 54
    - 50
    - 85
    - 241
    - 124
    - 195
mqtt:
  server: mqtt://core-mosquitto:1883
  user: addons
  password: saen4echxxxxxxxxxxxxxxxxxxxxxxx
frontend:
  enabled: true
  port: 8099

il te manque :

serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_XXXXXXXXXXX-if00
  adapter: ember

même avec ember ça change rien. j’avais trouvé le coup de zstack sur un git mais ça marche pas non plus

tu n’as pas les lignes serial, port et adapter dans ton configuration.yaml de Z2M.
Il faut les ajouter .

relis l’article.

ha mince j’avais pas vu qu’il fallait en effet le modifier direct dedans arf

j’ai fait la modif, ça rend ceci :

version: 4
homeassistant:
  enabled: true
advanced:
  network_key:
    - 208
    - 208
    - 44
    - 118
    - 29
    - 174
    - 255
    - 119
    - 82
    - 76
    - 118
    - 111
    - 58
    - 240
    - 105
    - 74
  pan_id: 54162
  ext_pan_id:
    - 7
    - 83
    - 54
    - 50
    - 85
    - 241
    - 124
    - 195
mqtt:
  server: mqtt://core-mosquitto:1883
  user: xxxxxxxxxx
  password: saexxxxxxxxxxxxx
frontend:
  enabled: true
  port: 8099

serial:
port: >-
  /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_f46774a66ed9ee118e72b84c37b89984-if00-port0
  adapter: ember

mais ça fait pareil :

[2025-01-05 18:01:13] error: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
[18:06:19] INFO: Preparing to start...
[18:06:19] INFO: Socat not enabled
[18:06:19] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-05 18:06:21] info: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 18:06:21] info: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 18:06:21] info: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 18:06:21] error: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 18:06:21] error: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 18:06:21] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 18:06:21] error: 	z2m: Exiting...
[2025-01-05 18:06:21] error: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/zigbee-herdsman@3.2.1/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)
[2025-01-05 18:06:21] error: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364

utilise la balise texte préformaté ( icone image) quand tu colle du code

tu as une mauvaise indentation, bien respecter les espaces.

serial:
  port: >-
    /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_f46774a66ed9ee118e72b84c37b89984-if00-port0
  adapter: ember

c’était ça merci beaucoup. tout ça pour une ptite indentation qui n’allait pas… des fois jme taperais…

Il faut être tes précis avec le yaml et sa syntaxe … Et ce n’est que le début :wink: