#Prevent automation re-trigger

1 messages ยท Page 1 of 1 (latest)

little kraken
#

Hey! I have an automation that whenever my cats jumps on my kitchen counter, my google speakers announces it. I have a camera setup with Frigate which detects if the cat is there. I have been using Node-red for this and trying to convert to fully built-in HA automation.
For the most part the built-in HA automation works, the trigger that I have is if the Counter camera changes from Clear to Detected, then TTS to my google speaker group.
My problem is that, sometimes the automation keeps re-triggering non-stop .. like 5-10 times in a row .. the TTS message is not even done talking, it will start over again because of the re-trigger.
I tried to put a 1 minutes delay on the end of the automation, but it just keeps re-triggering to the start of the automation.
Is there an automation that once my cat is detected for the first time then it will TTS to my speaker --> then wait like 1 minute --> check again if the cat is still in the counter --> if the cat is still there, only then it will allow to re-trigger the automation?
I just want my automation to complete first, cooldown of 1 minutes, then re-trigger if needed.
Thanks!

fluid escarp
#

Is the automation set to mode: single?

little kraken
#

honestly, I'm new to the built-in HA -- where can I check that? I just did Create Automation then added the trigger, put some conditions, then do action

fierce kindle
fluid escarp
#

Single should be the default.

fierce kindle
#

i have an automation that tts's "Warning, Please ensure cup is in coffee machine" when the cofee machine starts doing stuff then have a delay on the end to keep it from spamming

little kraken
#

Do I have the SINGLE mode from the WHEN?

fierce kindle
#

no, 3 dots in the top right

#

next to the traces button

#

dropdown appears and change mode is on it

little kraken
little kraken
fluid escarp
#

the delay should stop it from retriggering.

fierce kindle
#

whats the "wait for trigger" look like?

fierce kindle
#

oh its not doing anything

#

if you just want a delay then change that from a "wait for trigger" to a delay

#

something like that will make it sit for 10 mins blocking retrigger

little kraken
#

ohhh

#

๐Ÿคฆโ€โ™‚๏ธ

#

something like this?

fierce kindle
#

yeah.
you could use wait for trigger to do something like
wait for there to be no cat for 45 seconds or 10 minutes to pass
if you wanted to

#

but if your just looking to stop spam more often then every x time then theres no neeed to overcplicate it

#

my cofee machine one i mentioned earlier waits until the coffee machine has used no power for 5 minutes OR 15 mins has passed

fluid escarp
#

surprised wait_for_trigger with no trigger is not an error ๐Ÿ˜…

#

at very least I would expect it to wait

#

till timeout

fierce kindle
little kraken
#

my cats are sleeping right now so Ill try it when they wake up haha

fierce kindle
little kraken
#

yup, it is actually really good! I'm slowly converting my node-red automation .. and holy cow .. I can't even remember doing a lot of the things there .. its like a spaghetti

fierce kindle
#

at first you might find the way your automations flow could be a bit messy but as you learn more about the building blocks they will become more organised.

dont feel bad about rewriting an automation if it looks a mess

#

the mroe organised the easier to troubleshoot

little kraken
#

Yup, I've been watching a lot of tutorials too and I can't believe I missed the delay part!

#

Hopefully this works out when I test it in a bit!

fierce kindle
little kraken
#

yup exactly what happened!

fierce kindle
#

getting stuck because you don't know the right keyword happens more often they people care to admit ๐Ÿ™‚

#

people call things different things and with translations it gets confusing too

#

beta channel had one earlier with someone who couldnt find the new card to put time on dashboard becasue they were looking for "time" instead of "clock" ๐Ÿ˜›

inner geyser
#

it might be helpful to have some sort of fuzzy search for things like this

fierce kindle
silk turret
summer aspen
silk turret