adaptive-cover icon indicating copy to clipboard operation
adaptive-cover copied to clipboard

“Outside temperature threshold” explanation

Open SirSheik opened this issue 1 year ago • 6 comments

What version of Adaptive Cover are you using?

1.4.3

What version of Home Assistant are you using?

2024.8.3

Checklist

  • [X] I have filled out the issue template to the best of my ability.
  • [X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • [X] This issue is not a duplicate issue of currently previous issues..

Describe the issue

Hello. Sorry, could you explain where in the flow affects the setting of the field “Minimum outside temperature for summer mode”? In the documentation it indicates: If the minimum outside temperature for summer mode is set and the outside temperature falls below this threshold, summer mode will not be activated. I am noticing that now that it is getting colder, even though the outside temperature is lower than the set threshold, the vertical blinds continue to lower as they usually do in summer, even though the operating mode on each blind indicates “winter”. This also happens if the indoor temperature is lower than the set comfort temperature. Could you please explain how this setting affects the algorithm? Maybe there is some detail that I am not taking into account or understanding. Thank you very much for your time

Reproduction steps

  1. Outdoor Temperature Threshold: 22ºC
  2. Configure an external sensor in the integration Image 304
  3. The integration indicates that the operating mode is “Winter”. Image 306
  4. The outside temperature is lower than the set threshold temperature. (Outdoor temperature) Image 307 Indoor temperature below the set comfort threshold Image 308

But the louvers continue to lower as in summer.

Diagnostics dump

No response

SirSheik avatar Sep 12 '24 07:09 SirSheik

Hi, the exact same problem appears in my setup. I there a solution to this question? Thank you for any help!

bonhauser avatar Oct 28 '24 08:10 bonhauser

Same issue here. I had to disable the integration because of this unfortunately.

fedorkleber avatar Oct 28 '24 10:10 fedorkleber

Same issue here. I have tried numerous configuration options. Mine is an awning, it shows it is working in winter mode, but the awning still tries to go out everyday as if it was in intermediate mode.

reotto613 avatar Nov 01 '24 19:11 reotto613

I had the same issue, before giving more details, I would to congratulate @basbruss for the amazing work on this integration - I have tried lot of different integrations but none gave such good results as this one.

the author explained in the readme that this integration purpose is mainly anti-glare. so I believe this is why the shutters close in winter like they do in the summer, taking this assumption in consideration this means that the integration is doing what is expected. I believe that we could have an additional option to disable anti-glare in winter.

have said this, I've modified the file calculation.py and modified is_sunny as below:

    @property
    def is_sunny(self) -> bool:
        """Check if condition can contain radiation in winter."""
        
        # First, check if it's winter
        if self.is_winter:
            return False  # If it's winter, return False immediately
        # If it's not winter, proceed with the original logic

        weather_state = None
        if self.weather_entity is not None:
            weather_state = get_safe_state(self.hass, self.weather_entity)
        else:
            return True
        if self.weather_condition is not None:
            return weather_state in self.weather_condition

is just an additional check to return false every time that is winter. I just started to test a couple days ago, so far it works fine. I didn't tested this during summer, if you want to edit your file please be aware that this is not a solution, but rather a workaround that might not work for everyone.

b4st05 avatar Nov 09 '24 13:11 b4st05

From me also a Thank You @basbruss!

is just an additional check to return false every time that is winter. I just started to test a couple days ago, so far it works fine. I didn't tested this during summer, if you want to edit your file please be aware that this is not a solution, but rather a workaround that might not work for everyone.

Thanks for your tip @b4st05, your workaround is working even if it is not the solution to my underlying issue. My own programming knowledge is unfortunately to limited to contribute much.

bonhauser avatar Nov 16 '24 14:11 bonhauser

I had the same issue, before giving more details, I would to congratulate @basbruss for the amazing work on this integration - I have tried lot of different integrations but none gave such good results as this one.

the author explained in the readme that this integration purpose is mainly anti-glare. so I believe this is why the shutters close in winter like they do in the summer, taking this assumption in consideration this means that the integration is doing what is expected. I believe that we could have an additional option to disable anti-glare in winter.

have said this, I've modified the file calculation.py and modified is_sunny as below:

    @property
    def is_sunny(self) -> bool:
        """Check if condition can contain radiation in winter."""
        
        # First, check if it's winter
        if self.is_winter:
            return False  # If it's winter, return False immediately
        # If it's not winter, proceed with the original logic

        weather_state = None
        if self.weather_entity is not None:
            weather_state = get_safe_state(self.hass, self.weather_entity)
        else:
            return True
        if self.weather_condition is not None:
            return weather_state in self.weather_condition

is just an additional check to return false every time that is winter. I just started to test a couple days ago, so far it works fine. I didn't tested this during summer, if you want to edit your file please be aware that this is not a solution, but rather a workaround that might not work for everyone.

Thank you. I am new to this integration and I was wondering what I am doing wrong. But your code fixed it for me in winter mode.

geryyyyyy avatar Jan 01 '25 23:01 geryyyyyy