ConBeeII - Zigbee2MQTT: Error while starting zigbee-herdsman

See original GitHub issue

Hello @Koenkk,

first of all, thanks for all your work! I start with CC2531 and zigbee2mqtt container and see how much information you get from your devices. Then I bought a ConBeeII and run it in the deCONZ container and see how less information you get from your devices. So I decide to run ConBeeII with zigbee2mqtt container, but now I get a Error while starting zigbee-herdsman and have no clue what to do.

I run everything with docker-compose on a RaspberryPi B3+.

zigbee2mqtt (docker-compose)

  # ----------------------------------------------------------- ZIGBEE2MQTT
  zigbee2mqtt:
    image: koenkk/zigbee2mqtt
    depends_on:
      - mosquitto
    container_name: zigbee2mqtt
    restart: always
    privileged: true
    deploy:
      resources:
        limits:
          memory: 100M
    networks:
      - home-network
    volumes:
      - /run/udev:/run/udev:ro
      - ./volumes/zigbee2mqtt:/app/data
    devices:
      - /dev/ttyACM0:/dev/ttyACM0
    environment:
      TZ: Europe/Berlin
    ports:
      - 9002:8080

zigbee2mqtt (configuration.yaml)

# zigbee2mqtt.io https://www.zigbee2mqtt.io/information/configuration.html
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: "mqtt://raspberrypi"
  user: myuser
  password: mypassword
serial:
  adapter: deconz
  port: /dev/ttyACM0
advanced:
  network_key: GENERATE
frontend:
  port: 8080

zigbee2mqtt (debug-log)

Using '/app/data' as data directory

> zigbee2mqtt@1.15.0 start /app
> node index.js

Zigbee2MQTT:info  2021-01-09 08:09:26: Logging to console and directory: '/app/data/log/2021-01-09.08-09-26' filename: log.txt
Zigbee2MQTT:debug 2021-01-09 08:09:26: Removing old log directory '/app/data/log/2021-01-09.08-05-26'
Zigbee2MQTT:debug 2021-01-09 08:09:28: Loaded state from file /app/data/state.json
Zigbee2MQTT:info  2021-01-09 08:09:29: Starting Zigbee2MQTT version 1.15.0 (commit #1bccc5d)
Zigbee2MQTT:info  2021-01-09 08:09:29: Starting zigbee-herdsman...
Zigbee2MQTT:debug 2021-01-09 08:09:29: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'

CREATED DECONZ ADAPTER

Zigbee2MQTT:error 2021-01-09 08:09:40: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-01-09 08:09:40: Failed to start zigbee
Zigbee2MQTT:error 2021-01-09 08:09:40: Exiting...
Zigbee2MQTT:error 2021-01-09 08:09:40: undefined

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.15.0 start: `node index.js`
npm ERR! Exit status 1

For deCONZ install, I executed sudo gpasswd -a $USER dialout like suggested. Maybe an issue now? I removed the deCONZ-container from my stack.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NinioDevcommented, Mar 3, 2021

I have exactly the same issue, I’m using Conbee II with Zigbee2MQTT, I have activated the debug (log_level: debug), and here is the logs (with errors) I got:

Zigbee2MQTT:debug 2021-03-03 17:04:47: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2021-03-03 17:04:47: Logging to console and directory: '/config/zigbee2mqtt/log/2021-03-03.17-04-45' filename: log.txt
Zigbee2MQTT:debug 2021-03-03 17:04:47: Removing old log directory '/config/zigbee2mqtt/log/2021-03-03.17-02-20'
Zigbee2MQTT:info  2021-03-03 17:04:47: Starting Zigbee2MQTT version 1.18.1 (commit #1.18.1)
Zigbee2MQTT:info  2021-03-03 17:04:47: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:debug 2021-03-03 17:04:47: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2413881-if00"}}'
CREATED DECONZ ADAPTER
Zigbee2MQTT:error 2021-03-03 17:04:57: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-03-03 17:04:57: Failed to start zigbee
Zigbee2MQTT:error 2021-03-03 17:04:57: Exiting...
Zigbee2MQTT:error 2021-03-03 17:04:57: undefined

Any idea what is the case?

steps I did:

  1. Flash my Conbee II following the instructions here to the latest version:
  2. Here is my configuration (I have created mqtt user for this, I also used the homeassistant user of mosquitto broker, same results):
data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://192.168.1.191:1883'
  user: mqtt
  password: mqtt
serial:
  adapter: deconz
  port: >-
    /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2413881-if00
advanced:
  log_level: debug
  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: {}
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
baudrate: 38400
rtscts: false

What am I missing, I cant make my zigbee2mqtt work 😦 Thank you

0reactions
github-actions[bot]commented, Apr 21, 2021

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while starting zigbee-herdsman · Issue #14830 - GitHub
Addon starts. How to reproduce it (minimal and precise). No response. Zigbee2MQTT version. 1.28.2-1. Adapter firmware version.
Read more >
Zigbee2Mqtt - Failed to start Zigbee with Conbee II
I have just purchased a Conbee II stick and followed this video to get it set up in HA with Zigbee2Mqtt however Z2m...
Read more >
Zigbee2MQTT setup problems with Conbee II : r/homeassistant
Hi all, started to experience some ZHA issues overnight - a whole heap of stuff ended up disconnected (including the controller).
Read more >
Zigbee2MQTT fails to start
In case you are getting this after first starting successfully and pairing a device it might be that the firmware has been flashed...
Read more >
Home Assistant | Can anyone point me in the right direction ...
Trying to setup zigbee2mqtt and getting the following errors: Zigbee2MQTT:error 2022-01-01 23:06:33: Error while starting zigbee-herdsman.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found