I have an automation that fires whenever I exit an area. Works fine, but annoying when I’m just passing by into the same area without the intent to fire the automation (sends a notification to my wife that I’m on my home).
I would like to add a condition that ensures that I have been in that area for at least 30 minutes to fire the action. Since the automation triggers by me leaving the area I want to check, I’m not sure about the best way to go about this.
I saw some other topics mentioning History Stats, but I’m curious to what the best and simplest solution would be?
Yes, once you leave the zone the sensor is set to 0. Maybe a better option, since your automation triggers off leaving the zone, would be just a template condition that references the previous last_changed.