Zigbee binding

Thank you chris,
By simplicity tool, I programmed my kit with Bootloader and ncp image. Then on openhabian, I installed siliconlab’s gateway software.

And on Raspberrypi the connected device is showing unknown

I don’t know what this is, but I suspect you do not need it, and this may be causing a problem. All you need to do is to program the NCP firmware.

Thank you Chris,
Before installing Gateway software, I was getting same problem. If you have tested procedure, then can you provide me.

There is no procedure other than what is in the binding documentation. Simply program the NCP firmware into the EFR32 / EM35xx etc using Simplicity (ensure you also program the bootloader), and configure the binding to use the appropriate serial port etc. You should not need to run any other software.

I have a Telegesis stick which I am trying to pair with a Sylvania Smart+ Plug. I seem to be having trouble with OH using my Telegesis stick. I believe the root cause is that the port is not set, but I can’t set it as my device (/dev/ttyUSB1) is not listed as an option.

Here are the full details (log snippets below, full log is here). I am running a OH 2.4.0 SNAPSHOT from last week

When I start OH, it finds my stick on /dev/ttyUSB1:

2018-10-03 08:05:08.444 [DEBUG] [ding.zigbee.handler.ZigBeeSerialPort] - Serial port [/dev/ttyUSB1] is initialized.

But, when I trigger a scan via BasicUI, I get this error in my logs:

2018-10-03 08:08:40.504 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_telegesis:04003E38
2018-10-03 08:08:40.504 [DEBUG] [bee.handler.ZigBeeCoordinatorHandler] - ZigBee coordinator is offline - aborted scan for zigbee:coordinator_telegesis:04003E

So I checked my Things, sure enough it shows the stick as offline. if I edit, the port section is empty, so I try to fill but /dev/ttyUSB1 is not one of the options and I don’t see a way to just type a value myself:

Thanks in advance
Dave

Hi Dave,
seems a bit strange - do you have a full debug log to see if something happens between these two points? It might initialise the serial port, but not be able to communicate with the stick?

Chris

Here is the the full zigbee debug log. It covers from OH startup to when I attempted the inclusion

Can you enable debug on the zigbee libraries also please (as per the docs).

Thanks.

Additional debug enable and I tried inclusion mode again. Log is here

What version of the binding are you running? If it’s not the latest, please ensure that you are running the latest snapshot. I think probably you are running one from a few weeks back that has a bug that has been fixed.

Which one is the latest, Chris? I believe I have an older version as well if the newest is just a few weeks old.

It’s always the one you download with the snapshot version.

Maybe - if you don’t keep up, then I guess you will have an old version.

I got the one from a coupple months ago, where you guided me to some site to download the jar and the lib files as well. I dont remember the site.

This is what I´ve got running now:

openhab> bundle:list -s |grep -i zig
195 │ Active    │  80 │ 2.4.0.201808020834     │ org.openhab.binding.zigbee
197 │ Active    │  80 │ 1.0.14                 │ com.zsmartsystems.zigbee
198 │ Active    │  80 │ 1.0.14                 │ com.zsmartsystems.zigbee.dongle.ember
199 │ Active    │  80 │ 2.4.0.201808020834     │ org.openhab.binding.zigbee.ember
202 │ Active    │  80 │ 1.0.11                 │ com.zsmartsystems.zigbee
203 │ Active    │  80 │ 1.0.11                 │ com.zsmartsystems.zigbee.dongle.cc2531
204 │ Active    │  80 │ 1.0.11                 │ com.zsmartsystems.zigbee.dongle.ember
205 │ Active    │  80 │ 1.0.11                 │ com.zsmartsystems.zigbee.dongle.telegesis
206 │ Active    │  80 │ 1.0.11                 │ com.zsmartsystems.zigbee.dongle.xbee
245 │ Installed │  80 │ 2.3.0                  │ org.openhab.binding.zigbee
246 │ Active    │  80 │ 2.3.0                  │ org.openhab.binding.zigbee.cc2531
247 │ Installed │  80 │ 2.3.0                  │ org.openhab.binding.zigbee.ember
248 │ Active    │  80 │ 2.3.0                  │ org.openhab.binding.zigbee.telegesis
249 │ Active    │  80 │ 2.3.0                  │ org.openhab.binding.zigbee.xbee
openhab>

It´s pretty weird however, cause I uninstalled 1.0.11 and 2.3.0 at the same time… How come they have returned?

Found the links in Scott´s message from the 3. of August. I see both the Ember bridge and the Zigbee binding is from yesterday? Should I get both?
These are the links, right?

I think you’re overthinking things - just use the latest snapshot version.

