homeassistant
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
You could use mode: single
, and then add a 10 minute delay onto the end of the actions.
That's a good suggestion, I'll have to think on that one.
I'm using the timer helper for this sort of thing. You can have a condition in your automation for not triggering if the cool down timer is active.
I didn't know that the timer helper existed, I'll check that out!
A quick and dirty solution would be using a date input helper, that get's updated with every run and is used in a condition. But there is probably a smarter way
To me this automation seems much better suited to using the Node-RED addon. There is a built in “delay” node that can be used for rate limiting. You would set the delay node to once per hour and put it between the node watching your motion sensor, and the node flipping the light switch. Easy stuff. You could do the same with one or two more nodes to get and check the current wind speed and put that inline as well.
Keep in mind though, any kind of rate limiting/cool down makes it more likely that the lights won’t turn on when you actually want them to. For example, if you leave the house and come back after the lights have turned off, but before the cool down period expires you won’t have lights.
To me this automation seems much better suited to using the Node-RED addon.
Node Red is a decent suggestion but I'm not currently using it and I'd prefer not to add it just to handle this one thing. Someone else suggested some logic to handle the cool down and I can put the wind speed directly into the automation as a condition.
Keep in mind though, any kind of rate limiting/cool down makes it more likely that the lights won’t turn on when you actually want them to.
Yeah, that's an issue. I'm thinking that instead of a cool down it would be a better solution to either install a motion sensor into a position where it can't see the shrubbery whipping around in the wind OR to create a separate automation for nights with High Wind that just pins the lights on at 50%.