# How can i know if a HA device is ON or OFF

**URL:** <https://forums.digi.com/t/how-can-i-know-if-a-ha-device-is-on-or-off/21421>\
**Category:** XBee - Zigbee\
**Tags:** home-automation, python, xbee3, zigbee\
**Created:** [June 2, 2020, 5:48am UTC](https://forums.digi.com/t/how-can-i-know-if-a-ha-device-is-on-or-off/21421 "2020-06-02T05:48:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablovi96](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pablovi96](https://forums.digi.com/u/pablovi96)\
**Post date:** [June 2, 2020, 5:48am UTC](https://forums.digi.com/t/how-can-i-know-if-a-ha-device-is-on-or-off/21421/1 "2020-06-02T05:48:39Z")

</div>

Hi everyone,

Im trying to control a home automation device with an ccimx6ulsbc with yocto and an xbee3. Once the HA devices are in my network I use a python program to control them. The problem is that i cant find what message I have to send to receive the ON/OFF status of this devices.

for writting ON I use this message:

message=b’\x01\x00\x01’  
remote = RemoteZigBeeDevice(xbee, XBee64BitAddress.from\_hex\_string(mac))  
xbee.send\_expl\_data\_async(remote, message, se, de, clid, prfid)

---

<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:** [June 2, 2020, 12:23pm UTC](https://forums.digi.com/t/how-can-i-know-if-a-ha-device-is-on-or-off/21421/2 "2020-06-02T12:23:30Z")

</div>

Pablov,

I would suggest you start with sending a packet requesting the active end points on the device. This should tell you what the device is capable of providing you.

---

<div class="post-metadata">

**Author:** ![pablovi96](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pablovi96](https://forums.digi.com/u/pablovi96)\
**Post date:** [June 3, 2020, 3:21am UTC](https://forums.digi.com/t/how-can-i-know-if-a-ha-device-is-on-or-off/21421/3 "2020-06-03T03:21:17Z")

</div>

I have done that but I dont know how to understand the message that I recieve from the devices. They send a explicit RX indicator from which I can find their adresses, for example, but I cannot find what the payload means. is there any document in which this is explained?

---

<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:** [June 3, 2020, 9:59am UTC](https://forums.digi.com/t/how-can-i-know-if-a-ha-device-is-on-or-off/21421/4 "2020-06-03T09:59:13Z")

</div>

It is going to be a mixture of the Digi product manual and the Zigbee alliance document for the standard in question.

The Digi Manual for the knowing which bytes are the cluster ID and end points and the Zigbee HA manual for the actual data bits in the payload.
