Hi all,
i am struggeling currently with zigbee2mqtt. Hardware is a conbee2 stick, brand new. I inserted it into my rasperrypi 4, and went to openhabian-config and installed deconz “plugin”. That was working perfectly, the webui started, i was able to add some aqara sensors and everything went fine.
Later, i detected that there is zigbee2mqtt also and this is my intended way, so piping everything via mqtt. So i also installed this in addition (without removing deconz). But zigbee2mqtt never worked then. I had outputs that the access to usb is already occupied. So i stopped all the deconz services. Then, the occupied access to usb was not a problem anymore but herdsman wont start. Somewhen i thought this could be related to the two systems not working in parallel. So i decided to uninstall both and reinstall only zigbee2mqtt once more. I uninstalled deconz by
sudo apt remove deconz
and uninstalled zigbee2mqtt via openhabian-config. I did a fresh reboot and after everything was up, i reinstalled zigbee2mqtt. I adpated the config only to specify my mqtt broker, the usb port + the adapter, as told on the zigbee2mqtt website. But when the service is started, it directly brakes with
error: z2m: Error: Error: Broken pipe, cannot set
I also detected, that there is also no web frontend (which is configured with the same port as with the inital deconz service).
I searched for hours but did not find a single approach how to further debug or fix this issue.
Could you please give me a hint on how to proceed? Please find all the information in the debug infos below.
Thanks in advance, really appreciate it
Patrick
debug infos
- Platform information:
- Hardware: Raspi 4 8GB
- OS: bullseye
- Java Runtime Environment: openjdk 17.0.13 2024-10-15
- openHAB version: 4.2.1
- Issue of the topic: zigbee2mqtt not starting
- Please post configurations (if applicable):
configuration.yaml
frontend:
port: 8081
homeassistant: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://192.168.178.129:1883'
user: myuser
password: mypass
serial:
port: >-
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2192503-if00
serial:
adapter: deconz
advanced:
network_key:
- 7
- 143
- 237
- 125
- 95
- 87
- 179
- 247
- 40
- 57
- 234
- 201
- 85
- 176
- 175
- 118
pan_id: 49410
log_level: warn
channel: 25
output: attribute_and_json
log_directory: /var/log/zigbee2mqtt/%TIMESTAMP%al
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
journalctl output
-- Boot 7516b8f28a314b2fb9b960c0aa57f53c --
Nov 17 17:00:49 openHAB systemd[1]: Started Zigbee2MQTT.
Nov 17 17:00:50 openHAB npm[6352]: > zigbee2mqtt@1.41.0 start
Nov 17 17:00:50 openHAB npm[6352]: > node index.js
Nov 17 17:00:50 openHAB npm[6365]: Starting Zigbee2MQTT without watchdog.
Nov 17 17:01:23 openHAB npm[6365]: Building Zigbee2MQTT... (initial build), finished
Nov 17 17:01:31 openHAB npm[6365]: [2024-11-17 17:01:31] error: z2m: Error while starting zigbee-herdsman
Nov 17 17:01:31 openHAB npm[6365]: [2024-11-17 17:01:31] error: z2m: Failed to start zigbee
Nov 17 17:01:31 openHAB npm[6365]: [2024-11-17 17:01:31] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Nov 17 17:01:31 openHAB npm[6365]: [2024-11-17 17:01:31] error: z2m: Exiting...
Nov 17 17:01:31 openHAB npm[6365]: [2024-11-17 17:01:31] error: z2m: Error: Error: Broken pipe, cannot set
Nov 17 17:01:31 openHAB systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Nov 17 17:01:31 openHAB systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'.
Nov 17 17:01:31 openHAB systemd[1]: zigbee2mqtt.service: Consumed 1min 10.655s CPU time.
Nov 17 17:01:31 openHAB systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 1.
Nov 17 17:01:31 openHAB systemd[1]: Stopped Zigbee2MQTT.
Nov 17 17:01:31 openHAB systemd[1]: zigbee2mqtt.service: Consumed 1min 10.655s CPU time.
Nov 17 17:01:31 openHAB systemd[1]: Started Zigbee2MQTT.
and repeats continuously ...