Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: cover close winter mode #113

Open
tco99ttocs opened this issue Jul 19, 2024 · 10 comments
Open

Feature Request: cover close winter mode #113

tco99ttocs opened this issue Jul 19, 2024 · 10 comments
Labels
enhancement New feature or request Low priority

Comments

@tco99ttocs
Copy link

for the colder times, it would be nice, to close the cover in the night, but not within a given time or with the sun elevation. It should be work with a given temperature or weather forcasts!

For example: If the forcast temperature of the following night or the outside temperature is below a given temperature the cover should close. In this case also negativ values should work!

@hvorragend hvorragend added the enhancement New feature or request label Jul 24, 2024
@hvorragend
Copy link
Owner

I don't know yet whether I want to implement a winter mode. But I still have a little time.

@git849376
Copy link

I would really like this function too. I have some roof window shutters on the north side and they tend to freeze when the temperature is above -5 degrees.

Thanks in advance.

@hvorragend
Copy link
Owner

Wouldn't it be easier to implement these wishes using the Force function?

@tco99ttocs
Copy link
Author

normaly everything would be possible with the force function, but the question would be how complex will be the trigger for that!
there should be 3 components for the winter mode:

  1. time based, open in the morning , close in the evening -> still implemented
  2. sun elevation, opening when sun rises, closing when sun goes down, possible with the sun integration or with the sun elevation -> its implemented with the sun elevation
  3. weather based, close if the weather forcast said it would be cold at night, so if the temperatur will be below a given one for example if the temperature will be below 6 degree in the night (using the hourly forcast) ! -> thats not implemented

Point 1 and 2 i used last winter, but if sun goes down at 5am als the covers will close at this time -> would be to early;)

To use the force function its neccessary to implement all 3 point, because force only has on/off!!

@tco99ttocs
Copy link
Author

maybe it would be possible to use the shading part of the blueprint and change the temperatur from is above to is below!

@tco99ttocs
Copy link
Author

tco99ttocs commented Sep 30, 2024

{% set trise = as_timestamp(state_attr('sun.sun', 'next_rising')) | as_datetime | as_local %}
      {% set tsett = as_timestamp(state_attr('sun.sun', 'next_setting')) | as_datetime | as_local %}
      {% if (state_attr('sensor.Weather_Hourly_forecast', 'forecast')|selectattr('datetime', 'lt', trise.isoformat() )|selectattr('datetime', 'gt', tsett.isoformat() ))| map(attribute='temperature') | list %}
      {{ (state_attr('sensor.Weather_Hourly_forecast', 'forecast')|selectattr('datetime', 'lt', trise.isoformat() )|selectattr('datetime', 'gt', tsett.isoformat() ))| map(attribute='temperature') | list | min}}
      {% else %}
      {{ (state_attr('sensor.Weather_Hourly_forecast', 'forecast')|selectattr('datetime', 'lt', trise.isoformat() ))| map(attribute='temperature') | list | min}}
      {%endif%}

this code provides the min temperature of the following night (between sun setting and sun rising)! Maybe that will help to create that feature :)

@Thorsten1982
Copy link

I’m already very happy with this blueprint. I didn’t think that this would work so well and that the shutters would come down when the sun shines through a window. This means we can sit at the dining table and not be blinded by the sun. However, I would like to refine the whole thing a bit, but I don’t know whether this will work with the blueprint. In principle, the control is supposed to prevent two things. On the one hand, you don’t get blinded by the sun and on the other hand, the rooms don’t get too hot or the plants in front of the window burn. This means that in summer when the temperature is high, shading should always take place. In autumn and winter, shading should only take place when someone is in the house or sitting at the dining table, otherwise the sun’s rays can warm up the room to save on heating costs. I’m wondering how I could implement this.

@crandler
Copy link

crandler commented Oct 7, 2024

You can use "Additional Condition(s) For Activating Sun Shading".

@Xyolyp
Copy link

Xyolyp commented Nov 19, 2024

I would like to highlight another aspect of winter mode:
Most (if not all) shutters shall not be moved by force when they are frozen and stuck. So detecting this freezing by tracking temperature, humidity and rain/snow/fog/... And not moving the shutter at all until it was warmer than x for y period should be an option as well. Maybe even dynamically since heavy snow for two days takes longer to melt from rooftop windows then slight frost due to light rain for half an hour and temperature slightly below freezing right afterwards.

@andipilz
Copy link

If I may add to @Xyolyp remark:
Yes, this is a feature element I miss. It would be good to set some "freezing temperatures" which could by as default from +1 to -5 °C as above the shade does not freeze and break when force-opened, and below -5 °C it is usually too cold and the shade (DE: Rolladen) does not freeze due to the fact that the ice sublimates. At least in my setting of the house.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low priority
Projects
None yet
Development

No branches or pull requests

7 participants