Sonoff ZigBee ZBDongle-E keeps initializing forever

Hi Community,

i´ve spent a lot of hours and days but I´m not able to get work my SonOff ZigBee USB stick.

  • Platform information:
    • Hardware: x86 Intel-based
    • OS: Lubuntu
    • openHAB version: 4.0.1

The stick keeps in initialization state forever. I´ve tried so much configurations, but nothing works for me:

  • user can create lock files (tested with sudo -u openhab touch /var/lock/test)
  • added EXTRA_JAVA_OPTS in /etc/default/openhab EXTRA_JAJVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0"
  • changed /usr/lib/tmpfiles.d/legacy.conf from (old) d /run/lock/subsys 0755 root root - to (new) d /run/lock/subsys 0775 root openhab -
  • result with lsusb shows the stick
  • dmesg | grep usb shows that stick is connected to USB0
  • increase the log level for openhab with log:set debug level in openhab-cli found out, that the stick is connected (from my point of view)

After a reboot, the log file ends with the initialization entry. Re-initialize, disable and enable the stick has no effects.

Openhab.log:

Initializing ZigBee network [zigbee:coordinator_ember:b0481bd394].
2024-11-08 17:30:41.416 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Channel 11
2024-11-08 17:30:41.419 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - PANID 28867
2024-11-08 17:30:41.421 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - EPANID 8A1369DF94F6162E
2024-11-08 17:30:41.423 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key C8AAF48224ED2B8B0567B1C420C60745
2024-11-08 17:30:41.426 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key 5A6967426565416C6C69616E63653039
2024-11-08 17:30:41.427 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Config: zigbee_initialise found, initializeNetwork=false
2024-11-08 17:30:41.430 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key String C8AAF48224ED2B8B0567B1C420C60745
2024-11-08 17:30:41.433 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network key final array C8AAF48224ED2B8B0567B1C420C60745
2024-11-08 17:30:41.437 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key String 5A6967426565416C6C69616E63653039
2024-11-08 17:30:41.441 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link key final array 5A6967426565416C6C69616E63653039
2024-11-08 17:30:41.443 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - Initializing ZigBee Ember serial bridge handler.
2024-11-08 17:30:41.447 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - ZigBee Ember Coordinator opening Port:'/dev/ttyUSB0' PAN:70c3, EPAN:8A1369DF94F6162E, Channel:11
2024-11-08 17:30:41.450 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - Ember end device poll timeout set to (169 * 2^9) = 86528 seconds
2024-11-08 17:30:41.452 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Scheduling ZigBee start
2024-11-08 17:30:42.455 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ZigBee network starting
2024-11-08 17:30:42.456 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initialising ZigBee coordinator
2024-11-08 17:30:42.460 [DEBUG] [nding.zigbee.serial.ZigBeeSerialPort] - Connecting to serial port [/dev/ttyUSB0] at 115200 baud, flow control FLOWCONTROL_OUT_RTSCTS.
2024-11-08 17:30:42.465 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: networkStateUpdated called with state=INITIALISING
2024-11-08 17:30:42.649 [DEBUG] [nding.zigbee.serial.ZigBeeSerialPort] - Serial port [/dev/ttyUSB0] is initialized.

Has anyone any ideas?

Thanks.

If this is a new device, did you initialise the network? Click the advanced configuration options, select initialise and save.

If you’ve done that then please provide a debug log that is longer than 1 second and covers a full initialisation sequence.

Hi Chris,

sorry, for my late answer (i was on a business trip).

Yes, it´s a new device and yes, i did also the initialse task at the advanced configuration options.
I´ve set the log level to:

openhab.event.ThingUpdatedEvent                    │ DEBUG
org.openhab.binding.zigbee                         │ DEBUG

And the result is:

