I’ve been successful setting up a basic time schedule to close my Motion roller blinds at 4 pm from Sept to May, but would like to only have them close if the cloud coverage is less than 30%. Below is the yaml for this automation, but the blinds will not close when OpenWeather shows anything below 30%. Is there something wrong with the way I have this set up? I’m pretty much a novice and learning as I go, so thanks in advance!
The sun.sun entity also has elevation (angle above/below the horizon) and azimuth (horizontal angle of the sun). You can use those to work out if the sun is likely to be coming directly through the window.
You’ll need to do some experimentation, checking the values (in Developer tools → States) when the sun is and isn’t coming through the window.