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!
#Prevent automation re-trigger
1 messages ยท Page 1 of 1 (latest)
Is the automation set to mode: single?
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
Single should be the default.
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
no, 3 dots in the top right
next to the traces button
dropdown appears and change mode is on it
Thanks, yup it is Single
I put a delay on mine, and it still kept on spamming because I think the issue is .. my cat, sometimes, if he turns around .. Frigate will see it as "clear", then turns back around .. it goes back to "detected"
the delay should stop it from retriggering.
whats the "wait for trigger" look like?
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
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
surprised wait_for_trigger with no trigger is not an error ๐
at very least I would expect it to wait
till timeout
yeah, i guess it gets ignored
Yup, my bad .. I'm still trying to learn the built-in HA .. and trying to ditch Node red
my cats are sleeping right now so Ill try it when they wake up haha
once you learn how the puzzles pieces work and how they fit together you will find it easy enough
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
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
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!
this reminds me of this project - https://static.xtremeownage.com/blog/2023/feline-area-denial-device/
Cars, Computer, and Code.
you dont know what you dont know ๐ you searched for "wait" instead of "delay" as a keyword probably
yup exactly what happened!
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" ๐
it might be helpful to have some sort of fuzzy search for things like this
yeah a "keywords" list in the background for the purposes of searching could be nice
How do you have your Google speaker announce it?
The cast integration creates a media player for each Google speaker. You can target those with a TTS integration
Man I wish there was a way for newbies to learn this stuff. Cast integration... Do I need to add something because I have tried to create an automation and my Google speakers are not visible.