I have almost the same problem. Skyconnect dongle, HA on a single raspberry pi, just the basics. zigbee2mqtt will not start, gives the dreaded “502: bad gateway” error message.
It looks like another process has locked the USB port. Connecting the Skyconnect to another USB port has no effect. Rebooting HA has no effect, neither has power down and up of the raspberry. Uninstalling Mosquitto and zigbee2mqtt has no effect.
Flashing the firmware of the skyconnect appeared to have effect for a short while, until the next HA restart.
I have no more ideas, I try to avoid the final experiment, clear out the entire system and build up from scratch.
Help? Please?
Configuration / device Details:
SKYCONNECT data as presented by Settings/Hardware/all hardware - TTYUSB1
Subsystem: tty
Device path: /dev/ttyUSB1
ID: /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
Attributes:
DEVLINKS: >-
/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0-port0
/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.1:1.0-port0
DEVNAME: /dev/ttyUSB1
DEVPATH: >-
/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB1/tty/ttyUSB1
ID_BUS: usb
ID_MODEL: SkyConnect_v1.0
ID_MODEL_ENC: SkyConnect\x20v1.0
ID_MODEL_ID: ea60
ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_1_1_0
ID_PATH_WITH_USB_REVISION: platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.1:1.0
ID_REVISION: '0100'
ID_SERIAL: Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d
ID_SERIAL_SHORT: ceeb1b2cbe96ed11ac98c098a7669f5d
ID_TYPE: generic
ID_USB_DRIVER: cp210x
ID_USB_INTERFACES: ':ff0000:'
ID_USB_INTERFACE_NUM: '00'
ID_USB_MODEL: SkyConnect_v1.0
ID_USB_MODEL_ENC: SkyConnect\x20v1.0
ID_USB_MODEL_ID: ea60
ID_USB_REVISION: '0100'
ID_USB_SERIAL: Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d
ID_USB_SERIAL_SHORT: ceeb1b2cbe96ed11ac98c098a7669f5d
ID_USB_TYPE: generic
ID_USB_VENDOR: Nabu_Casa
ID_USB_VENDOR_ENC: Nabu\x20Casa
ID_USB_VENDOR_ID: 10c4
ID_VENDOR: Nabu_Casa
ID_VENDOR_ENC: Nabu\x20Casa
ID_VENDOR_ID: 10c4
MAJOR: '188'
MINOR: '1'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '1027314591'
==========================
Zigbee2mqtt configuration.yaml (partly)
mqtt:
server: mqtt://core-mosquitto:1883
user: addons
password: fiosee8cheing3geeVu6efai3Nooc0quangaideish2gahjienee7SeiSu1zuowa
frontend:
port: 8099
serial:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240219104144-if00
adapter: ezsp
device_options:
legacy: false
permit_join: true
Zigbee2MQTT start up log
[12:06:40] INFO: Preparing to start...
[12:06:40] INFO: Socat not enabled
[12:06:42] ERROR: Got unexpected response from the API: Service not enabled
[12:06:42] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-23 12:06:49] error: zh:ezsp:ezsp: Connection attempt 1 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:06:54] error: zh:ezsp:ezsp: Connection attempt 2 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:07:04] error: zh:ezsp:ezsp: Connection attempt 3 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:07:19] error: zh:ezsp:ezsp: Connection attempt 4 error: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_ceeb1b2cbe96ed11ac98c098a7669f5d-if00-port0
[2024-10-23 12:07:19] error: z2m: Error while starting zigbee-herdsman
[2024-10-23 12:07:19] error: z2m: Failed to start zigbee
[2024-10-23 12:07:19] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-23 12:07:19] error: z2m: Exiting...
[2024-10-23 12:07:19] error: z2m: Error: Failure to connect
at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:364:19)
at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:186:13)
at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:152:16)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
at Zigbee.start (/app/lib/zigbee.ts:69:27)
at Controller.start (/app/lib/controller.ts:161:27)
at start (/app/index.js:154:5)
================================================
*** Settings/Hardware - configure Skyconnect gives an error:
The radio firmware on your Home Assistant SkyConnect could not be determined. Make sure that no other integration or addon is currently trying to communicate with the device.
================================================