24
Automating skylights with blinds to block direct sun
(lemmy.world)
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
So there is a calculation for what time the sun is at a particular angle in the sky which will be relative to your area and factors in the time of year etc. You could use that as it will give you a very specific to your area mathematical answer to when you should close your shades. This is a good start. If you mix that with a light sensor and set minimums that will get you the rest of the way there (no sense run blocking lightning a cloudy day.) You can just use a light sensor but it will be more erratic if you don't correct for weather and seasonal light levels.
The rest is personal to how sensitive to light changes and seasonal settings you apply to it.
As far as the physical control goes - there are several commercial devices available as well as diy solutions involving motors and 3d printing on YouTube.
Additional information regarding Home Assistant:
The sun component (which should be enabled by default) already computes the sun position for you.
Elevation and azimuth are available as standalone sensors
sensor.sun_solar_azimuth
(might be disabled by default) or as attributes on thesun.sun
entity.