The log looks ok, but no devices are joining the network. There’s really no indication why - this level of functionality is hidden from the binding as it’s down at the 802.15.4 layer.
My recommendation is to put the binding into join mode, then reset the device that you want to join.
I’m trying to use xiaomi zigbee devices (temp sensor, button) with openhab trough cc2531 stick in a raspberry pi.
Now I see my two xiaomi devices (temp sens WSDCGQ01LM and button WXKG01LM) in the inbox and I can add to Things but both of them offline.
Do you have any experience on this?
Have you successful setup the system?
I have used the temperature sensor and it works ok. I’ve got some other devices, but not tested them.
Note that these devices are nor ZigBee devices, so you can expect problems. For starters they probably don’t work through other routers, and may not work if there are network updates…
For anyone out there using an OH snapshot build >= 1230, could you please test deleting a Zigbee device and rediscovering? There are two of us that have seen an issue, but need some help sorting out the cause and a better understanding of how many people are affected. Thank you!
Has anyone had any luck with the latest snapshot and CC2531? I only get exceptions:
16:01:18.045 [ERROR] [home.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'zigbee:coordinator_cc2531:2431b159': null
java.lang.NullPointerException: null
at org.openhab.binding.zigbee.cc2531.handler.CC2531Handler.initialize(CC2531Handler.java:53) [213:org.openhab.binding.zigbee.cc2531:2.3.0.201804042202]
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 org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [103:org.eclipse.smarthome.core:0.10.0.201803311938]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [103:org.eclipse.smarthome.core:0.10.0.201803311938]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Any pointers, or is there anywhere where I can download a “semi-stable” version of the binding? I am still working to get a remote control to work. This time, I bought a Philips Hue remote. In 2.2.0, it is discovered, but does not offer any channels. So I upgraded to 2.3.0-SNAPSHOT, but then ZigBee doesn’t seem to work at all, at least not with my CC2531 controller…
I would not expect the latest snapshot binding to work on OH 2.2 due to breaking changes in ESH included in build 1230. To use the latest version of the binding, you’ll probably need to upgrade OH.
By far the easiest way would be to upgrade to a snapshot build and install the binding (just one… the rest will be installed as dependencies) through PaperUI.
openhab> list |grep -i zig
244 │ Active │ 80 │ 1.0.8 │ com.zsmartsystems.zigbee.dongle.ember
245 │ Active │ 80 │ 1.0.8 │ com.zsmartsystems.zigbee
246 │ Active │ 80 │ 2.3.0.201804032001 │ ZigBee Binding
247 │ Active │ 80 │ 2.3.0.201804032001 │ ZigBee Ember Binding
Perfect, thanks a lot! I started thinking about poking around in the code, but as I have never done any Java-development, and don’t know the coding structure of Eclipse / OpenHAB / Bindings, I have a feeling I would need a few weeks to understand where to look
I’ve updated the config description which I hope will resolve this. Please give it a try and if there are still problems I’ll take a look over the weekend when I can test it properly.
Thanks a lot, Chris! I had to find out how to compile these bindings in order to test, but I succeeded, and it now works beautifully! As soon as I get home, I can retry adding my Hue Remote.
Hehe, some times the solution is so simple Well, at least I learnt how to compile it. It may come in handy if I struggle with a binding at some point, or something.
It looks like you probably have more than one binding running. Possibly karaf has cached your previous version if you were installing it manually (this is quite common).