# Alarm if no update from sensor Aqara- HP23

**URL:** <https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817>\
**Category:** Questions & Help\
**Created:** [January 15, 2025, 11:30am UTC](https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817 "2025-01-15T11:30:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernt\_Erlend\_Fridell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernt_erlend_fridell/32/122551_2.png) [@Bernt\_Erlend\_Fridell](https://community.homey.app/u/Bernt_Erlend_Fridell)\
**Post date:** [January 15, 2025, 11:30am UTC](https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817/1 "2025-01-15T11:30:52Z")

</div>

I am having some problem with my Aqara temp sensors not reporting (even though the temperature have changed). I have found that the problem relates to low battery on the sensor, but the battery-feedback is rarely correct.

Therefore, I want to program a flow to alert me if a temperature sensor have not reported or updated tempereture within 4 hours. In the Homey Pro 2023, the flow card “If a device have not reported” is missing and I can’t find out how to set up this my self .

Any advice or screenshots of a working flow or script?

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [January 15, 2025, 12:47pm UTC](https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817/2 "2025-01-15T12:47:17Z")

</div>

I am using the Device capability card “Retrieve…” to check last time the sensor reported. If setting “0 min ago” it will return last seen time, compare it with your 4 hours.

 ![dc1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c012f920aff8a5cdf550eef12d24d0f03573a601.png)  
Do this every two hours e.g.

Or restart a timer for 4 hours at every sensor update.

---

<div class="post-metadata">

**Author:** ![Andy\_Henderson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andy_henderson/32/80642_2.png) [@Andy\_Henderson](https://community.homey.app/u/Andy_Henderson)\
**Post date:** [January 15, 2025, 3:31pm UTC](https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817/3 "2025-01-15T15:31:06Z")

</div>

I’d use the timer route assuming the temperature changes throughout the day. Set up a timer with the Chronograph app. Set/reset the timer for four hours on each change of temperature. Report a problem if the timer expires.

Andy

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [January 15, 2025, 5:03pm UTC](https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817/4 "2025-01-15T17:03:52Z")

</div>

> [@Bernt\_Erlend\_Fridell](#):
>
> of a working flow or script?

**Zigbee only**

> [@A script to check sensor last update](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/39):
>
> As there is for some time options to see Lastseen timestamp for Zigbee devices, here is the script for Zigbee devices only, which might be more accurate for Zigbee devices. Thanks @Caseda for your overview script wink Version 0.3 - updated for HomeyScript v. 3.5.1 Version 0.3b - fixed for THEN card (returning TEXT value), primary use-better use is for AND card though Version 0.4 - added option to filter out routers and/or end devices // Version 0.4 // Script checks LastSeen property of Zig…

**Any device**

> [@A script to check sensor last update](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/25):
>
> Updated script I posted above - added counter of non responding devices - eg, in case you would like to initiate some action based on number of not-responding devices - please note this is the version I’m using, so feel free to change relevant variables below the section // Filter devices to check Changelog : 0.1 - update - converting notReportingCount to a number - if you used previous version of script, delete tag by await tag(‘notReportingCount’, null);\* 0.2 - added filtering based on dev…

---

<div class="post-metadata">

**Author:** ![Bernt\_Erlend\_Fridell](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernt_erlend_fridell/32/122551_2.png) [@Bernt\_Erlend\_Fridell](https://community.homey.app/u/Bernt_Erlend_Fridell)\
**Post date:** [January 16, 2025, 10:07am UTC](https://community.homey.app/t/alarm-if-no-update-from-sensor-aqara-hp23/127817/5 "2025-01-16T10:07:02Z")

</div>

Thanks a lot! I will try this out!
