Identify a device that has not updated in an hour using Node Red

I’m wondering if I can use node red to identify devices that have not checked in in a certain time period so that I can be advised that there is a problem or the battery is dead? I have a number of devices like Xiaomi motion sensors that the battery is not reported correct and I thought this may be a good way to do it?

I suppose I would need to keep the last checked in time and check to see if the device has checked in within the last hour.

Any advice to do this on Node Red is very welcome.


You can use a trigger node. It can be set up to act as a dead man switch where if it doesn’t receive input in a given amount of time it will pass on a message.