Logic of adjusting shutters to lightlevel [more complicated than it seems]

I would not recommand using Statistics sensor. Or maybe it has changed. But I tested it one year ago the computed average value was not a temporal value !!!
For exemple : let’s say illumination is 0 for 9 minutes and then 10 for 1 minute, the output average over the last 10 minutes would be “5” with Statistics !!

Average Sensor is much more recommanded :
Average Sensor - Share your Projects! / Custom Components - Home Assistant Community (home-assistant.io)
From the previous example, the output average over 10 minutes would close be “1” with this component.

Or was at least… Maybe Statistics has evolved.

2 Likes