Good evening,
I’m very new & have been working to get a Sonoff Zigbee 3.0 stick to work with my Raspberry Pi HA setup.
I’ve gotten Mosquito Broker & Zigbee2MQTT under Add-ons
I’ve also gotten Mosquito Broker set up under Devices & Services
When I go to Zigbee2mqtt on the sidebar I get “502 Bad Gateway”
Anyone have any thoughts (please know I appreciate any help but am VERY new)
kksligh
(Kale Sligh)
September 18, 2022, 11:40pm
2
More than likely you aren’t pointing to the right usb port…go to Settings > System > Hardware > click the 3 dots in the top right > select All Hardware
The search for “USB”…find where your zigbee is and make sure that usb port is set up in Z2mqtt add on configuration.
kksligh:
Z2mqtt
I have the NESpi case (2 usb on the front) but in one of the tutorials I had to use the Home Assistant SSH Terminal to find the TTY for the USB which was “0” so I used that in the Zigbee2mqtt add on
port: dev/ttyusb0
https://www.amazon.com/dp/B08FJ4T9L9?psc=1&ref=ppx_yo2ov_dt_b_product_details
Here is the log from the instructions you gave me
ttyUSB0/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e20e3e735f9cec11a904684d73138bba-if00-port0
Subsystem:tty
Device path:/dev/ttyUSB0
ID:/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e20e3e735f9cec11a904684d73138bba-if00-port0
Attributes:
DEVLINKS: >- /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e20e3e735f9cec11a904684d73138bba-if00-port0 /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-port0 DEVNAME: /dev/ttyUSB0 DEVPATH: >- /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0 ID_BUS: usb ID_MODEL: Sonoff_Zigbee_3.0_USB_Dongle_Plus ID_MODEL_ENC: Sonoff\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus ID_MODEL_ID: ea60 ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0 ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_2_1_0 ID_REVISION: ‘0100’ ID_SERIAL: ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e20e3e735f9cec11a904684d73138bba ID_SERIAL_SHORT: e20e3e735f9cec11a904684d73138bba ID_TYPE: generic ID_USB_DRIVER: cp210x ID_USB_INTERFACES: ‘:ff0000:’ ID_USB_INTERFACE_NUM: ‘00’ ID_VENDOR: ITead ID_VENDOR_ENC: ITead ID_VENDOR_ID: 10c4 MAJOR: ‘188’ MINOR: ‘0’ SUBSYSTEM: tty TAGS: ‘:systemd:’ USEC_INITIALIZED: ‘19950160’
usb1
Subsystem:usb
Device path:/dev/bus/usb/001/001
Attributes:
BUSNUM: ‘001’ DEVNAME: /dev/bus/usb/001/001 DEVNUM: ‘001’ DEVPATH: /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1 DEVTYPE: usb_device DRIVER: usb ID_BUS: usb ID_FOR_SEAT: usb-platform-fd500000_pcie-pci-0000_01_00_0 ID_MODEL: xHCI_Host_Controller ID_MODEL_ENC: xHCI\x20Host\x20Controller ID_MODEL_ID: ‘0002’ ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0 ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0 ID_REVISION: ‘0515’ ID_SERIAL: Linux_5.15.61-v8_xhci-hcd_xHCI_Host_Controller_0000:01:00.0 ID_SERIAL_SHORT: ‘0000:01:00.0’ ID_USB_INTERFACES: ‘:090000:’ ID_VENDOR: Linux_5.15.61-v8_xhci-hcd ID_VENDOR_ENC: Linux\x205.15.61-v8\x20xhci-hcd ID_VENDOR_ID: 1d6b MAJOR: ‘189’ MINOR: ‘0’ OF_COMPATIBLE_N: ‘0’ OF_FULLNAME: /scb/pcie@7d500000/pci@0,0/usb@0,0 OF_NAME: usb PRODUCT: 1d6b/2/515 SUBSYSTEM: usb TAGS: ‘ ’ TYPE: 9/0/1 USEC_INITIALIZED: ‘3159493’
usb2
Subsystem:usb
Device path:/dev/bus/usb/002/001
Attributes:
BUSNUM: ‘002’ DEVNAME: /dev/bus/usb/002/001 DEVNUM: ‘001’ DEVPATH: /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2 DEVTYPE: usb_device DRIVER: usb ID_BUS: usb ID_FOR_SEAT: usb-platform-fd500000_pcie-pci-0000_01_00_0 ID_MODEL: xHCI_Host_Controller ID_MODEL_ENC: xHCI\x20Host\x20Controller ID_MODEL_ID: ‘0003’ ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0 ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0 ID_REVISION: ‘0515’ ID_SERIAL: Linux_5.15.61-v8_xhci-hcd_xHCI_Host_Controller_0000:01:00.0 ID_SERIAL_SHORT: ‘0000:01:00.0’ ID_USB_INTERFACES: ‘:090000:’ ID_VENDOR: Linux_5.15.61-v8_xhci-hcd ID_VENDOR_ENC: Linux\x205.15.61-v8\x20xhci-hcd ID_VENDOR_ID: 1d6b MAJOR: ‘189’ MINOR: ‘128’ OF_COMPATIBLE_N: ‘0’ OF_FULLNAME: /scb/pcie@7d500000/pci@0,0/usb@0,0 OF_NAME: usb PRODUCT: 1d6b/3/515 SUBSYSTEM: usb TAGS: ‘ ’ TYPE: 9/0/3 USEC_INITIALIZED: ‘19739680’
Are you saying to update the config in the add on to “port: dev/ttyusb1”?
disparatic:
“0”
I tried “port: dev/ttyusb1” & “port: dev/ttyusb2” but neither worked.
kksligh
(Kale Sligh)
September 30, 2022, 1:26pm
5
Sorry I didn’t see this sooner. It looks like port 0 is correct.
Attaching my settings in the configuration for reference to see if that will help…
Thanks for that. I ended getting it to work with ZHA.