Got an error with the latest jar.
First I tried both the zigbee binding and the ember… Error 500 when I try to add the coordinator
Then I tried just the binding… Still the same error.

2018-10-04 21:31:25.468 [WARN ] [eclipse.jetty.servlet.ServletHandler] - 

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com/zsmartsystems/zigbee/security/ZigBeeKey

	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) [167:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]

	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) [167:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]

	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) [167:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]

	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) [167:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]

	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) [167:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]

	at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76) [15:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]

	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]

	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]

	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]

	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [82:org.eclipse.jetty.security:9.3.21.v20170918]

	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]

	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]

	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]

	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.server.Server.handle(Server.java:534) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [84:org.eclipse.jetty.server:9.3.21.v20170918]

	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [76:org.eclipse.jetty.io:9.3.21.v20170918]

	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [76:org.eclipse.jetty.io:9.3.21.v20170918]

	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [76:org.eclipse.jetty.io:9.3.21.v20170918]

	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [87:org.eclipse.jetty.util:9.3.21.v20170918]

	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [87:org.eclipse.jetty.util:9.3.21.v20170918]

	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [87:org.eclipse.jetty.util:9.3.21.v20170918]

	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [87:org.eclipse.jetty.util:9.3.21.v20170918]

	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [87:org.eclipse.jetty.util:9.3.21.v20170918]

	at java.lang.Thread.run(Thread.java:748) [?:?]

Caused by: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: com/zsmartsystems/zigbee/security/ZigBeeKey

	at org.glassfish.jersey.servlet.internal.ResponseWriter.rethrow(ResponseWriter.java:278) ~[?:?]

	at org.glassfish.jersey.servlet.internal.ResponseWriter.failure(ResponseWriter.java:260) ~[?:?]

	at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:509) ~[170:org.glassfish.jersey.core.jersey-server:2.22.2]

	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:334) ~[170:org.glassfish.jersey.core.jersey-server:2.22.2]

	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[169:org.glassfish.jersey.core.jersey-common:2.22.2]

	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[169:org.glassfish.jersey.core.jersey-common:2.22.2]

	at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[169:org.glassfish.jersey.core.jersey-common:2.22.2]

	at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[169:org.glassfish.jersey.core.jersey-common:2.22.2]

	at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[169:org.glassfish.jersey.core.jersey-common:2.22.2]

	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) ~[169:org.glassfish.jersey.core.jersey-common:2.22.2]

	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) ~[170:org.glassfish.jersey.core.jersey-server:2.22.2]

	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) ~[170:org.glassfish.jersey.core.jersey-server:2.22.2]

	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) ~[167:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]

	... 31 more

Caused by: java.lang.NoClassDefFoundError: com/zsmartsystems/zigbee/security/ZigBeeKey

	at org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler.<clinit>(ZigBeeCoordinatorHandler.java:123) ~[?:?]

	at org.openhab.binding.zigbee.ember.internal.EmberHandlerFactory.createHandler(EmberHandlerFactory.java:59) ~[?:?]

	at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler(BaseThingHandlerFactory.java:119) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingManager.doRegisterHandler(ThingManager.java:547) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingManager.registerHandler(ThingManager.java:524) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingManager.registerAndInitializeHandler(ThingManager.java:998) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingManager.thingAdded(ThingManager.java:405) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyTrackers(ThingRegistryImpl.java:211) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutAddedElement(ThingRegistryImpl.java:130) ~[?:?]

	at org.eclipse.smarthome.core.thing.internal.ThingRegistryImpl.notifyListenersAboutAddedElement(ThingRegistryImpl.java:1) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractRegistry.added(AbstractRegistry.java:141) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractRegistry.added(AbstractRegistry.java:1) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:56) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:74) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListenersAboutAddedElement(AbstractProvider.java:78) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractManagedProvider.add(AbstractManagedProvider.java:61) ~[?:?]

	at org.eclipse.smarthome.core.common.registry.AbstractRegistry.add(AbstractRegistry.java:222) ~[?:?]

	at org.eclipse.smarthome.io.rest.core.internal.thing.ThingResource.create(ThingResource.java:224) ~[?:?]

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

	at 

You probably have some of the old files still loaded!

Just tried again…
This time I removed everything, (except the zsmartsystem files).
Stopped Openhab.
Downloaded the ember binding and the zigbee binding, again…
copied them into srv/addons/ overwrite the exsting files.
Clear cache and tmp
rebooted.

This is what I get on startup:

