Would it be possible to implement a limit on how frequently a automation can trigger? I have a looping automation to mirror a esphome light to a virtual switch in smartthings. I have tried putting delay and “for” duration conditions in the automation’s. But, as my wife recently found out, if you switch all the lights off at once it causes a death loop of seizure inducing flashing through out the whole house. She was happy, lol.
Basically if i could limit the trigger rate to 1/second it would break the loop. Something I can do in node red, but not HA. I recently moved off node red due to memory leaking issues on my pi.
But that’s it. just a additional automation tool is my feature request.
Did you find a better way limit triggering since?
This workaround merely limits how often the automation action is executed, but not how often it is triggered.
I am using it as I haven’t found better way, but the automation is still triggered multiple times a second for fast changing values and each such trigger has to be evaluated, the condition checked and logged to traces.
So it practically means you have no chance to debug it (as the trace is gone before you check it) and it must be causing quite considerable load on the system.
I haven’t used this in a long while, but a quick thought that may work. Maybe as part of the action, disable the automation for a set delay, based off your requirements for a trigger limit?