Hi all. I have large picture windows in the lounge with Somfy blinds that I use for keeping the sun out. I have nowhere to put a sun sensor without it being ugly but have worked out a level of solar generation over a 15 min period that equates to sunny or cloudy.
My problem in Homey is that I want the blinds to only be down if sunny. So I have a Sunny variable (yes/no) that is set by these levels. I can get it to trigger once in each direction but if it is sunny at 1500, cloudy at 1600 and sunny again at 1700 how do I get it to go up and down in response but only between the hours of 1500 and 1830 ?
Something like this?
Variable changed → time between → variable is yes → shades down else shades up.
But you don’t want any action outside these times?
Yes, I am playing with something like this but my problem is that I don’t know the value of the variable at the start time as that will depend on the weather. Clearly I am on the right lines if only I can figure out the start point.
My timing is based on other natural shading before and afterwards
Just thought. If I manually reset the variable just before 1500 then I think you have shown a way that will work 
I thought you have a yes no variable for sunny
This flow will run when the value changed and when sunny shades go down else shades go up.
My comment was that if it was sunny before 1500 then the variable will already be yes for sunny and so will not change at 1500. By setting it to no at 1446 it will change ( if sunny) to yes after 15 minutes and so trigger the shades to come down at 1501
Could you try the Hue outdoor Motion sensor, find a spot outside to mount it
I believe that measures lux.
Might work and perhaps less ugly than something on or near the window indoors
Actually i think the Ikea VALLHORN and MYGGSPRAY also measure lux and are too waterproof
EDIT - ikea ones might only report lux when motion events trigger. Worth a check