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 · 6 comments
Open

Feature Request: cover close winter mode #113

tco99ttocs opened this issue Jul 19, 2024 · 6 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

{% 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 %} {{ (state_attr('sensor.Weather_Hourly_forecast', 'forecast')|selectattr('datetime', 'lt', trise.isoformat() )|selectattr('datetime', 'gt', tsett.isoformat() ))| map(attribute='temperature') | list | min}}

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

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

3 participants