Hello everyone,
I am currently in the process of automatically controlling my roller shutters with HA.
But now there are some challenges.
I would like to briefly explain to you what I am currently doing.
This is how I currently lower my roller shutters:
alias: Rolladen Küche runter
description: ""
trigger:
- platform: time_pattern
minutes: /15
condition:
- condition: state
entity_id: input_boolean.rolladen_automatik
state: "on"
- condition: template
value_template: >-
{{ not state_attr('automation.rolladen_alle_hoch_wenn_sonne_hinter_haus',
'last_triggered').day==now().day }}
enabled: true
- condition: numeric_state
entity_id: sensor.sun_solar_azimuth
above: 58
- condition: numeric_state
entity_id: sensor.sun_solar_elevation
above: 7
- condition: numeric_state
entity_id: sensor.netatmo_haus_buro_og_aussen_og_temperature
above: 10
- condition: or
conditions:
- condition: state
entity_id: sensor.ort_condition
state: sunny
- condition: state
entity_id: sensor.ort_condition
state: partlycloudy
- condition: state
entity_id: sensor.ort_condition
state: cloudy
enabled: true
- condition: numeric_state
entity_id: cover.homematicip_rollladen_kuche
attribute: current_position
above: 20
action:
- service: cover.set_cover_position
data:
position: 18
target:
entity_id:
- cover.homematicip_rollladen_kuche
mode: single
This works so far without any problems.
But now I have several automations that raise my shutters again.
If outside is cooler than inside:
Automatic roller shutter activated
Cooler outside than inside
If bad weather outside:
Automatic roller shutter activated
Weather is not sunny or partly cloudy or cloudy
Outside below 25°C
When the sun has sunk behind the house:
Automatic roller shutter activated
Sun altitude below 12 °
Outside below 25°C
When sun has set:
Automatic roller shutter activated
sun has set
I didn’t want to post all the codes for booting right away, otherwise it would have been so huge
My problem is now. The shutters came down this morning as requested. When the outside was cooler than the inside, they have been raised. 15 minutes later my automation shut down . In terms of content, this is of course logical. Now I have added this condition to my shutdown automation:
{{ not state_attr('automation.rolladen_alle_hoch_wenn_aussen_kuhler', 'last_triggered').day==now().day }}
Of course, the shutters wouldn’t have come down again today.
But my problem now is. Let’s assume my roller shutters come down. It becomes cooler outside than inside and this causes the roller shutter to go up again. But now it would get extremely warm outside again. With the current automation, the roller shutter would no longer go down.
Now I would be interested to know how you implement this for yourself?