Gratuluję spostrzegawczości. Rzeczywiście początkowo wklejałem tu parametry z wartością “HIDE”, a później z wartością podobną, gdyż nie wiedziałem, czy będę mógł je kiedykolwiek zmienić w ramach bezpieczeństwa.
Dopiero jak je rozszyfrowałem to przekonałem się, iż w starych wersjach Z2M większość użytkowników uzyskiwała takie klucze. Zatem odpuściłem sobie dalsze “maskowanie” i wkleiłem gotowy kod.
Jako ciekawostkę dodam, że obecnie funkcja ‘GENERATE’ tworzy zdecydowanie silniejsze i unikalne klucze.
To akurat się zgadza, lecz w logu pojawił się błąd:
error: z2m: Error: ExtendedPanID must be an 8 digits long array, got
Dlatego zamiast 16x 221 zdecydowałem się na powyższy zapis, choć można by było w tej sytuacji spróbować też 8x 221.
Faktycznie, mimo, iż się odpala to pojawiają się błędy dotyczące wersji:
[2024-09-30 23:27:17] e[32minfoe[39m: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline'
[2024-09-30 23:27:17] e[32minfoe[39m: z2m: Disconnecting from MQTT server
[2024-09-30 23:27:17] e[32minfoe[39m: z2m: Stopping zigbee-herdsman...
[2024-09-30 23:27:18] e[32minfoe[39m: z2m: Stopped zigbee-herdsman
[2024-09-30 23:27:18] e[32minfoe[39m: z2m: Stopped Zigbee2MQTT
[23:27:20] INFO: e[32mPreparing to start...e[0m
[23:27:20] INFO: e[32mSocat not enablede[0m
[23:27:21] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2024-09-30 23:27:22] e[32minfoe[39m: z2m: Logging to console
[2024-09-30 23:27:22] e[32minfoe[39m: z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-30 23:27:22] e[32minfoe[39m: z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-30 23:27:23] e[32minfoe[39m: z2m: zigbee-herdsman started (resumed)
[2024-09-30 23:27:23] e[31merrore[39m: z2m: Failed to start zigbee
[2024-09-30 23:27:23] e[31merrore[39m: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-30 23:27:23] e[31merrore[39m: z2m: Exiting...
[2024-09-30 23:27:23] e[31merrore[39m: z2m: Error: Get coordinator version Error: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type number (28)
at DeconzAdapter.getCoordinatorVersion (/app/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:347:23)
at Zigbee.start (/app/lib/zigbee.ts:125:65)
at Controller.start (/app/lib/controller.ts:140:27)
at start (/app/index.js:154:5)
[23:27:23] INFO: e[32mPreparing to start...e[0m
[23:27:23] INFO: e[32mSocat not enablede[0m
[23:27:24] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2024-09-30 23:27:25] e[32minfoe[39m: z2m: Logging to console
[2024-09-30 23:27:25] e[32minfoe[39m: z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-30 23:27:25] e[32minfoe[39m: z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-30 23:27:26] e[32minfoe[39m: z2m: zigbee-herdsman started (resumed)
[2024-09-30 23:27:26] e[32minfoe[39m: z2m: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":120,"product":0,"revision":"0x26780700","transportrev":0},"type":"ConBee2/RaspBee2"}'
[2024-09-30 23:27:26] e[32minfoe[39m: z2m: Currently 0 devices are joined.
[2024-09-30 23:27:26] e[32minfoe[39m: z2m: Zigbee: disabling joining new devices.
[2024-09-30 23:27:27] e[32minfoe[39m: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-09-30 23:27:27] e[32minfoe[39m: z2m: Connected to MQTT server
[2024-09-30 23:27:27] e[32minfoe[39m: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
[2024-09-30 23:27:27] e[32minfoe[39m: z2m: Started frontend on port 8099
[2024-09-30 23:27:27] e[32minfoe[39m: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"unknown","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":120,"product":0,"revision":"0x26780700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6654},"permit_join":false,"version":"1.40.1"}'
[2024-09-30 23:27:27] e[32minfoe[39m: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
[2024-09-30 23:27:27] e[32minfoe[39m: z2m: Zigbee2MQTT started!
[2024-09-30 23:27:32] e[32minfoe[39m: z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b0014dbe4d3/connection_state/config', payload '{"device":{"hw_version":"ConBee2/RaspBee2 0x26780700","identifiers":["zigbee2mqtt_bridge_0x00124b0014dbe4d3"],"manufacturer":"Zigbee2MQTT","model":"Bridge","name":"Zigbee2MQTT Bridge","sw_version":"1.40.1"},"device_class":"connectivity","entity_category":"diagnostic","name":"Connection state","object_id":"zigbee2mqtt_bridge_connection_state","origin":{"name":"Zigbee2MQTT","sw":"1.40.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"offline","payload_on":"online","state_topic":"zigbee2mqtt/bridge/state","unique_id":"bridge_0x00124b0014dbe4d3_connection_state_zigbee2mqtt","value_template":"{{ value }}"}'