#How to cooldown automation with few triggers?

1 messages · Page 1 of 1 (latest)

restive iris
#

Hi everyone, I got notifications automations for my main door, the main sensor [aqara] is inconsistent sometimes so i have added some sensors from my smart lock which indicates if door is open or closed.

Sometimes it takes the triggers few seconds to trigger themself which means the automation already running. and I'm getting those warnings in my Logs.
How can I prevent these from happening?

Door Open YAML
http://pastie.org/p/5Dwcd5tVc6P40pa1UKbACc

Door Closed YAML
http://pastie.org/p/3NqR7ovMfGkNYN89Se8Ckw

They built different but the warning happens on both of them.

TY for help!!

ivory schooner
#

That is to say... things are working fine, you just don't want to see the warnings? That's what it sounds like, since it's set up as single, which allows 1 concurrent execution.

You can set the automations max_exceeded property to silent if you'd like to suppress those

https://www.home-assistant.io/docs/automation/modes/

Home Assistant

How to use and configure automation modes.

restive iris
ivory schooner
#

You've got 3 triggers there... which is likely why you're getting multiple

#

You can add a delay at the end to basically introduce a cooldown

#

I'm also not sure that your trigger condition is doing anything for you, since you've enumerated all of your triggers there

#

I'd say the template condition is questionable as well

restive iris
ivory schooner
#

I told you how to suppress them

restive iris
#

So what template condition should I put in to prevent 3 notifications? Thanks for helping

ivory schooner
#

I'd likely go the cooldown route if you want to have multiple triggers for the same notification, but don't actually want the same notification multiple times within X amount of time