2018-10-04 21:50:23.442 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zigbee.ember-2.4.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zigbee.ember [199]
2018-10-04 21:50:23.451 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zigbee-2.4.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zigbee [195]
2018-10-04 21:50:23.501 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zigbee-2.4.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zigbee [195]
2018-10-04 21:50:23.517 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.zigbee.ember-2.4.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.zigbee.ember [199]
2018-10-04 21:51:06.269 [.ItemChannelLinkAddedEvent] - Link 'HUE_Occu-zigbee:device:606db2f6:0017880102139d00:0017880102139D00_2_sensor_occupancy' has been added.
2018-10-04 21:51:06.272 [.ItemChannelLinkAddedEvent] - Link 'TrustMotionIntrusion-zigbee:device:606db2f6:00158d00019533d3:00158D00019533D3_1_ias_motionintrusion' has been added.
2018-10-04 21:51:06.275 [.ItemChannelLinkAddedEvent] - Link 'TrustMotionPresence-zigbee:device:606db2f6:00158d00019533d3:00158D00019533D3_1_ias_motionpresence' has been added.
2018-10-04 21:51:09.610 [.ItemChannelLinkAddedEvent] - Link 'HUE_batteryPercent-zigbee:device:606db2f6:0017880102139d00:0017880102139D00_2_battery_level' has been added.
2018-10-04 21:51:09.615 [.ItemChannelLinkAddedEvent] - Link 'HUE_batteryVoltage-zigbee:device:606db2f6:0017880102139d00:0017880102139D00_2_battery_voltage' has been added.
2018-10-04 21:51:09.622 [.ItemChannelLinkAddedEvent] - Link 'HueSwitch1_batteryPercent-zigbee:device:606db2f6:001788011032a21b:001788011032A21B_2_battery_level' has been added.
2018-10-04 21:51:09.629 [.ItemChannelLinkAddedEvent] - Link 'HueSwitch1_batteryVoltage-zigbee:device:606db2f6:001788011032a21b:001788011032A21B_2_battery_voltage' has been added.
2018-10-04 21:51:09.636 [.ItemChannelLinkAddedEvent] - Link 'TrustBatteryPercent-zigbee:device:606db2f6:00158d00019533d3:00158D00019533D3_1_battery_level' has been added.
2018-10-04 21:51:09.843 [.ItemChannelLinkAddedEvent] - Link 'HUE_Motion-zigbee:device:606db2f6:0017880102139d00:0017880102139D00_1_switch_onoff' has been added.
2018-10-04 21:51:09.889 [.ItemChannelLinkAddedEvent] - Link 'HUE_Temp-zigbee:device:606db2f6:0017880102139d00:0017880102139D00_2_measurement_temperature' has been added.
2018-10-04 21:51:09.902 [.ItemChannelLinkAddedEvent] - Link 'HUE_illumiance-zigbee:device:606db2f6:0017880102139d00:0017880102139D00_2_measurement_illuminance' has been added.
2018-10-04 21:51:09.905 [.ItemChannelLinkAddedEvent] - Link 'HueSwitch1-zigbee:device:606db2f6:001788011032a21b:001788011032A21B_1_switch_onoff' has been added.
2018-10-04 21:51:09.911 [.ItemChannelLinkAddedEvent] - Link 'OsramPlug_TotalPower-zigbee:device:606db2f6:7cb03eaa00a05370:7CB03EAA00A05370_3_electrical_activepower' has been added.
2018-10-04 21:51:09.918 [.ItemChannelLinkAddedEvent] - Link 'OsramPlug_OnOff-zigbee:device:606db2f6:7cb03eaa00a05370:7CB03EAA00A05370_3_switch_onoff' has been added.
2018-10-04 21:51:51.631 [hingStatusInfoChangedEvent] - 'zigbee:device:606db2f6:001788011032a21b' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
java.lang.NoClassDefFoundError: com/zsmartsystems/zigbee/security/ZigBeeKey
	at org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler.<clinit>(ZigBeeCoordinatorHandler.java:123) ~[?:?]
	at org.openhab.binding.zigbee.ember.internal.EmberHandlerFactory.createHandler(EmberHandlerFactory.java:57) ~[?:?]
Caused by: java.lang.ClassNotFoundException: com.zsmartsystems.zigbee.security.ZigBeeKey cannot be found by org.openhab.binding.zigbee_2.4.0.201810032130

This is the bundles installed and active:

openhab> bundle:list -s |grep -i zig
195 │ Active   │  80 │ 2.4.0.201810032130     │ org.openhab.binding.zigbee
197 │ Active   │  80 │ 1.0.14                 │ com.zsmartsystems.zigbee
198 │ Active   │  80 │ 1.0.14                 │ com.zsmartsystems.zigbee.dongle
199 │ Active   │  80 │ 2.4.0.201810032130     │ org.openhab.binding.zigbee.ember
openhab>

Again, you still have old zigbee files loaded. Remove these files and reinstall the binding.