Zigbee2MQTT How to add a gateway

I have a CC2531 Sniffer Board which I have written new F/W too

image

and Aqara Smart Door Window Sensor that are working if close by.

image

Issue is for me the distance. Register all sensors in Zigbee on Home Assistant but when they are in place the signal strength is low and they drop off.

Added powered USB repeaters

image

Now trying to add a G/W. Not sure now how I get this into the network?

Tuya Zigbee Wireless Multi Mode Hub Gateway

image

image

Advice please?

This is the only Tuya zigbee gateway that has support for ZHA:

I don’t see any Tuya gateways that are supported by zigbee2mqtt.

The CC2531 is seriously underpowered, and you can’t add another coordinator to an existing Zigbee network.

My advice : replace your CC2531 with a CC2652P

1 Like

Newer ones of that TYGWZ-01 are reported not to be able to break the boot sequence, so no more hackable. Or you need to find one with older firmware.

Thanks any links please to get me in the right direction?

https://www.zigbee2mqtt.io/guide/adapters/#based-on-texas-instruments-cc2652-cc1352-chip

https://www.aliexpress.com/w/wholesale-sonoff-dongle-p.html

Upgrading is just a matter of stopping Zigbee2MQTT, replacing your USB dongle, starting Zigbee2MQTT

Thanks does it need to be flashed?

No, they come pre-flashed with coordinator firmware

Another option is this:

If you have Ethernet to a central location in your house you can install it there and get better coverage, rather than being tethered by a USB cord to Home Assistant.

The non PoE version is cheaper but you also need to supply 5V @ 1A:

thank you for this info

thank you ordered one and will see how we go

Added the dongle

Old hardware showed up as port: /dev/ttyACM0

BUSNUM: '001'
DEVNAME: /dev/bus/usb/001/020
DEVNUM: '020'
DEVPATH: >-
  /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4.1
DEVTYPE: usb_device
DRIVER: usb
ID_BUS: usb
ID_MODEL: TI_CC2531_USB_CDC
ID_MODEL_ENC: TI\x20CC2531\x20USB\x20CDC
ID_MODEL_ID: 16a8
ID_REVISION: '0009'
ID_SERIAL: Texas_Instruments_TI_CC2531_USB_CDC___0X00124B000BE8B131
ID_SERIAL_SHORT: __0X00124B000BE8B131
ID_USB_INTERFACES: ':020201:0a0000:'
ID_USB_MODEL: TI_CC2531_USB_CDC
ID_USB_MODEL_ENC: TI\x20CC2531\x20USB\x20CDC
ID_USB_MODEL_ID: 16a8
ID_USB_REVISION: '0009'
ID_USB_SERIAL: Texas_Instruments_TI_CC2531_USB_CDC___0X00124B000BE8B131
ID_USB_SERIAL_SHORT: __0X00124B000BE8B131
ID_USB_VENDOR: Texas_Instruments
ID_USB_VENDOR_ENC: Texas\x20Instruments
ID_USB_VENDOR_ID: '0451'
ID_VENDOR: Texas_Instruments
ID_VENDOR_ENC: Texas\x20Instruments
ID_VENDOR_ID: '0451'
MAJOR: '189'
MINOR: '19'
PRODUCT: 451/16a8/9
SUBSYSTEM: usb
TYPE: 2/0/0
USEC_INITIALIZED: '82172771552'

New hardware

BUSNUM: '001'
DEVNAME: /dev/bus/usb/001/021
DEVNUM: '021'
DEVPATH: >-
  /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4.1
DEVTYPE: usb_device
DRIVER: usb
ID_BUS: usb
ID_FOR_SEAT: usb-platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_4_1
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.4.1
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_4_1
ID_REVISION: '0100'
ID_SERIAL: ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4
ID_SERIAL_SHORT: 3e06289d6245ed119a08c68f0a86e0b4
ID_USB_INTERFACES: ':ff0000:'
ID_USB_MODEL: Sonoff_Zigbee_3.0_USB_Dongle_Plus
ID_USB_MODEL_ENC: Sonoff\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus
ID_USB_MODEL_ID: ea60
ID_USB_REVISION: '0100'
ID_USB_SERIAL: ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4
ID_USB_SERIAL_SHORT: 3e06289d6245ed119a08c68f0a86e0b4
ID_USB_VENDOR: ITead
ID_USB_VENDOR_ENC: ITead
ID_USB_VENDOR_ID: 10c4
ID_VENDOR: ITead
ID_VENDOR_ENC: ITead
ID_VENDOR_ID: 10c4
MAJOR: '189'
MINOR: '20'
PRODUCT: 10c4/ea60/100
SUBSYSTEM: usb
TAGS: ':seat:'
TYPE: 0/0/0
USEC_INITIALIZED: '82322799222'

Trying to figure out

https://community.home-assistant.io/t/zigbee2mqtt-dev-ttyacm0-problem-after-hassio-update/277471/7

Tried

/dev/serial/by-id/ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4

Logs

[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:51:43] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:error 2023-08-29 12:51:49: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-29 12:51:50: Failed to start zigbee
Zigbee2MQTT:error 2023-08-29 12:51:50: Exiting...
Zigbee2MQTT:error 2023-08-29 12:51:50: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4'
    at Znp.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:136:32)

Under USB Devices we see

DEVLINKS: >-
  /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4-if00-port0
  /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4.1: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.4/1-1.4.1/1-1.4.1: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.4.1:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_4_1_1_0
ID_REVISION: '0100'
ID_SERIAL: ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4
ID_SERIAL_SHORT: 3e06289d6245ed119a08c68f0a86e0b4
ID_TYPE: generic
ID_USB_DRIVER: cp210x
ID_USB_INTERFACES: ':ff0000:'
ID_USB_INTERFACE_NUM: '00'
ID_USB_MODEL: Sonoff_Zigbee_3.0_USB_Dongle_Plus
ID_USB_MODEL_ENC: Sonoff\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus
ID_USB_MODEL_ID: ea60
ID_USB_REVISION: '0100'
ID_USB_SERIAL: ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4
ID_USB_SERIAL_SHORT: 3e06289d6245ed119a08c68f0a86e0b4
ID_USB_TYPE: generic
ID_USB_VENDOR: ITead
ID_USB_VENDOR_ENC: ITead
ID_USB_VENDOR_ID: 10c4
ID_VENDOR: ITead
ID_VENDOR_ENC: ITead
ID_VENDOR_ID: 10c4
MAJOR: '188'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '82322862642'

Tried /dev/ttyUSB0
Tried dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3e06289d6245ed119a08c68f0a86e0b4-if00-port0

Logs

[13:03:14] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:error 2023-08-29 13:03:40: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-29 13:03:40: Failed to start zigbee
Zigbee2MQTT:error 2023-08-29 13:03:40: Exiting...
Zigbee2MQTT:error 2023-08-29 13:03:40: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-08-29T01_03_40_449Z-debug.log
[13:03:40] INFO: Handing over control to Zigbee2mqtt Core ...

In the end I removed ZHA and took the antenna off due to Coordinator failed to start, panID is already in use

So Zigbee2MQTT starts but no devices appearing?

Managed to get a single device to appear

All devices where paired ok with the CC2531 not with the replacement CC2652P

Generally how long does it take for a sensor to register?