Well at least few screens for hint. It operates shades according to Sun brightness (Sunny over 30000 lux, Cloudy below 30000 lux). If the Sun shines more than 10 minutes constantly than Sunny Mode is triggered and shades are put down.
Create counters in CounterDown app for Sunny (Slunečno) and Cloudy (Zataženo)
Trigger flow when it gets Sunny - the counter will start (eg. 600 sec.). Such delay will avoid trigger Sunny mode when Sun goes out for only short time and starting shades too often.
and contrary Cloudy flow
Create MODE in virtual device … for me called Sunny (Slunečno) and Cloudy (Zataženo)
and finally you link the flow to each mode. When the mode is triggered on than change shades position.
I created many different flows for different Sun positions using Azimuth in SunEvents app. It allows me to have different positions of shades during the day.