I have a really twitchy motion sensor (by design), I’d like to make it less sensitive during certain times of the day but you can only adjust the sensitivity by turning a dial on the device itself and not remotely through software .
It will move from clear to detected on a hair trigger, for a fraction of a second, and then reset itself for another go. So someone walking across a room might trigger it dozens of times (I want it like this, it was brought for this feature, but not all of the time).
To counter this I’d like to limit the frequency that the automation attached to the motion sensor fires between two periods of time.
For example, if the motion sensor trips and triggers the automation between two periods, I’d like that automation to fire off as fast as HA will possibly allow as often as it will possibly allow. No limits, no restrictions.
But outside of this times I’d like that automation to perform its action one time and then wait 30 seconds before it can be triggered again. So a movement in that area will only trigger the automation once or twice.
Is this as simple as putting a Wait instruction after the last action, or will this simply cause automations to stack up in memory and keep going off until the last one has been cleared or the system runs out of memory?
Will a wait function cause me more problems than it solves, or is this not how it functions at all?
I’m looking for the simples and most basic solution with as few components as possible and as little code as possible, no need for flexibility. Just a blanket “as fast as possible” and “not more than once every 30 seconds”.