'Simple' and properly working system for automatic sunscreens

Hello,

I am willing to share complete flows, however I don’t know how to do that.

So, my automatic sunscreen system has 2 global conditions: a certain temperature in sunlight need to be reached which is 25 degrees in my case, and the sun need to shine. Normally when the sun temperature gets higher than shadow temperature it starts to get sunny. However my condition is 6 degrees difference between sun and shadow to enable “modus sunscreens” and when the difference gets less than 3 degrees the “modus sunscreens” is disabled. This is to avoid too much activity of sunscreens.

So, each condition sets a boolean to True when its conditions are reached. When both booleans are True “modus sunscreens” will be enabled. The app “Virtual Devices” is very useful to do this, because Virtual Devices modus can be used as flow trigger to actually close screens. Than I have for each sunscreen two flows: one for closing and one flow for opening. A condition for closing is always the time of the day (closing is not required when the sun doesn’t heat up that particular window).

The measurement of temperatures is a tricky one, because with that you can adjust the general activity of closing/opening screens also. The formula I use for averaging temperatures is:

round((((11*variable ‘average sun temp’)+actual sun temp)/12,2)

The result of this formula updates the Better Logic variable ‘average sun temp’ which is subsequently used in the conditions flows.