Problem with fresh Openhab 2.5 / Zigbee / Bitronvideo Ember Dongle / Device Pairing

There are certainly plenty of devices that seem to be discovering ok - I guess these are all the existing devices. eg -:

2020-01-11 17:37:39.534 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 14B457FFFE4D3B1C: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'IKEA of Sweden TRADFRI bulb E27 WS opal 1000lm'
2020-01-11 17:37:39.977 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 00158D00033F0005: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'LUMI lumi.relay.c2acn01'
2020-01-11 17:37:40.135 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 14B457FFFE4EBEC4: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'IKEA of Sweden TRADFRI bulb E27 WS opal 1000lm'
2020-01-11 17:37:51.219 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 8418260000107128: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'OSRAM Plug 01'
2020-01-11 17:37:51.301 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 00158D0004466091: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'LUMI lumi.weather'
2020-01-11 17:40:28.503 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 14B457FFFE4E0900: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'IKEA of Sweden TRADFRI bulb E27 WS opal 1000lm'
2020-01-11 17:40:28.965 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 7CB03EAA00B286F8: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'OSRAM Plug 01'
2020-01-11 17:40:29.029 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 8418260000107128: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'OSRAM Plug 01'
2020-01-11 17:40:29.239 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 00158D00033F0005: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:013827EC, label 'LUMI lumi.relay.c2acn01'

I didnā€™t go through the whole log, but the binding seems to have information about a wide range of devices, and immediately after these log messages it updates the discovery service -:

                        logger.debug("{}: Update ZigBee device {} with bridge {}, label '{}'", node.getIeeeAddress(),
                                defaultThingTypeUID, bridgeUID, updatedLabel);

                        DiscoveryResult updatedDiscoveryResult = DiscoveryResultBuilder.create(defaultThingUID)
                                .withThingType(defaultThingTypeUID).withProperties(nodeProperties).withBridge(bridgeUID)
                                .withLabel(updatedLabel).build();

                        thingDiscovered(updatedDiscoveryResult);

The binding seems to be able to read the device information from devices as well.

Iā€™m not sure why new devices wouldnā€™t join though. Can you provide a log from the binding startup please for (say) 1 or 2 minutes after.

Yes, these are all part of the existing network.

Of course. This log file covers startup plus four minutes (itā€™s a .zip-file again, please rename it): openhab_startup.txt (169.6 KB)

Thanks.

Are you able to install the various console bundles?

org.openhab.binding.zigbee.console
org.openhab.binding.zigbee.console.ember
com.zsmartsystems.zigbee.console
com.zsmartsystems.zigbee.console.ember

If so, please try running zigbee ncpsecuritystate (I think thatā€™s the right command under the console) and let me know the result.

Yes, hereā€™s the result:

Current Network State      : EMBER_JOINED_NETWORK
Trust Centre Address       : 000D6F000DC56198
Security level             : 5
Rejoin timeout             : null
Key table size             : 4
Trust Centre cache size    : 2
Transient key timeout      : 300
Application Key Policy     : EZSP_DENY_APP_KEY_REQUESTS
Trust Centre Policy        : EZSP_ALLOW_JOINS
Trust Centre Key Policy    : EZSP_DENY_TC_KEY_REQUESTS
Trust Centre Rejoin Policy : UNKNOWN
Installation Code          : 
ECC Library Support        : false
CBKE Library Support       : false
CBKE 163k1 Library Support : false
CBKE 163k1 Certificate     : No Certificate
CBKE 283k1 Library Support : false
CBKE 283k1 Certificate     : No Certificate
Security state flags       : EMBER_TRUST_CENTER_USES_HASHED_LINK_KEY
                           : EMBER_GLOBAL_LINK_KEY
                           : EMBER_HAVE_TRUST_CENTER_LINK_KEY

