I’d like to create an automation that checks if a window is open but continually checks up to two times. The first time would be after 10 minutes then sends a message, then the second time 30 minutes and sends another message if the window is still open. I have an entry sensor trigger already but not sure how to do the rest.
Being new to HASS I’ve only been able to get to the send once and check status part. I saw there is a ‘repeat’ function but it didn’t seem to work properly. Image 2022-02-08 at 4.15.28 PM
My sensors are 443MHz RF. These are not integrated directly into HA, but through a sonoff bridge that receives the RF code and updates a home assistant “latest code” text sensor.
Then I defined one variable for each of my sensors, holding the current state as it value and the on/off codes as attributes. When then RF code received changes i do a match and update corresponding variable representing my sensor. That is why I use the variables
Thanks, the reason to avoid long delays in automations is that the longer the delay the more likely it could be interrupted by reloading automations or restarting home assistant. In this case this will mean the second notification may never happen if you use a delay.
Using two triggers, the times may be reset by a restart/reload but the notifications will still happen.
For time critical situations there is a method to use a timer and a routine to restore the timer after a restart (automation reloads aren’t an issue for timers). The overhead for doing this is not really warranted in this situation though. Here’s the link for interest’s sake https://community.home-assistant.io/t/restore-active-paused-timers-after-a-restart/274439