# Zigbee binding

**URL:** <https://community.openhab.org/t/zigbee-binding/15763>\
**Category:** Bindings\
**Tags:** zigbee, beginners\
**Created:** [October 26, 2016, 8:01am UTC](https://community.openhab.org/t/zigbee-binding/15763 "2016-10-26T08:01:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![elevation](https://community.openhab.org/user_avatar/community.openhab.org/elevation/32/86388_2.png) [@elevation](https://community.openhab.org/u/elevation)\
**Post date:** [October 26, 2016, 8:01am UTC](https://community.openhab.org/t/zigbee-binding/15763/1 "2016-10-26T08:01:36Z")

</div>

Hello,

I would like to try out the Zigbee binding that is under development!  
Where can I found the repository with the latest work?  
I have some different TI hardware that I would like to test with it (CC2530, CC2531, CC2538, CC2650). Is there any instruction on how to generate the firmware, as I understand it is based on the sample code from TI, so it might be possible to generate firmware for them?  
I have some hardware from other vendors also, but then the interface needs to be rewritten? Where is the code if I would take a look at it!  
With the introduction of Thread and ZCL-over-IP it might make sense to also split it into one binding part, and one transport part?

Best Regards,  
Mattias

---

<div class="post-metadata">

**Author:** ![KPaul20005](https://community.openhab.org/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@KPaul20005](https://community.openhab.org/u/KPaul20005)\
**Post date:** [October 26, 2016, 8:42am UTC](https://community.openhab.org/t/zigbee-binding/15763/2 "2016-10-26T08:42:06Z")

</div>

Hi

I used the binding from this pull request:

[https://github.com/openhab/openhab2-addons/pull/779](https://github.com/openhab/openhab2-addons/pull/779)

but I am not sure if this is the newest version.

As for the firmware I flashed the one that is described here:

> **[GitHub - tlaukkan/zigbee4java: Zigbee API for Java provides simple Java interface...](https://github.com/tlaukkan/zigbee4java)**
>
> Zigbee API for Java provides simple Java interface to ZigBee network.

---

<div class="post-metadata">

**Author:** ![elevation](https://community.openhab.org/user_avatar/community.openhab.org/elevation/32/86388_2.png) [@elevation](https://community.openhab.org/u/elevation)\
**Post date:** [November 6, 2016, 10:00am UTC](https://community.openhab.org/t/zigbee-binding/15763/3 "2016-11-06T10:00:19Z")

</div>

Thanks!

I’ve received some different TI-based hardware, installed eclipse and development environment and will start playing with it!

I have flashed the TI2531 with firmware and it seems to work in Openhab! When i try to add an osram lightify i get this error in the log. Any clues?

2016-11-06 10:57:43.972 [DEBUG] [b.z.handler.ZigBeeThingHandler:67] - Can’t initializing ZigBee thing handler without address{}.

Best regards,  
Mattias

---

<div class="post-metadata">

**Author:** ![chris](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://community.openhab.org/u/chris)\
**Post date:** [November 6, 2016, 12:13pm UTC](https://community.openhab.org/t/zigbee-binding/15763/4 "2016-11-06T12:13:14Z")

</div>

> [@KPaul20005](#):
>
> but I am not sure if this is the newest version.

It’s the newest version that I’ve pushed but there will be changes in the nearish future to handle other dongles.

---

<div class="post-metadata">

**Author:** ![KPaul20005](https://community.openhab.org/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@KPaul20005](https://community.openhab.org/u/KPaul20005)\
**Post date:** [November 13, 2016, 3:47pm UTC](https://community.openhab.org/t/zigbee-binding/15763/5 "2016-11-13T15:47:14Z")

</div>

I still have the problem that I get the same error as @elevation and my item changes to offline state. What can I do to bring my thing online? I also tried to specify the thing in the configurations file but this does not work either.

---

<div class="post-metadata">

**Author:** ![KPaul20005](https://community.openhab.org/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@KPaul20005](https://community.openhab.org/u/KPaul20005)\
**Post date:** [November 20, 2016, 8:01pm UTC](https://community.openhab.org/t/zigbee-binding/15763/6 "2016-11-20T20:01:26Z")

</div>

I finally managed to solve my problem. I replaced the first line in the initialize() method of the ZigBeeThingHandler by:

```auto
final String configAddress = this.getThing().getProperties().get(ZigBeeBindingConstants.PARAMETER_MACADDRESS);

```

I copied this from the ZWaveThingHandler. It seems that the discovery service stores the address in the thing not in the config of the handler. Is this the way it should work?

---

<div class="post-metadata">

**Author:** ![derabbink](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/8c91f0/32.png) [@derabbink](https://community.openhab.org/u/derabbink)\
**Post date:** [February 10, 2017, 8:11pm UTC](https://community.openhab.org/t/zigbee-binding/15763/7 "2017-02-10T20:11:35Z")

</div>

I can confirm that changing that line like you said works for me: My Zigbee-connected things now change to “Initializing”, instead of staying “Offline”.  
However, after “Initializing” they don’t always change to “Online” but often they stay in the “Initializing” state forever. I have only ever gotten a Zigbee-connected thing (apart from the coordinator) to come “Online” once. I haven’t yet figured out why,

---

<div class="post-metadata">

**Author:** ![peterz](https://community.openhab.org/letter_avatar_proxy/v4/letter/p/7ab992/32.png) [@peterz](https://community.openhab.org/u/peterz)\
**Post date:** [February 14, 2017, 12:13am UTC](https://community.openhab.org/t/zigbee-binding/15763/8 "2017-02-14T00:13:26Z")

</div>

Hi Chris, I like to test zigbee device. but I could not find the ‘zigbee’ binding plugin. could you provide me some pointer. thanks!

---

<div class="post-metadata">

**Author:** ![chris](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://community.openhab.org/u/chris)\
**Post date:** [February 14, 2017, 7:26am UTC](https://community.openhab.org/t/zigbee-binding/15763/9 "2017-02-14T07:26:02Z")

</div>

It’s not currently available - you can compile it yourself from the PR that’s currently in the OH2 site. I should have a new version available very soon - I’m working on what I hope is the last problem with discovery not being very robust and then I’ll make it available.

---

<div class="post-metadata">

**Author:** ![dapanda](https://community.openhab.org/user_avatar/community.openhab.org/dapanda/32/71637_2.png) [@dapanda](https://community.openhab.org/u/dapanda)\
**Post date:** [April 4, 2017, 2:01am UTC](https://community.openhab.org/t/zigbee-binding/15763/10 "2017-04-04T02:01:07Z")

</div>

Hi @chris, any update on status of zigbee binding? Wondering if I should compile one from pull request, or whether you got new updated version coming soon.

Thank you!

---

<div class="post-metadata">

**Author:** ![chris](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://community.openhab.org/u/chris)\
**Post date:** [April 4, 2017, 6:22am UTC](https://community.openhab.org/t/zigbee-binding/15763/11 "2017-04-04T06:22:36Z")

</div>

Yes - the new version should be available this week for testing. I’ll post here when it’s compiled up and available.

---

<div class="post-metadata">

**Author:** ![satish-nikam](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@satish-nikam](https://community.openhab.org/u/satish-nikam)\
**Post date:** [April 5, 2017, 5:12am UTC](https://community.openhab.org/t/zigbee-binding/15763/12 "2017-04-05T05:12:42Z")

</div>

Chris, in addition to sending commands to Zigbee end devices, are you going to support asynchronously updating item state when devices are operated manually? We are struggling to implement attribute changes on end devices.

## regards,

Satish

---

<div class="post-metadata">

**Author:** ![chris](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://community.openhab.org/u/chris)\
**Post date:** [April 5, 2017, 6:15am UTC](https://community.openhab.org/t/zigbee-binding/15763/13 "2017-04-05T06:15:36Z")

</div>

The binding does attempt to configure reporting in devices - I’m not 100% sure that it’s working at the moment, but it is planned to have this supported, yes. Of course this does require that end devices actually support reporting 😉

---

<div class="post-metadata">

**Author:** ![satish-nikam](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@satish-nikam](https://community.openhab.org/u/satish-nikam)\
**Post date:** [April 5, 2017, 7:07am UTC](https://community.openhab.org/t/zigbee-binding/15763/14 "2017-04-05T07:07:03Z")

</div>

Thanks Chris. We have few zigbee end devices and are happy to test your binding with these devices.

## regards,

Satish

---

<div class="post-metadata">

**Author:** ![chris](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://community.openhab.org/u/chris)\
**Post date:** [April 11, 2017, 11:02am UTC](https://community.openhab.org/t/zigbee-binding/15763/15 "2017-04-11T11:02:35Z")

</div>

I’ve not forgotten about this - I’ve been tidying up some Ember code and have one initialisation issue to resolve with the TI dongle before I can make this available…

---

<div class="post-metadata">

**Author:** ![Mike\_Bagdanoff](https://community.openhab.org/user_avatar/community.openhab.org/mike_bagdanoff/32/39368_2.png) [@Mike\_Bagdanoff](https://community.openhab.org/u/Mike_Bagdanoff)\
**Post date:** [April 11, 2017, 6:42pm UTC](https://community.openhab.org/t/zigbee-binding/15763/16 "2017-04-11T18:42:42Z")

</div>

If this will work with SmartThings motion and door sensors I will buy a dongle and test the crap out of this. I have a large bag of useless devices that I would love to get working again as it represents hundreds of dollars of sunk cost.

---

<div class="post-metadata">

**Author:** ![mwick83](https://community.openhab.org/user_avatar/community.openhab.org/mwick83/32/29059_2.png) [@mwick83](https://community.openhab.org/u/mwick83)\
**Post date:** [April 11, 2017, 6:53pm UTC](https://community.openhab.org/t/zigbee-binding/15763/17 "2017-04-11T18:53:56Z")

</div>

I’m also very interessted in the code/a snapshot build. I got a TI dongle clone with the firmware (seems to work with zigbee4java) and some Xiaomi Mi Smart Home sensors (door/window sensor, two buttons and a temp+humidity sensor). I also got another dongle configured as a sniffer ready for debugging 😉

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [April 11, 2017, 10:03pm UTC](https://community.openhab.org/t/zigbee-binding/15763/18 "2017-04-11T22:03:25Z")

</div>

> [@Mike\_Bagdanoff](#):
>
> I have a large bag of useless devices that I would love to get working again

Hi Mike, Just out of curiosity: What’s the reason that you cannot (do not want to) use them with SmartThings anymore?

---

<div class="post-metadata">

**Author:** ![Mike\_Bagdanoff](https://community.openhab.org/user_avatar/community.openhab.org/mike_bagdanoff/32/39368_2.png) [@Mike\_Bagdanoff](https://community.openhab.org/u/Mike_Bagdanoff)\
**Post date:** [April 11, 2017, 10:50pm UTC](https://community.openhab.org/t/zigbee-binding/15763/19 "2017-04-11T22:50:49Z")

</div>

> [@Kai](#):
>
> What’s the reason that you cannot (do not want to) use them with SmartThings anymore?

Simplicity I guess, I know there may be a way to slave the SmartThings hub to OpenHAB but I honestly hated ST. Every week, it seems, my devices would stop working because of some update on the server side. At least with OH, when shit breaks, I’m the one who broke it. Plus I live in the boonies with not that great internet and so the less things that are dependent on a cloud the better.

---

<div class="post-metadata">

**Author:** ![chris](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://community.openhab.org/u/chris)\
**Post date:** [April 12, 2017, 3:22pm UTC](https://community.openhab.org/t/zigbee-binding/15763/20 "2017-04-12T15:22:32Z")

</div>

> [@Mike\_Bagdanoff](#):
>
> If this will work with SmartThings motion and door sensors I will buy a dongle and test the crap out of this.

Sorry - missed this one yesterday. I’ve not yet tested with the sensors, but I do know that it works with the SmartThings plus - I’ll try the sensors when I get a chance as I also have a couple of them here.

[Next page](https://community.openhab.org/t/zigbee-binding/15763.md?page=2)
