Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102819

Need help with triggering an automation when a timestamp is X days old

$
0
0

Hello all,

I am trying to get a low-battery warning for my various Insteon Leak sensors, which talk to HA through MQTT. In addition to wet/dry, they each connect daily for a ‘heartbeat’. This shows up in HA as a timestamp entity. I pulled one battery out and sure enough, the timestamp of that sensor’s heartbeat still shows the last day it was successful. So, I need an automation that notifies me when any of those heartbeat sensors’ entities states gets to be more than 2 days ago. But it’s not formatted nicely, so I am stuck.

Right now, the State of the Entity i’m playing with says this “2022-04-22T22:48:32+00:00”.

Can anyone help me make an automation that constantly monitors those entities and fires whenever that timestamp strays further than 2 days from current time?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 102819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>