2024-11-14 19:29:03.496 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration received.
2024-11-14 19:29:03.498 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_port as no change
2024-11-14 19:29:03.499 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_channel as no change
2024-11-14 19:29:03.500 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Processing zigbee_initialise -> true
2024-11-14 19:29:03.501 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_concentrator as no change
2024-11-14 19:29:03.502 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_trustcentremode as no change
2024-11-14 19:29:03.503 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_extendedpanid as no change
2024-11-14 19:29:03.504 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_baud as no change
2024-11-14 19:29:03.505 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_flowcontrol as no change
2024-11-14 19:29:03.506 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_panid as no change
2024-11-14 19:29:03.507 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_powermode as no change
2024-11-14 19:29:03.507 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_txpower as no change
2024-11-14 19:29:03.508 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_networksize as no change
2024-11-14 19:29:03.509 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_linkkey as no change
2024-11-14 19:29:03.510 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_childtimeout as no change
2024-11-14 19:29:03.511 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_networkkey as no change
2024-11-14 19:29:03.512 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_meshupdateperiod as no change
2024-11-14 19:29:03.513 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: Configuration received (Coordinator).
2024-11-14 19:29:03.514 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: Configuration update: Processing zigbee_initialise -> true

The stick keeps in the state “Initializing”, nothing happens.

When i access the advanced option, the reinitialization switch remains in the same state. I would expect, that the switch has to change it´s state to “not activated”, but it´s still in the “activated” state.

Unfortunately this log is just too short to tell what’s happening - it doesn’t contain any of the lower level zigbee stuff and only shows the configuration that is sent to the binding (a whole 20 milliseconds :wink: ).

You should enable logging of com.zsmartsystems.zigbee at debug level - this will hopefully throw out a lot of debug and we can see what’s going on (hopefully).

I was wondering what you wanted to do with the short log file. :smiley:

But unfortunately, there is no logging option for com.zsmartsystems.zigbee. Maybe that could be the issue?

openhab> log:get
Logger                                             │ Level
───────────────────────────────────────────────────┼──────
ROOT                                               │ WARN
javax.jmdns                                        │ ERROR
javax.mail                                         │ ERROR
openhab.event                                      │ INFO
openhab.event.AddonEvent                           │ ERROR
openhab.event.ChannelDescriptionChangedEvent       │ ERROR
openhab.event.GroupStateUpdatedEvent               │ ERROR
openhab.event.InboxUpdatedEvent                    │ ERROR
openhab.event.ItemAddedEvent                       │ ERROR
openhab.event.ItemChannelLinkAddedEvent            │ ERROR
openhab.event.ItemChannelLinkRemovedEvent          │ ERROR
openhab.event.ItemRemovedEvent                     │ ERROR
openhab.event.ItemStateEvent                       │ ERROR
openhab.event.ItemStateUpdatedEvent                │ ERROR
openhab.event.RuleAddedEvent                       │ ERROR
openhab.event.RuleRemovedEvent                     │ ERROR
openhab.event.RuleStatusInfoEvent                  │ ERROR
openhab.event.StartlevelEvent                      │ ERROR
openhab.event.ThingAddedEvent                      │ ERROR
openhab.event.ThingRemovedEvent                    │ ERROR
openhab.event.ThingStatusInfoEvent                 │ ERROR
openhab.event.ThingUpdatedEvent                    │ ERROR
org.apache.cxf.jaxrs.sse.SseEventSinkImpl          │ ERROR
org.apache.cxf.phase.PhaseInterceptorChain         │ ERROR
org.apache.karaf.jaas.modules.audit                │ INFO
org.apache.karaf.kar.internal.KarServiceImpl       │ ERROR
org.apache.karaf.shell.ssh.SshUtils                │ ERROR
org.apache.karaf.shell.support                     │ OFF
org.apache.sshd                                    │ WARN
org.eclipse.lsp4j                                  │ OFF
org.jupnp                                          │ ERROR
org.openhab                                        │ INFO
org.openhab.binding.zigbee                         │ DEBUG
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime                  │ OFF
su.litvak.chromecast.api.v2.Channel                │ ERROR

Just type it in and it will appear. This list just shows specific packages that have been configured already…

I´ve tried you suggestion, but same behaviour.

Changed log-level:

openhab> log:get com.zsmartsystems.zigbee
WARN
openhab> log:set debug com.zsmartsystems.zigbee
openhab> log:get com.zsmartsystems.zigbee
DEBUG

Then I called the re-initialization switch:

