Не запускается Zigbee2mqtt на JetHub H1

Здравствуйте, приобрёл JetHub H1с предустановлеyной системой Home Assistant.
По инструкциям из видео Умный дом с Alex Kvazis (JetHome JetHub H1 контроллер умного дома, установка Supervised Home Assistant, настройка zigbee2mqtt - YouTube) установил Mosquitto broker, всё нормально.
Устанавливаю Zigbee2mqtt меняю в конфигурации порт на AML2.
Запускаю и данный Add-on не работает.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[19:01:14] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[19:01:18] INFO: MQTT available, fetching server detail ...
[19:01:19] INFO: MQTT server settings not configured, trying to auto-discovering ...
[19:01:22] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[19:01:23] INFO: MQTT credentials not configured, trying to auto-discovering ...
[19:01:24] INFO: Configuring'addons' mqtt user
[19:01:24] INFO: Previous config file found, checking backup
[19:01:24] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[19:01:25] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[19:01:28] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.22.1 start
> node index.js
Zigbee2MQTT:info  2021-12-11 19:01:41: Logging to console and directory: '/config/zigbee2mqtt/log/2021-12-11.19-01-36' filename: log.txt
Zigbee2MQTT:info  2021-12-11 19:01:41: Starting Zigbee2MQTT version 1.22.1 (commit #unknown)
Zigbee2MQTT:info  2021-12-11 19:01:41: Starting zigbee-herdsman (0.13.176)
Zigbee2MQTT:error 2021-12-11 19:02:02: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-12-11 19:02:02: Failed to start zigbee
Zigbee2MQTT:error 2021-12-11 19:02:02: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2021-12-11 19:02:02: Exiting...
Zigbee2MQTT:error 2021-12-11 19:02:02: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:97:5)
[19:02:04] INFO: Handing over control to Zigbee2mqtt Core ...``

Подскажите как лечить данную проблему или данный блок не рабочий?

Давай сравним конфиг, покажи весь свой.

Мой конфиг Z2m

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
serial:
  port: /dev/ttyAML2
advanced:
  log_level: info
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
availability: false
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

Всё как у меня.
один в один.
не понятно.

Попробуй копипаст сделать, мало ли…

data_path: /config/zigbee2mqtt
external_converters:
  - ptvo_counter_2ch.js
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
serial:
  port: /dev/ttyAML2
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
  availability_timeout: 180
  last_seen: ISO_8601_local
device_options:
  temperature_precision: 1
  humidity_precision: 1
  legacy: false
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
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

Попробывал:

[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[19:26:18] INFO: MQTT available, fetching server detail ...
[19:26:19] INFO: MQTT server settings not configured, trying to auto-discovering ...
[19:26:22] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[19:26:23] INFO: MQTT credentials not configured, trying to auto-discovering ...
[19:26:24] INFO: Configuring'addons' mqtt user
[19:26:24] INFO: Previous config file found, checking backup
[19:26:24] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[19:26:25] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[19:26:28] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.22.1 start
> node index.js
(node:395) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/config/zigbee2mqtt/ptvo_counter_2ch.js'
    at Object.openSync (fs.js:497:3)
    at Object.readFileSync (fs.js:393:35)
    at loadModuleFromFile (/app/lib/util/utils.ts:154:27)
    at Object.getExternalConvertersDefinitions (/app/lib/util/utils.ts:165:25)
    at getExternalConvertersDefinitions.next (<anonymous>)
    at new ExternalConverters (/app/lib/extension/externalConverters.ts:12:20)
    at new Controller (/app/lib/controller.ts:83:58)
    at start (/app/index.js:96:18)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:395) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:395) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[19:26:45] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.22.1 start
> node index.js
(node:435) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/config/zigbee2mqtt/ptvo_counter_2ch.js'
    at Object.openSync (fs.js:497:3)
    at Object.readFileSync (fs.js:393:35)
    at loadModuleFromFile (/app/lib/util/utils.ts:154:27)
    at Object.getExternalConvertersDefinitions (/app/lib/util/utils.ts:165:25)
    at getExternalConvertersDefinitions.next (<anonymous>)
    at new ExternalConverters (/app/lib/extension/externalConverters.ts:12:20)
    at new Controller (/app/lib/controller.ts:83:58)
    at start (/app/index.js:96:18)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:435) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:435) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[19:27:00] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.22.1 start
> node index.js

лучше не стало…другие ошибки

