basbruss / adaptive-cover

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

Add lux/irradiation/temperature tests for Calculated position #112

Closed mguyard closed 4 months ago

mguyard commented 6 months ago

Checklist

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

Today is a cloudy day at home, but integration close to 6% my covers where sun is in front. But in fact, we have no sun really to generate glare.

Describe the solution you'd like

Ability to add condition on lux for normal mode CleanShot 2024-04-17 at 15 53 04

I also think a external temperature trigger can be also useful to allow to manage energy saving also in normal mode or climate mode with presence. For example, if the day is hot, in addition to manage glare, we will be able to block room temperature increasing. Something like this (addition is in red) : image

When we need to do ecologic effort to save our planet, i think this can be useful for many people.

Describe alternatives you've considered

As alternative i known that we can disable disable control on some context and manage position with an automation but this will complex all the cover management.

Additional context

N/A

basbruss commented 6 months ago

Normal mode is a mode that calculates the position only based on the position of the sun. For the climate mode these extra considerations can be useful, I am also planning to do something similar with irradiance. Btw if the control method is not equal to summer it also should default to the default value in climate mode if the weather condition is not equal to the ones you've selected.