Hobohome
(Gavin Murray)
October 9, 2024, 6:35am
1
Hi,
I am trying to get a Sonoff ZBDongle-E working with the Openhab Zigbee Binding. There seems to be a lot of people asking about this, but I can’t find any clear solutions.
I’m running OH4 on a raspberry PI.
I have installed the binding and tried to add the Coordinator - I think the dongle-E is a CC2531EMK type - can anybody confirm that?
When I add that Coordinator, I am asked for a PORT - options are:
/dev/ttyUSB0
/dev/ttyAMA0 or
/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_e85adad975d9ee119a9cb74c37b89984-if00-port0
I have tried all of these with no success
I am also prompted for a baud rate with options being 38400, 57600 and 115200 (these options differ with different coordinator types)
Does anybody know which is correct?
Many thanks for any help or hints.
Cheers
chris
(Chris Jackson)
October 15, 2024, 4:22pm
2
The ZBDongle-E is an EFR32 - so an Ember chipset - not the Texas CC2531. It should work at 115k2 baud.
If you have any problems, please set the binding into DEBUG mode logging, and please provide a logfile showing the startup.
Hobohome
(Gavin Murray)
October 16, 2024, 5:04am
3
Thanks for getting back to me.
The setup is
SiLabs Ember based NCP
Port = /dev/ttyUSB0 (I got this by looking at /dev/serial/by-id to see that the ID is pointing to USB0)
Flow Control = Hardware
115k baud
Con Type = High Ram
The Things status remains at INITIALISING
Log entries follow
2024-10-16 14:57:16.588 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.2.0 (364)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(415)] : dm ZigBeeCoordinatorHandler tracking 8 MultipleDynamic added {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=907, service.bundleid=369, service.scope=singleton} (enter)
2024-10-16 14:57:16.589 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.2.0 (364)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(415)] : dm ZigBeeCoordinatorHandler tracking 8 MultipleDynamic already active, binding {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=907, service.bundleid=369, service.scope=singleton}
2024-10-16 14:57:16.590 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.2.0 (364)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(415)] : invoking bind: addZigBeeCoordinatorHandler: parameters [org.openhab.binding.zigbee.ember.handler.EmberHandler]
2024-10-16 14:57:16.591 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.2.0 (364)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(415)] : invoked bind: addZigBeeCoordinatorHandler
2024-10-16 14:57:16.592 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.2.0 (364)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(415)] : dm ZigBeeCoordinatorHandler tracking 8 MultipleDynamic added {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=907, service.bundleid=369, service.scope=singleton} (exit)
2024-10-16 14:57:16.662 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initializing ZigBee network [zigbee:coordinator_ember:9a0243fa08].
2024-10-16 14:57:16.663 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Channel 0
2024-10-16 14:57:16.663 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - PANID 0
2024-10-16 14:57:16.664 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - EPANID 0000000000000000
2024-10-16 14:57:16.664 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2024-10-16 14:57:16.665 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key 5A 69 67 42 65 65 41 6C 6C 69 61 6E 63 65 30 39
2024-10-16 14:57:16.665 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Config: zigbee_initialise found, initializeNetwork=false
2024-10-16 14:57:16.666 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ExtendedPanId or PanId not set: initializeNetwork=true
2024-10-16 14:57:16.666 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key String 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2024-10-16 14:57:16.667 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network key initialised F4064C0F1A900A5EDBF3CB4D885EC813
2024-10-16 14:57:16.668 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network key final array F4064C0F1A900A5EDBF3CB4D885EC813
2024-10-16 14:57:16.668 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key String 5A 69 67 42 65 65 41 6C 6C 69 61 6E 63 65 30 39
2024-10-16 14:57:16.669 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initialising network
2024-10-16 14:57:16.670 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Channel set to 11.
2024-10-16 14:57:16.803 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Created random ZigBee PAN ID [630A].
2024-10-16 14:57:16.924 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Created random ZigBee extended PAN ID [2B4B89ED7D6E1F4B].
2024-10-16 14:57:17.117 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link key final array 5A6967426565416C6C69616E63653039
2024-10-16 14:57:17.118 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - Initializing ZigBee Ember serial bridge handler.
2024-10-16 14:57:17.119 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - ZigBee Ember Coordinator opening Port:'/dev/ttyUSB0' PAN:630a, EPAN:2B4B89ED7D6E1F4B, Channel:11
2024-10-16 14:57:17.120 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - Ember end device poll timeout set to (169 * 2^9) = 86528 seconds
2024-10-16 14:57:17.120 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Scheduling ZigBee start
2024-10-16 14:57:18.121 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ZigBee network starting
2024-10-16 14:57:18.121 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initialising ZigBee coordinator
2024-10-16 14:57:18.123 [DEBUG] [ding.zigbee.internal.ZigBeeDataStore] - Creating ZigBee persistence folder /var/lib/openhab/zigbee/zigbee_coordinator_ember_9a0243fa08/
2024-10-16 14:57:18.124 [DEBUG] [nding.zigbee.serial.ZigBeeSerialPort] - Connecting to serial port [/dev/ttyUSB0] at 115200 baud, flow control FLOWCONTROL_OUT_RTSCTS.
2024-10-16 14:57:18.124 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: networkStateUpdated called with state=INITIALISING
2024-10-16 14:57:18.205 [DEBUG] [nding.zigbee.serial.ZigBeeSerialPort] - Serial port [/dev/ttyUSB0] is initialized.
Hobohome
(Gavin Murray)
October 16, 2024, 5:21am
4
Also getting …
2024-10-16 15:07:14.673 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_ember:9a0243fa08
2024-10-16 15:07:14.674 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ZigBee coordinator is offline - aborted scan for zigbee:coordinator_ember:9a0243fa08
2024-10-16 15:07:14.675 [DEBUG] [overy.Slzb06MDNSDiscoveryParticipant] - SLZB-06: Discovery getServiceType '_slzb-06._tcp.local.'
2024-10-16 15:07:14.877 [DEBUG] [overy.Slzb06MDNSDiscoveryParticipant] - SLZB-06: Discovery getServiceType '_slzb-06._tcp.local.'
chris
(Chris Jackson)
October 16, 2024, 4:17pm
5
Please take a look at the following thread. Try the initialisation first to see if that fixes the issue (I think it might), but if not, please enable the other debug that is requested in the thread and provided the log.
Thanks. It looks like the device isn’t communicating, but we need to change some logging settings…
Do you see the following (or something similar) in the log settings? If so, can you change the ones I put the star against to DEBUG and try again. Currently I just see the main binding - i.e. the first one I starred.
Thanks
Chris
[image]
Hobohome
(Gavin Murray)
October 17, 2024, 9:11am
6
Sorry, i have just been called away on an urgent work assignment. I’ll have to pick this up when i get back home.
Thanks for your help