Fehler zigbee2mqtt Raspberry start

Einrichtung der openHAB Umgebung und allgemeine Konfigurationsthemen.

Moderatoren: seppy, udo1toni

Antworten
UweG
Beiträge: 1
Registriert: 26. Jan 2020 10:35
Answers: 0

Fehler zigbee2mqtt Raspberry start

Beitrag von UweG »

Hallo
Ich habe Probleme zigbee2mqtt auf dem RaspberryPi zu starten.
Grundkonfiguration ist:
RaspberryPi 3B+
Das Betriebssystem ist mit Noobs installiert worden und dann so eingerichtet worden, dass es vom USB-Stick startet und die SD-Karte entfällt.

Mosquitto, Node-Red sind installiert und funktionieren.
Der USB-CC2531 ist geflasht und funktioniert auch (Auf einer Windowsinstallation von zigbee2mqtt getestet)

zigbee2mqtt nach Anleitung installiert.
Die configuration.yaml sieht wie folgt aus:# Home Assistant integration (MQTT discovery)
homeassistant: false

# allow new devices to join
permit_join: true

# MQTT settings
mqtt:
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: zigbee2mqtt
# MQTT server URL
server: 'mqtt://localhost'
# MQTT server authentication, uncomment if required:
# user: my_user
# password: my_password

# Serial settings
serial:
# Location of CC2531 USB sniffer
port: /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0009EFA7A1-if00

------------------------
wenn ich ppm start auf dem Raspi ausführe erhalte ich folgende Meldung:
> zigbee2mqtt@1.9.0 start /opt/zigbee2mqtt
> node index.js

zigbee2mqtt:info 2020-01-26 11:33:54: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-01-26.11-33-54'
zigbee2mqtt:info 2020-01-26 11:33:55: Starting zigbee2mqtt version 1.9.0 (commit #287f843)
zigbee2mqtt:info 2020-01-26 11:33:55: Starting zigbee-herdsman...
zigbee2mqtt:error 2020-01-26 11:34:03: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-01-26 11:34:03: Failed to start zigbee
zigbee2mqtt:error 2020-01-26 11:34:03: Exiting...
zigbee2mqtt:error 2020-01-26 11:34:03: Error: SRSP - SYS - version after 6000ms
at Timeout.object.timer.setTimeout [as _onTimeout] (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.9.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.9.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-01-26T10_34_03_633Z-debug.log
------------------------------
Für mich heist das, dass der cc2531 nicht erkannt wird obwohl ich ihn in der configuration.yaml explizit genannt haben.

Error while starting zigbee-herdsman

Es scheint so, dass der Betrieb von 2 USB-Sticks (Betriebssystem auf dem einen, cc2531 der andere) Probleme bereitet für zigbee2mqtt.
Kann mir hier jemand dabei helfen das Problem zu beheben?
Zurück auf SD-Karte geht ja scheinbar nicht mehr.
Eine Schritt für Schritt Beschreibung wäre für mich als NON-System Crack hilfreich :-)
Vielen Dank vorab.
Gruss
Uwe

elysis
Beiträge: 27
Registriert: 17. Dez 2017 22:35
Answers: 0

Re: Fehler zigbee2mqtt Raspberry start

Beitrag von elysis »

Hi,

für mich sieht es so aus, als sei der Port nicht richtig angegeben. Bei mir ist es mit dem CC2531 /dev/ttyACM0.
Es gibt diverse Tutorials, um mittels udev rules sicherzustellen, dass das device immer auf dem gleichen Port ist:

z.B. https://www.openhab.org/docs/administration/serial.html

Meine Erfahrung ist zudem, dass zigbee2mqtt bei vielen Geräten (40-50+) und der FW 1.2 sehr instabil wird und man ständig den Stick neu flashen muss, damit er wieder erkannt wird. Mit Firmware/Stack 3.0 und dem dev-Branch (1.8+) läuft es bei mir nun aber mit 34 Geräten aller Art stabil.

Ich hänge mal meine config an:

Code: Alles auswählen

# Home Assistant integration (MQTT discovery)
homeassistant: false
# allow new devices to join
permit_join: false
# MQTT settings
mqtt:
  # MQTT base topic for zigbee2mqtt MQTT messages
  base_topic: zigbee2mqtt
  # MQTT server URL
  server: 'mqtt://localhost'
  # MQTT server authentication, uncomment if required:
  # user: my_user
  # password: my_password
  user: user
  password: password
  client_id: Z2M
  include_device_information: false
# Serial settings
serial:
# Location of CC2531 USB sniffer
  port: /dev/ttyACM0
  disable_led: true
# Optional: advanced settings
advanced:
  # Optional: ZigBee pan ID (default: shown below)
  pan_id: 0xXXXX
  # Optional: ZigBee channel, changing requires re-pairing of all devices. (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid Problems)
  # (default: 11)
  channel: 25
  # Optional: Logging level, options: debug, info, warn, error (default: info)
  log_level: info
experimental:
  output: attribute
map_options:
  graphviz:
    colors:
      fill:
        enddevice: '#fff8ce'
        coordinator: '#e04e5d'
        router: '#4ea3e0'
      font:
        coordinator: '#ffffff'
        router: '#ffffff'
        enddevice: '#000000'
      line:
        active: '#009900'
        inactive: '#994444'
devices: devices_retained.yaml
groups: groups.yaml
#queue:
#  delay: 250
#  simultaneously: 5
Ich habe allerdings Dinge wie PAN Id, Channel, etc. angepasst und das JSON format abgestellt.

Antworten