basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.71k stars 127 forks source link

Integration with PWS solar sensor #904

Open ki4hrg opened 5 months ago

ki4hrg commented 5 months ago

It would be fantastic for AL to integrate with a luminence or solar radiation entity (likely part of a PWS device, but could also be a standalone device I imagine) to adjust to real-time lighting conditions rather than simply sunrise and sunset. This would allow AL to account for, for instance, cloudy conditions, or locations where the geography causes it to get light later than sunrise or dark earlier than sunrise.

For point of reference, my Ambient Weather WS-2000 definitely reports solar luminence (in lx) and radiation (in W/m2), and from what I've gathered this is a standard sensor on most PWS units.