# Zigbee device handler help - humidity

**URL:** <https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113>\
**Category:** Writing Device Types\
**Created:** [November 28, 2018, 7:48pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113 "2018-11-28T19:48:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Automated\_House](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/automated_house/32/99641_2.png) [@Automated\_House](https://community.smartthings.com/u/Automated_House)\
**Post date:** [November 28, 2018, 7:48pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/1 "2018-11-28T19:48:27Z")

</div>

I’m trying to write a device handler for the new Iris motion sensor. It’s a little unique compared to previous models since it supports humidity. So i’ve taken the SmartSense Motion handler, added my fingerprint and spliced in the humidity bits from the SmartSense Temp/Humidity handler. But alas, i’m not getting and humidity reports. Can someone checkout my code and see what the issue may be?

> <https://github.com/prjct92eh2/Prjct92eh2-ST/blob/master/devicetypes/prjct92eh2/iris-il071-motion-sensor.src/iris-il071-motion-sensor.groovy>

---

<div class="post-metadata">

**Author:** ![veeceeoh](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/veeceeoh/32/96174_2.png) [@veeceeoh](https://community.smartthings.com/u/veeceeoh)\
**Post date:** [November 28, 2018, 9:10pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/2 "2018-11-28T21:10:22Z")

</div>

Maybe the humidity report messages aren’t parseable by `zigbee.parseDescriptionAsMap`?

What `description: XXXXX message XXXX` debug messages are you seeing in the log output?

---

<div class="post-metadata">

**Author:** ![Automated\_House](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/automated_house/32/99641_2.png) [@Automated\_House](https://community.smartthings.com/u/Automated_House)\
**Post date:** [November 28, 2018, 9:29pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/3 "2018-11-28T21:29:30Z")

</div>

description: read attr - raw: 50920100010A200000201E, dni: 5092, endpoint: 01, cluster: 0001, size: 0A, attrId: 0020, result: success, encoding: 20, value: 1e

---

<div class="post-metadata">

**Author:** ![veeceeoh](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/veeceeoh/32/96174_2.png) [@veeceeoh](https://community.smartthings.com/u/veeceeoh)\
**Post date:** [November 28, 2018, 10:04pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/4 "2018-11-28T22:04:58Z")

</div>

`cluster: 0001` & `attrId: 0020` is battery voltage in units of _100mV_

So that’s saying the voltage is 3.0V (`value: 1e` = 30).

Perhaps if you breathe on the sensor it might encourage it to produce a humidity report, if it’s programmed to only send reports when there’s an X% change in RH. That’s a trick that works for me with Xiaomi / Aqara Temp/Humidity sensors.

---

<div class="post-metadata">

**Author:** ![Automated\_House](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/automated_house/32/99641_2.png) [@Automated\_House](https://community.smartthings.com/u/Automated_House)\
**Post date:** [November 28, 2018, 10:06pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/5 "2018-11-28T22:06:32Z")

</div>

i’ll give that a whirl when i get home. I was hoping the refresh would send it since it sent the temperature the first time. Thanks!

---

<div class="post-metadata">

**Author:** ![tpmanley](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tpmanley/32/19994_2.png) [@tpmanley](https://community.smartthings.com/u/tpmanley)\
**Post date:** [November 28, 2018, 10:40pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/6 "2018-11-28T22:40:34Z")

</div>

I think this device only has one endpoint so you should be able to remove the `[destEndpoint: 0x02]` part of this line:

> <https://github.com/prjct92eh2/Prjct92eh2-ST/blob/master/devicetypes/prjct92eh2/iris-il071-motion-sensor.src/iris-il071-motion-sensor.groovy#L290>

---

<div class="post-metadata">

**Author:** ![Automated\_House](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/automated_house/32/99641_2.png) [@Automated\_House](https://community.smartthings.com/u/Automated_House)\
**Post date:** [November 28, 2018, 10:43pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/7 "2018-11-28T22:43:04Z")

</div>

> [@tpmanley](#):
>
> I think this device only has one endpoint so you should be able to remove the `[destEndpoint: 0x02]` part of this line:

i was just reading the classic documentation (imagine that!) and tried it and it worked! for the refresh at least. Will get it through a configure when i get home. Thanks! Now wishing I would have picked up more of these when they were $13.50 on black friday…

---

<div class="post-metadata">

**Author:** ![johnconstantelo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/johnconstantelo/32/111869_2.png) [@johnconstantelo](https://community.smartthings.com/u/johnconstantelo)\
**Post date:** [November 28, 2018, 11:32pm UTC](https://community.smartthings.com/t/zigbee-device-handler-help-humidity/144113/8 "2018-11-28T23:32:55Z")

</div>

> [@Automated\_House](#):
>
> it worked!

Worked for me too, thanks!