Key Type                        IEEE Address      Key Data                          In Cnt    Out Cnt   Seq  Auth  Sleep
EMBER_TRUST_CENTER_LINK_KEY     000D6F000DC56198  5A6967426565416C6C69616E63653039            00002000       Yes   No  
EMBER_CURRENT_NETWORK_KEY                         C425B9194CD0738F38CAC9B1A1D5625C            0000770D    0  No    No  

Thanks - looks fine as well (standard HA link key is still in use) so devices should be able to join ok with that. It looks like the same policies as standard, and I certainly have no problems getting an Osram bulb to join.

Is it just one device that youā€™ve having problems with (letā€™s ignore Xiaomi devices for a second at least)?

Unfortunately more devices are affected.

To be sure, I just tried three to pair three other devices:

  • First one is a KSentry On Off Controller (01124B001C2E7B92). Though discovered as ā€œUnknown Zigbee Deviceā€, I added this one as a thing after discovery, but information but did not get completed.
  • Second one is the Osram Smart Plug (7cb03eaa00b286f8) which earlier today was the first and only device I could successfully pair (I removed it again for testing).
  • Third one is an Ikea Tradfri Signal Repeater (000D6FFFFE9A0D40)

Here is the log trying to discover these three devices (again itā€™s a .zip-file): openhab_2.txt (100.9 KB)

None of them did complete discovery, all stayed ā€œUnknown Zigbee Devicesā€ (and all used to work with earlier versions).

I donā€™t know anything about these devices, but looking in the log, they do not respond - at least the Tradfri doesnā€™t respond and the NCP canā€™t communicate with it (ie it does not respond).

Iā€™ve no idea why without a network log (and even then it may not tell whatā€™s going on). Clearly the device joined the network - maybe it left again due to key exchange issues - I really canā€™t tell from this.

Thereā€™s one setting I could look at changing, it may help, or it may cause a load of problems (it was changed as it caused problems with some devices). However thereā€™s no easy way to change that right now but Iā€™ll have a look at coming up with a CLI command to do this.

Do you have a sniffer?

Unfortunately not.

Iā€™ll be happy to try this as soon as itā€™s possible!

A couple of days ago, I received an Ikea Tradfri light bulb (model: TRADFRI bulb E27 WS opal 1000lm). In contrast to the light bulbs I was talking about above (tint color+white), pairing works instantly on OpenHab 2.5 and I am also able to control the brightness and color temperature.

Just to be clear: The tint bulbs worked well in OpenHab 2.4 and even in OpenHab 2.5 after upgrading. Itā€™s just the pairing that seems to be broken in 2.5.

I am using the regular 2.5 zigbee binding, not the 2.5.1 that was talked about above. I can update manually and do some further tests if needed, but unfortunately, I wonā€™t have much time during the coming days. I might be able to do some testing on the next weekend, if this is still of any help. Just let me know.

@chris seems to have the same Ikea Tradfri bulbs working that I have now working as well, but @mrfrh and @chris both have an Osram smart plug and @mrfrhā€™s isnā€™t working while @chrisā€™s is. Maybe differences in the pairing of that Osram smart plug can give some insight. But I am just guessing :face_with_raised_eyebrow:

Iā€™ll just reply in the original thread:

Well, Iā€™m convinced that that it should work! :grinning:

I thought about setting up openhab 2.5 stable on my desktop to try the dongle with different hardware and without the existing zigbee network.

I just tested Openhab 2.5 stable and the Ember dongle on my laptop running opensuse linux. And, surprise, I could immediately pair all the things (including the xiaomi sensors) that didnā€™t work yesterday. I also paired one of the tradfri bulbs mentioned in the first post (i even tried two times because I couldnā€™t believe it :-D).

