I actually try to get to an automation but stuck somewhere in the process. Maybe there is a good Samaritan who can help me
I have 3 covers which needs to get open at a certain windspeed (between 35 and 55 km/h)
I currently don’t know where to start. In my old automation software there where if/then routines and a simple “Click” Editor. In HA I see the Automation configurator and in the documentation text based automations. A little confused for a beginner
I don’t have a complete solution but I offer you this example as a starting point. One automation opens all three covers and the other two close them.
For open_jalousie, its trigger is activated when the wind_speed exceeds 35 for at least 6 minutes. The "for at least 6 minutes’ is optional. It’s purpose is to avoid ‘false-positive’ situations where the wind_speed exceeds 35 but only momentarily. I chose 6 minutes because the DarkSky Sensor’s default scan_interval is every 2 minutes (so at least 2-3 consecutive wind-speed readings must exceed 35).
The other two automations close the covers depending on whether wind-speed is above 55 or below 35.
I don’t use the DarkSky Sensor so double-check if this is the correct entity_id: sensor.dark_sky_wind_speed
Wow! Thanks a lot! This seems pretty simple! No worries about the sensor. This is temporary as my “Hardware” Windsensor will be installed on Wednesday.
I assume in a future setup I can also “lock” my wall switches with automations?
Let’s say if the windspeed exceeds a certain value nobody is allowed to lower the cover manually?
guys one more thing: Do I need to put a script behind an automation which checks it periodically or is this a true automation? Means there is a constant check for the wind speed?
Hm…than something went wrong. I altered the automation so that I have a test setup. It worked exactly two times: when I launched it manually and as I restarted HA
This is what I get when I put it through the automation editor in Lovelace UI. I had only iPad Access throughout the day, where is it a PITA to type (especially if you’re holding one of your kids )
Here are the screenshots (Trigger, Conditions, Action) The values are only for testing purposes
As mentioned the automation is working flawlessly- thanks again for your support.
Now I want to improve it and have several requirements:
As you’ve seen I put a notification there. The issue is the following: If the windspeed goes above the threshold the automation is triggered. If it’s now slowing down and gaining speed a few minutes later I receive the notification again. Is there a way that this doesn’t happen? I had also the Idea to trigger that automation only when the covers are closed. Is there a way to do this in home assistant even if they are 25 of 60% closed?
Talking about notifications. As Home Assistant is able to send actionable notifications it would be great to receive one after the winds slown down which asks me if I would like to close the blinds again. The trigger shouldn’t be the pure windspeed as the threshold will be reached several times.