ptvo_counter_2ch.js

надо удалить, нет у тебя этого конвертера.

В моей конфигурации данного конвертера не было:

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml

… и всё равно не работает

Судя по логам - был.
Удалите бекап z2m.
и пишет что стартанул не взирая не на что.

я также мучаюсь с установкой и запуском этой интеграции на D1
у меня во время установки отваливается supervisor - помогает только ребут
иногда удается поставить, но при запуске всё начинает висеть, удаляю и заново ставлю… пока не понимаю почему
в логах


Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:559
Integration: Home Assistant Supervisor ([documentation](https://www.home-assistant.io/integrations/hassio), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+hassio%22))
First occurred: 16:30:16 (10 occurrences)
Last logged: 17:17:04


Can't read Supervisor data:


Logger: homeassistant.components.hassio.handler
Source: components/hassio/handler.py:237
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 16:30:16 (30 occurrences)
Last logged: 17:17:04

Timeout on /addons/core_configurator/stats request
Timeout on /addons/core_mosquitto/stats request
Timeout on /addons/094a1135_jethub-mqtt-io/stats request


Logger: homeassistant.components.hassio.http
Source: components/hassio/http.py:119
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 17:01:43 (1 occurrences)
Last logged: 17:01:43

Client timeout error on API request app/entrypoint.js


Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:119
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 16:26:05 (2 occurrences)
Last logged: 16:26:16

Failed to to call /addons/45df7312_zigbee2mqtt/start - Image zigbee2mqtt/zigbee2mqtt-aarch64:1.22.1-1 does not exist for addon_45df7312_zigbee2mqtt
Failed to to call /addons/45df7312_zigbee2mqtt/uninstall - Addon is not installed

Добрый день!
Удалось ли вам победить проблему с Zigbee2MQTT?
Имею то же самое и уже месяц не могу решить.
[06:23:36] INFO: Handing over control to Zigbee2mqtt Core …

zigbee2mqtt@1.22.1 start
node index.js
Zigbee2MQTT:error 2021-12-21 06:24:10: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-12-21 06:24:10: Failed to start zigbee
Zigbee2MQTT:error 2021-12-21 06:24:10: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2021-12-21 06:24:10: Exiting…
Zigbee2MQTT:error 2021-12-21 06:24:11: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:100:27)
at start (/app/index.js:97:5)

Аналогичная проблема на хабе H1. Сначала всё завелось хорошо, после отключения электричества и новой загрузки хаба, перестал работать Zigbee2MQTT

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[09:23:31] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[09:23:35] INFO: MQTT available, fetching server detail ...
[09:23:36] INFO: MQTT server settings not configured, trying to auto-discovering ...
[09:23:39] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[09:23:40] INFO: MQTT credentials not configured, trying to auto-discovering ...
[09:23:41] INFO: Configuring'addons' mqtt user
[09:23:41] INFO: Previous config file found, checking backup
[09:23:41] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[09:23:42] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[09:23:45] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.23.0 start
> node index.js
Zigbee2MQTT:info  2022-02-02 09:23:58: Logging to console and directory: '/config/zigbee2mqtt/log/2022-02-02.09-23-53' filename: log.txt
Zigbee2MQTT:info  2022-02-02 09:23:58: Starting Zigbee2MQTT version 1.23.0 (commit #unknown)
Zigbee2MQTT:info  2022-02-02 09:23:58: Starting zigbee-herdsman (0.14.10)
Zigbee2MQTT:error 2022-02-02 09:23:58: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-02-02 09:23:58: Failed to start zigbee
Zigbee2MQTT:error 2022-02-02 09:23:58: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-02-02 09:23:58: Exiting...
Zigbee2MQTT:error 2022-02-02 09:23:59: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Function.open (/app/node_modules/zigbee-herdsman/src/controller/database.ts:19:35)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:116:34)
    at Zigbee.start (/app/lib/zigbee.ts:58:47)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:101:5)
[09:24:01] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.23.0 start
> node index.js

Проблема решена. Удалил файл БД z2m по совету ТП:

тогда первый вариант: у вас сломался z2m. к jethome это не имеет отношения.

если разбираетесь в json файлах - проверьте файл data/database.db, если нет просто попробуйте его удалить и запустить еще раз (удаление файла обнулит всю базу подключенных устройств)

если это не поможет, то ищите помощь у официального репозитория Issues · Koenkk/zigbee2mqtt · GitHub или в группе @zigbeer