Hi all.
I’ve spent the last couple of days down in the rabbit holes of these (and other forums) working on getting my Sonoff Zigbee dongle (P) working with Zigbee2MQTT in a Proxmox container, to no avail. Oddly, when I’ve tried to start up, it actually HAS started a couple of times (no errors); but the interface never became accessible and the container seems to become unresponsive, but I can’t find detailed enough logs to dig into further.
My current configuration.yaml is:
frontend:
port: 8081
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: mqtt://192.168.x.xxx:1883
user: **************
password: *****************
keepalive: 60
reject_unauthorized: true
version: 4
serial:
port: >-
/dev/ttyUSB0
adapter: zstack
pan_id: GENERATE
network_key: GENERATE
channel: 25
log_level: debug
zigbee_herdsman_debug: true
advanced:
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
A few other notes:
- When I attempted to use the dev/by-id/ of the dongle, that never worked at all. When I shifted to /dev/ttyUSB0 - that seemed to work a couple of times, and then not again.
- I did install Zigbee2MQTT with elevated privileges with the dongle plugged, so I think USB passthrough is working?
- I did flash the dongle, using the ZigStar HA Add on (in my currently running HA instance on a Raspberry Pi, which I am migrating to a Dell Optiplex 5050 running Proxmox 8.2VE. The file I flashed it with was the Coordinator file in the guide here: https://github.com/Koenkk/Z-Stack-firmware/raw/Z-Stack_3.x.0_coordinator_20230507/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip
- I have disabled and removed ZHA from HA as well, on both the original/source HA and the target HA.
When I attempt to start the service, I get the following:
Starting Zigbee2MQTT without watchdog.
[2024-07-13 17:10:35] info: z2m: Logging to console, file (filename: log.log)
[2024-07-13 17:10:35] info: z2m: Starting Zigbee2MQTT version 1.39.0 (commit #0326926)
[2024-07-13 17:10:35] info: z2m: Starting zigbee-herdsman (0.50.1)
[2024-07-13 17:10:35] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-07-13 17:10:35] error: z2m: Error while starting zigbee-herdsman
[2024-07-13 17:10:35] error: z2m: Failed to start zigbee
[2024-07-13 17:10:35] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-13 17:10:35] error: z2m: Exiting...
[2024-07-13 17:10:35] error: z2m: Error: Error Resource temporarily unavailable Cannot lock port
I’ve run ls -l /proc/[0-9]/fd/ |grep /dev/ttyUSB0
a bunch of times, and it always returns blank, indicating no other processes using it.
I’m kind of at a loss of what to do next to get this thing back in business on the new system and would deeply appreciate any guidance I can get! TYIA:)