2024-11-15 19:17:50.757 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration received.
2024-11-15 19:17:50.759 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_port as no change
2024-11-15 19:17:50.761 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_channel as no change
2024-11-15 19:17:50.762 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Processing zigbee_initialise -> true
2024-11-15 19:17:50.764 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_concentrator as no change
2024-11-15 19:17:50.765 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_trustcentremode as no change
2024-11-15 19:17:50.766 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_extendedpanid as no change
2024-11-15 19:17:50.767 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_baud as no change
2024-11-15 19:17:50.768 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_flowcontrol as no change
2024-11-15 19:17:50.769 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_panid as no change
2024-11-15 19:17:50.770 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_powermode as no change
2024-11-15 19:17:50.771 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_txpower as no change
2024-11-15 19:17:50.772 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_networksize as no change
2024-11-15 19:17:50.774 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_linkkey as no change
2024-11-15 19:17:50.774 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_childtimeout as no change
2024-11-15 19:17:50.776 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_networkkey as no change
2024-11-15 19:17:50.777 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - null: Ember configuration update: Ignored zigbee_meshupdateperiod as no change
2024-11-15 19:17:50.778 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: Configuration received (Coordinator).
2024-11-15 19:17:50.780 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: Configuration update: Processing zigbee_initialise -> true

There really must be more logging that this. The fact that this logging shows configuration updates means the handler is running, so there must have been log entries prior to this at least - ie during the startup?

So, i´ve done a reboot with DEBUG logging for com.zsmartsystems.zigbee.
You´ve mentioned, that a handler is running. During the shutdown process i´ve read this entry:

2024-11-18 17:25:13.213 [WARN ] [core.thing.internal.ThingManagerImpl] - Cannot unregister handler. No handler factory for thing 'zigbee:coordinator_ember:b0481bd394' found.

After the reboot, the log contains the following entries for ZigBee:

[bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : dm ZigBeeCoordinatorHandler tracking 4 MultipleDynamic added {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=599, service.bundleid=296, service.scope=singleton} (enter)
2024-11-18 17:29:01.213 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : dm ZigBeeCoordinatorHandler tracking 4 MultipleDynamic already active, binding {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=599, service.bundleid=296, service.scope=singleton}
2024-11-18 17:29:01.216 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : getting bind: addZigBeeCoordinatorHandler
2024-11-18 17:29:01.245 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : Locating method addZigBeeCoordinatorHandler in class org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService
2024-11-18 17:29:01.248 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : doFindMethod: Looking for method org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService.addZigBeeCoordinatorHandler
2024-11-18 17:29:01.261 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : Declared Method org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService.addZigBeeCoordinatorHandler([interface org.osgi.framework.ServiceReference]) not found
2024-11-18 17:29:01.264 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : Declared Method org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService.addZigBeeCoordinatorHandler([interface org.osgi.service.component.ComponentServiceObjects]) not found
2024-11-18 17:29:01.267 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : getClassFromComponentClassLoader: Looking for interface class org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler through loader of org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService
2024-11-18 17:29:01.270 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : getClassFromComponentClassLoader: Found class org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler
2024-11-18 17:29:01.280 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : doFindMethod: No method taking ServiceReference found, checking method taking org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler
2024-11-18 17:29:01.283 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : doFindMethod: Found Method protected void org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService.addZigBeeCoordinatorHandler(org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler)
2024-11-18 17:29:01.286 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : Found bind method: protected void org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService.addZigBeeCoordinatorHandler(org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler)
2024-11-18 17:29:01.295 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : invoking bind: addZigBeeCoordinatorHandler: parameters [org.openhab.binding.zigbee.ember.handler.EmberHandler]
2024-11-18 17:29:01.301 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : invoked bind: addZigBeeCoordinatorHandler
2024-11-18 17:29:01.309 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - bundle org.openhab.binding.zigbee:4.0.1 (291)[org.openhab.binding.zigbee.discovery.ZigBeeDiscoveryService(364)] : dm ZigBeeCoordinatorHandler tracking 4 MultipleDynamic added {org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler}={service.id=599, service.bundleid=296, service.scope=singleton} (exit)
2024-11-18 17:29:01.536 [DEBUG] [irmware.internal.GithubLibraryReader] - ZigBee Firmware Provider found local file '/var/lib/openhab/zigbee/firmware/github.com/Koenkk/zigbee-OTA/raw/master/images/Aurora/MainsPowerOutlet_JN5169_PCB_ARC_OTA_0x1409_v22.ota'
2024-11-18 17:29:01.726 [DEBUG] [irmware.internal.GithubLibraryReader] - ZigBee Firmware Provider found local file '/var/lib/openhab/zigbee/firmware/github.com/Koenkk/zigbee-OTA/raw/master/images/Insta/ZLL_WS_4f_J_Release_10.03.32.02.zigbee'
2024-11-18 17:29:01.739 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initializing ZigBee network [zigbee:coordinator_ember:b0481bd394].
2024-11-18 17:29:01.741 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Channel 11
2024-11-18 17:29:01.743 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - PANID 28867
2024-11-18 17:29:01.745 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - EPANID 8A1369DF94F6162E
2024-11-18 17:29:01.759 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key C8AAF48224ED2B8B0567B1C420C60745
2024-11-18 17:29:01.774 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key 5A6967426565416C6C69616E63653039
2024-11-18 17:29:01.788 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Config: zigbee_initialise found, initializeNetwork=false
2024-11-18 17:29:01.790 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network Key String C8AAF48224ED2B8B0567B1C420C60745
2024-11-18 17:29:01.822 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Network key final array C8AAF48224ED2B8B0567B1C420C60745
2024-11-18 17:29:01.826 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link Key String 5A6967426565416C6C69616E63653039
2024-11-18 17:29:01.830 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Link key final array 5A6967426565416C6C69616E63653039
2024-11-18 17:29:01.844 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - Initializing ZigBee Ember serial bridge handler.
2024-11-18 17:29:01.918 [DEBUG] [irmware.internal.GithubLibraryReader] - ZigBee Firmware Provider: Requesting GitHub request: https://github.com/Koenkk/zigbee-OTA/raw/master/images/Aurora/MainsPowerOutlet_JN5169_PCB_ARC_OTA_0x1409_v22.ota
2024-11-18 17:29:02.075 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - ZigBee Ember Coordinator opening Port:'/dev/ttyUSB0' PAN:70c3, EPAN:8A1369DF94F6162E, Channel:11
2024-11-18 17:29:02.088 [DEBUG] [ng.zigbee.ember.handler.EmberHandler] - Ember end device poll timeout set to (169 * 2^9) = 86528 seconds
2024-11-18 17:29:02.111 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Scheduling ZigBee start
2024-11-18 17:29:03.119 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ZigBee network starting
2024-11-18 17:29:03.121 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - Initialising ZigBee coordinator
2024-11-18 17:29:03.206 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Default: Set profile to ZigBeeTransactionProfile [maxOutstandingTransactions=1, interTransactionDelay=50, maxRetries=2]
2024-11-18 17:29:03.208 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Broadcast: Set profile to ZigBeeTransactionProfile [maxOutstandingTransactions=2, interTransactionDelay=4000, maxRetries=0]
2024-11-18 17:29:03.218 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - Multicast: Set profile to ZigBeeTransactionProfile [maxOutstandingTransactions=3, interTransactionDelay=1200, maxRetries=0]
2024-11-18 17:29:03.233 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - ZigBeeNetworkManager initialize: networkState=UNINITIALISED
2024-11-18 17:29:03.235 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to INITIALISING
2024-11-18 17:29:03.256 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - null: networkStateUpdated called with state=INITIALISING
2024-11-18 17:29:03.257 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: Initialize with protocol ASH2.
2024-11-18 17:29:03.260 [DEBUG] [nding.zigbee.serial.ZigBeeSerialPort] - Connecting to serial port [/dev/ttyUSB0] at 115200 baud, flow control FLOWCONTROL_OUT_RTSCTS.
2024-11-18 17:29:03.506 [DEBUG] [nding.zigbee.serial.ZigBeeSerialPort] - Serial port [/dev/ttyUSB0] is initialized.
2024-11-18 17:29:03.573 [DEBUG] [e.ember.internal.ash.AshFrameHandler] - ASH: Connect
2024-11-18 17:29:03.576 [DEBUG] [e.ember.internal.ash.AshFrameHandler] - ASH: Reconnect
2024-11-18 17:29:03.583 [DEBUG] [e.ember.internal.ash.AshFrameHandler] - AshReceiveParserThread thread started
2024-11-18 17:29:03.587 [DEBUG] [e.ember.internal.ash.AshFrameHandler] - --> TX ASH frame: AshFrameRst []`
`

It keeps in “Initialization” state.

What keeps saying this?

Please can you provide the full log - surely it doesn’t just stop here does it?

I don´t know… Additionally i´ve found at the events.log this entry:

> 2024-11-18 17:31:33.836 [INFO ] [penhab.event.FirmwareStatusInfoEvent] - Firmware status of thing zigbee:coordinator_ember:b0481bd394 changed to UNKNOWN.

openhab.log (755.6 KB)

That’s fine - nothing abnormal.

So this is the same as above.

Does your complete openHAB system stop at this point? It seems strange that the log ends here. You say it “keeps initialising forever”, but I only see a single initialisation attempt, and then the log stops. It stops before the dongle initialisation is started, so it’s impossible for me to determine why it’s not initialising.

Sorry, but without more information - ie a log that shows the initialisation, it’s hard to say what’s going on.

Yes, sorry, the log stops at exactly this point. After that, there are only rule log entries. Nothing more. Really.

Maybe i should put this stick into the waste… :slight_smile:

Strange - then how do you know the dongle keeps initialising forever if the log stops? Also, looking at the log, ZWave also stops - so is that also not working? If the log you’ve provided is to be believed, then the dongle doesn’t keep initialising - it doesn’t even initialise once.

To me it seems there’s something else going on. The log shouldn’t stop like this - at least not unless OH has completely stopped working. These dongles work fine - I have 2 of them here that I use for development and others are using them. Again, if the dongle was faulty, we’d still see more information in the log - eg communication errors or something, but we see nothing at all…

I think the first thing to understand is what’s going on with the logging. Without this, it’s impossible to diagnose the zigbee problem.

Yes, this is truely strange.

I see the initialization state at the openhab GUI. When i use the switch to re-initializise, it remains in this position. I´ve tried this so much, saved it, changed the state, checked it again, changed the switch again and so on… But it remains in the state.

Openhab itself works fine. Z-Wave stick and all other devices works as expected.

You´ve to adviced me about the logging for com.zsmartsystems.zigbee. I´ve configured it as you suggested. But from my point of view, we´ve no entries for that. Maybe there´re other logging options available for that stick?

I´m open to follow your suggestions… :slight_smile:

The logging is correct - there’s nothing more we an add. We see a few log entries in the log above from this (the ones with ZigBeeDongleEzsp and AshFrameHandler), so the logging is configured correctly to see the zigbee binding output…

But my point is from the log you’ve provided, there is (apparently) no logging from ANY binding, or any part of OH. From what you’ve said, after the ZWave initialises, there is no logging in the OH log.

Until we can see logging, it’s really hard to say what is happening. This doesn’t seem to be an issue with zigbee - at least I can’t think of anything that should be able to stop all logging if there’s an error in any binding. So, if all logging has stopped, then there is something else going on that needs to be solved first. Once we can see the logging, then we can work out what’s happening with zigbee.

Thank you so much for your patience.

I´ve tried some tasks to get more logs, but it doesn´t work. In the meantime, i´ve detected, that the stick changed their port to ttyUSB1

I´ve updated the configuration and now, the stick is marked as offline. Additionaly i´ve set a log directly at the console. That happens when i detach and attach the stick again:

openhab> log:tail com.zsmartsystems.zigbee
09:11:30.763 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - ASH TX EZSP: EzspVersionRequest [networkId=0, desiredProtocolVersion=4]
09:11:33.609 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - ASH: Reconnect
09:11:33.616 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - --> TX ASH frame: AshFrameRst []
09:11:36.822 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - ASH: Reconnect
09:11:36.825 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - --> TX ASH frame: AshFrameRst []
09:11:40.032 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - ASH: Reconnect
09:11:40.037 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - --> TX ASH frame: AshFrameRst []
09:11:40.834 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - Sending EZSP transaction timed out after 10 seconds
09:11:40.840 [DEBUG] [tsystems.zigbee.dongle.ember.EmberNcp] - No response from ezspVersion command
09:11:40.845 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: Version returned null. ASH/EZSP not initialised.
09:11:40.854 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to OFFLINE
09:11:41.029 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - ZigBeeNetworkManager shutdown: networkState=OFFLINE
09:11:41.033 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Deferred Write Time set to 0ms
09:11:41.042 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Deferred Write Time set less than Max Deferred Write Time
09:11:41.046 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Max Deferred Write Time set to 0ms
09:11:41.054 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to SHUTDOWN
09:11:41.058 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Shutdown
09:11:41.068 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: Shutdown
09:11:41.086 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - AshFrameHandler close.
09:11:41.106 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - Ember: Link State change to false, initialised=false, networkStateUp=false
09:11:41.143 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - Ember: Link State change to false ignored.
09:11:41.193 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - AshReceiveParserThread exited.
09:11:41.206 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - AshFrameHandler parser thread terminated.
09:11:41.221 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - AshFrameHandler InterruptedException processing EZSP frame
09:11:41.232 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - AshFrameHandler processor thread terminated.
09:11:41.238 [DEBUG] [le.ember.internal.ash.AshFrameHandler] - AshFrameHandler close complete.
09:11:41.557 [DEBUG] [.transaction.ZigBeeTransactionManager] - Transaction Manager: Shutdown
09:11:41.563 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Broadcast: Queue shutdown
09:11:41.571 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Multicast: Queue shutdown
09:11:41.690 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - ZigBeeNetworkManager shutdown: networkState=SHUTDOWN
09:11:41.716 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to OFFLINE
09:11:41.733 [DEBUG] [s.zigbee.internal.NotificationService] - NotificationService is shutdown. Not scheduling com.zsmartsystems.zigbee.ZigBeeNetworkManager$5
09:11:41.750 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Deferred Write Time set to 0ms
09:11:41.758 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Max Deferred Write Time set to 0ms
09:11:41.767 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to SHUTDOWN
09:11:41.775 [DEBUG] [s.zigbee.internal.NotificationService] - NotificationService is shutdown. Not scheduling com.zsmartsystems.zigbee.ZigBeeNetworkManager$5
09:11:41.789 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: Shutdown
09:11:41.800 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: Shutdown
09:11:41.840 [DEBUG] [.transaction.ZigBeeTransactionManager] - Transaction Manager: Shutdown
09:11:41.857 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Broadcast: Queue shutdown
09:11:41.878 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Multicast: Queue shutdown
09:11:42.991 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Default: Set profile to ZigBeeTransactionProfile [maxOutstandingTransactions=1, interTransactionDelay=50, maxRetries=2]
09:11:42.998 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Broadcast: Set profile to ZigBeeTransactionProfile [maxOutstandingTransactions=2, interTransactionDelay=4000, maxRetries=0]
09:11:43.001 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Multicast: Set profile to ZigBeeTransactionProfile [maxOutstandingTransactions=3, interTransactionDelay=1200, maxRetries=0]
09:11:43.006 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - ZigBeeNetworkManager initialize: networkState=UNINITIALISED
09:11:43.015 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to INITIALISING
09:11:43.040 [DEBUG] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: Initialize with protocol ASH2.
09:11:43.176 [ERROR] [.zigbee.dongle.ember.ZigBeeDongleEzsp] - EZSP Dongle: Unable to open serial port
09:11:43.190 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to OFFLINE

And here is the result for dmesg | grep usb:

[1008804.643379] usb 3-2: USB disconnect, device number 3
[1008808.396917] usb 3-2: new full-speed USB device number 4 using ohci-pci
[1008808.603856] usb 3-2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[1008808.603885] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1008808.603896] usb 3-2: Product: Sonoff Zigbee 3.0 USB Dongle Plus V2
[1008808.603906] usb 3-2: Manufacturer: Itead
[1008808.603915] usb 3-2: SerialNumber: 7eb4fca5f912ef11809e6fb8bf9df066
[1008808.614097] usb 3-2: cp210x converter now attached to ttyUSB1

If this is maybe more helpful for you?

I think this is different…

This clearly shows that the port didn’t open, but earlier, that wasn’t the case -:

Sorry - I’m not sure what to suggest and I’m not sure what’s going on with the logs.

Does it work if you use zigbee2mqtt?

The logging completely stops, so I don’t see it being any different with any binding.

This dongle does work - I use them here (Sonoff have supplied me a couple for development) - the issue is to find out what’s wrong - why it doesn’t log, why it doesn’t (maybe) initialise, and why the serial port is incorrect…