this post was submitted on 14 Nov 2023
17 points (100.0% liked)
homeassistant
12066 readers
12 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There may be a more straight forward way to do it now, but the traditional way is to add a condition to the automation based on the automation's (or maybe the light or motion detector) last_triggered property. You need, AFAIK, to use a template for this.
A condition with something like this should make it so it can't fire more than once every hour (60 seconds times 60 minutes):
{{ (as_timestamp(now()) - as_timestamp(state_attr('automation.driveway','last_triggered'))) > 60 * 60 }}
Nice idea! It appears that this can now be done directly in the automation too.
Of course that leads to a problem where it will only trigger once an hour no matter what, which may cause a different frustration.
I'm starting to think that the best answer may be to re-position the motion sensor so that it cannot see my landscaping whipping around in the wind.