So, my conclusions:

  1. Dongle and Zigbee hardware is ok.
  2. Combination of Openhab 2.5 stable / Zigbee binding / Ember dongle / Firmware 5.8 is ok, too.
  3. Combination of 1. & 2. with my raspberry pi / openhabian 1.5 is problematic for me:
    3.1 fresh install of openhabian 1.5 / openhab 2.5 stable ā†’ pairing (especially tradfri bulbs) didnā€™t work
    3.2 downgrade to openhab 2.5 M2 ā†’ pairing worked
    3.3 upgrade to openhab 2.5 stable again ā†’ paring didnā€™t work, even with things that initially worked in step 3.1 (Osram plugs)

So, to conclude: I think I should format my Raspberry PI SSD and start to install 2.5 from scratch, maybe with a different OS. This will take some time, but Iā€™ll let you know if it worked!

@chris Many many thanks for your support! And sorry for ā€œblamingā€ the zigbee binding while this actually seems to be caused by something elseā€¦

@porst17 Do you also have the possibility to try your zigbee hardware with a different system?

1 Like

Hello Martin,
I was following the discussion, because I have the same issue as you. I was also running 2.5 official OpenHAB and upgraded the zigbee binding to the version which you linked above.
Iā€™m using a Telegesis (Qivicon) dongle connected to a raspberry pi (version 3). The linux is a custom build yocto system. So I think your reinstallation might not solve the issue.
Maybe the issue is related to the performance of the RPI. Maybe some changes which effect timing and the RPI is too slow to handle some requests?

This is a totally different device than we are talking about here, so the joining issue is almost certainly not the same. The Telegesis dongle is getting a bit old and doesnā€™t support ZB3.0 so it may depend on your devices if it will work or not.

I think thatā€™s not very likely in this case - there was no sign of lost frames etc in the logs I looked at either. Really, ZigBee communications isnā€™t especially fast in the grand scheme of things.

Thanks for the quick reply.
But it doesnā€™t explain to me why I was able to pair the same Lupus Temp Sensor with one of the Milestone releases. (Same dongle, Same RPI)
Now it does find the Lupus, but only as unknown device. Iā€™m able to add it as Thing, but then in the Thing overview it just says: ā€œStatus: OFFLINE Node has not completed discoveryā€

Ok, but you didnā€™t mention anything about this in your previous message! Itā€™s hard for me to comment on things that you donā€™t say.

Ok. Is there any more information you can provide? Do you have a sniffer log, or at least a binding log? Itā€™s really difficult for me to really comment when the only information I have is ā€œit doesnā€™t workā€ - sorry.

I was able to quickly test OpenHab 2.5 in an Ubuntu 19.10 virtual machine running in VirtualBox on my MacBook Pro. I donā€™t have another physical machine at hand.

I mounted the BV dongle into the VM. Discovery of the dongle was without problems.

  • Trying to pair my tint lamps resulted in the same issue: ā€œUnknown device ā€¦ā€
  • Pairing the Ikea Tradfri lamps just works

Openhabian (tested on Rpi 0w and 3B) and Ubuntu 19.10 (amd64, Linux VM) are both based on the same Debian release (buster) and share the same symptoms with OpenHab 2.5 and the BV dongle.

I donā€™t know what these are? What is the manufacturer? Is there a sniffer log or binding log to see whatā€™s happening?

These are the lamps I was talking about above all the time:

The only logs I can provide are the regular OpenHab ZigBee logs I already provided above for these devices, no sniffer log AFAICS.

Maybe that Osram smart plug is a more promising candidate for debugging, because you seem to own one as well as @mrfrh. And @mrfrh has a working and non-working OpenHab 2.5 configuration.

This should be fine - itā€™s a ZB3 device, so it should be fine if youā€™re using the standard link key and doesnā€™t require an install code?

Is that for OH2.5 or the 2.4 logs? Iā€™m not quite sure which logs to look at as the ones above you say are for 2.4.

Yes, but everything works fine here and with the other systems I support, so that doesnā€™t really help :wink:

I posted two logs:

Both logs are for the same type of light bulb. I think you already checked both of them, no?