# A script to check sensor last update

**URL:** <https://community.homey.app/t/a-script-to-check-sensor-last-update/63142>\
**Category:** Questions & Help\
**Tags:** homeyscript\
**Created:** [April 29, 2022, 7:44am UTC](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142 "2022-04-29T07:44:44Z")\
**Posts on this page:** 1\
**Showing post:** 50

<div class="post-metadata">

**Author:** ![Groetsels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/groetsels/32/11456_2.png) [@Groetsels](https://community.homey.app/u/Groetsels)\
**Post date:** [October 16, 2023, 3:31pm UTC](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142/50 "2023-10-16T15:31:36Z")

</div>

additional question:  
If a device is not updating this “lastseen” date itself, how do I automaticly PING this device. (with a script)  
Just about the same question like this.

> [@How to automatically ping devices and use the result](https://community.homey.app/t/how-to-automatically-ping-devices-and-use-the-result/88845/3):
>
> Yes, I can ping battery devices. Look at this: [image] Yes, there is a battery status. But this doesn’t help much if the device stops communicating because of an error. The problem here was multiple problem. The chip itself died and it drained the batteries empty after just 30 days.

 ![ikea-routers-ping](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/6/56e2a0d6f12fc03d69df601b78e7a4c9a7783311.jpeg)

---

_[View the full topic](https://community.homey.app/t/a-script-to-check-sensor-last-update/63142)._
