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

Conditional automation based on whether switch has been activated in the last 5min or not

$
0
0

Hi all,

Sorry if this seems obvious but I am running around in circles, reading through posts of people looking at similar things, yet I can’t get anything to work here. I am looking for an elegant and simple solution, here’s my problem:

Basically I have an automation that opens my gate when I get inside the defined zone. However, at times the phone is a little slow to update location, and I end up having to open my gate with the old remote. I’ll drive in, close the gate, and then on occasion the automation will then finally be triggered, re-opening the gate…

I’ve been looking to add a condition to the automation : I need to make sure the gate status (open/close) has not been changed in the last 10min for the automation to continue.

I’ve tried helpers, I’ve tried a template (within template.yaml?) ; I’ve tried getting time/date… So far all failed miserably. “Gate status” does not have a “last_triggered” parameter.

What’s the simplest way to solve this?

Thank you for any input you may have.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 108924

Trending Articles



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