#Stop automation being run too frequently.

1 messages · Page 1 of 1 (latest)

brave comet
#

I have an automation (camera detection) that I do not wish to run too frequently.

I have set the automation to 'single' mode and set a delay at the end of the automation for 3 minutes.

I assumed that once this automation runs, a new one would not run until at least that 3 minute delay had passed. This doesnt seem to be the case.

Are the subsequent instances of the automation being started BEFORE the first instance gets to the 'delay' part?

If so, how can i stop this from happening?

#

I was just looking into the 'current' attribute of the automation, to see if it showed 2 (or more) instances running at once.. it does not. It seems that once the automation has finished the actions (NOT including the 'delay') the value returns to 0.

I wonder why the automation is classed as being 'finished' while the delay is still meant to be running?

weary swift
#

That should work fine. Please share the automation

brave comet
#

ok, give me a moment

#

Did that work ok?

weary swift
#

Yes, it did. I don't see anything wrong with it. I suggest checking the trace for the automation and the HA logs

#

The logs should indicate if another trigger happened and the "single" mode prevent it from running

brave comet
#

i will check it again, but i sometimes get multiple messages (different) sent to Discord etc within 20 seconds.. not 3+ minutes

brave comet
#

i reformatted a bunch of it in YAML mode, and it seems to be working better.. i will monitor it over the next few days, thanks