I want to use Sonoff 3.0 USB Dongle Plus E to connect devices to my Home Assistant container install on Synology NAS (DSM 7.2).
Zigbee2MQTT container stops with error logs focused on failure to use /dev/ttyUSB
Situation:
Home Assistant, Mosquitto, Zigbee2MQTT containers
MQTT integration
USB driver installed using Synology DSM 7.2 - Adding USB Devices / Dongles (SkyConnect / Z-Wave)
I think this worked (once I got a shielded USB extension lead). Dongle is discovered in HA with option to add ZHA integration. I deleted this and clicked ‘ignore’ when it re-appeared.
$ lsusb: gives |__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-2 10c4:ea60:0100 00 2.00 12MBit/s 100mA 1IF (ITead Sonoff Zigbee 3.0 USB Dongle Plus b82580eaa5dbed11a9b9ef2d62c613ac)
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 650041BE1881C614)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
So I guess something can see what is plugged into the USB port.
I feel like I’ve completed the internet searching for a solution! Although similar, I haven’t found answer in: Can’t start Zigbee2MQTT - Sonoff ZigBee dongle plus 3.0 with Synology NAS - Configuration - Home Assistant Community
A few threads talked about permissions (I am inexperienced in SSH and failed to get anywhere with this). I don’t know if this of use:
ls -l /dev/ttyUSB0
crwxrwxrwx 1 root root 188, 0 Nov 16 23:46 /dev/ttyUSB0
ls -l /dev/serial/by-id/
ls: cannot access ‘/dev/serial/by-id/’: No such file or directory
$ ls -l /dev/tty* shows ttyUSB0 but no mention of ttyACM0 (which has been tried in config.yaml as well as
/dev/ttyUSB0:/dev/ttyUSB0
/dev/ttyUSB0:/dev/ttyACM0
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b82580eaa5dbed11a9b9ef2d62c613ac:/dev/ttyUSB0
This is the container log once it stops:
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Error: Error: No such file or directory, cannot open /dev/ttyUSB0|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Exiting…|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Failed to start zigbee|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: z2m: Error while starting zigbee-herdsman|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[32minfoe[39m: zh:zstack:znp: Opening SerialPort with {path:/dev/ttyUSB0,baudRate:115200,rtscts:false,autoOpen:false}|
|2024/11/17 09:50:04|stdout|[2024-11-17 09:50:04] e[31merrore[39m: zh:zstack:znp: Failed to determine if path is valid: ‘Error: ENOENT: no such file or directory, lstat ‘/dev/ttyUSB0’’|
|2024/11/17 09:50:03|stdout|[2024-11-17 09:50:03] e[32minfoe[39m: z2m: Starting zigbee-herdsman (2.1.7)|
|2024/11/17 09:50:03|stdout|[2024-11-17 09:50:03] e[32minfoe[39m: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #cc31cea)|
|2024/11/17 09:50:03|stdout|[2024-11-17 09:50:03] e[32minfoe[39m: z2m: Logging to console, file (filename: log.log)|
|2024/11/17 09:50:01|stdout|Starting Zigbee2MQTT without watchdog.|
|2024/11/17 09:50:01|stdout|Using ‘/app/data’ as data directory|
I’m going in circles, not really understanding the problem. I thought I’d be ready to play with zigbee once I installed the driver with a USB extension… any guidance would be appreciated.