basbruss / adaptive-cover

An Adaptive Cover component for HomeAsisstant to control covers based on the sun's position
MIT License
112 stars 12 forks source link

Model limited sky visibility and reflective buildings #296

Open steelman opened 2 months ago

steelman commented 2 months ago

Checklist

Is your feature request related to a problem? Please describe.

While window covers limit the heat getting into a room (especially when mounted outside) they obviously limit the amount of daylight.

Describe the solution you'd like

In some situations it may be possible to avoid this if there is an object outside that casts a shadow e.g. a tree, a building a balcony or a roof over a porch. Although building a full 3D model allowing to calculate shadows is rather complicated, a simplified 2D in spherical coordinates should work as well. There are a few options for users to provide necessary data.

Information about the horizon "behind" the window may reflect the fact there is a building in front of our window which reflects sunlight into the window making it necessary to shut the blinds. Modelling reflections is complicated, because it involves not only mirror walled skyscrapers but even an ordinary white matte building on the other side of a street can reflect enough IR to raise temperature in a room. The bitmap format, however, should be able to carry information necessary to control blinds in both cases.

Describe alternatives you've considered

None

Additional context

That's it.