# Sample xBee Zigbee HA Java Code

**URL:** <https://forums.digi.com/t/sample-xbee-zigbee-ha-java-code/18757>\
**Category:** XBee & XBee Gateway\
**Tags:** xbee-java-library, xbee, zigbee\
**Created:** [September 27, 2017, 2:54pm UTC](https://forums.digi.com/t/sample-xbee-zigbee-ha-java-code/18757 "2017-09-27T14:54:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![albe](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@albe](https://forums.digi.com/u/albe)\
**Post date:** [September 27, 2017, 2:54pm UTC](https://forums.digi.com/t/sample-xbee-zigbee-ha-java-code/18757/1 "2017-09-27T14:54:59Z")

</div>

Hi,

We are looking for sample code using the xbee java library to process messages from Zigbee HA devices. Before switching to HA profile existing code worked great getting/setting DIO digital and analog samples. It appears that using HA profile we need to process differently and branch on clusterIDs. We are looking for sample code to ensure we are using the Java Lib correctly for Zigbee HA. Any ideas?

Thank you…

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [September 27, 2017, 2:56pm UTC](https://forums.digi.com/t/sample-xbee-zigbee-ha-java-code/18757/2 "2017-09-27T14:56:34Z")

</div>

Unless someone has written sample code for that, you are going to be on your own modifying what you have to work with it.

---

<div class="post-metadata">

**Author:** ![albe](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@albe](https://forums.digi.com/u/albe)\
**Post date:** [September 28, 2017, 11:37am UTC](https://forums.digi.com/t/sample-xbee-zigbee-ha-java-code/18757/3 "2017-09-28T11:37:07Z")

</div>

Thanks… Does anyone know how to send the CIE address from xBee configured as HA coordinator?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [September 28, 2017, 11:42am UTC](https://forums.digi.com/t/sample-xbee-zigbee-ha-java-code/18757/4 "2017-09-28T11:42:21Z")

</div>

That would need to be done via a ZDO Explicit API frame.
