I had an automation for my sun screens that worked fine for a few years.
However this year it seems to be broken.
I commented out the following
# - condition: template
# value_template: "{{ n.month >= 5 or n.month < 9 }}"
Now the automation does work.
So there must be something wrong with this, but I can’t figure out what has changed over the past months that makes this line to corrupt the automation.
Complet automation below.
- id: Screens achter dicht
alias: Screens achter dicht
trigger:
- entity_id: sun.sun
platform: state
- above: 14000
entity_id: sensor.lichtsterkte_achter_gem
for:
minutes: 5
platform: numeric_state
condition:
- condition: and
conditions:
- above: 14000
condition: numeric_state
entity_id: sensor.lichtsterkte_achter_gem
- above: 22
condition: numeric_state
entity_id: sensor.boven_achter_temperature
- condition: state
entity_id: cover.screen_boven
for:
minutes: 20
state: open
# - condition: template
# value_template: "{{ n.month >= 5 or n.month < 9 }}"
action:
service: cover.close_cover
entity_id:
- cover.screen_boven
- cover.screen_was_klein
initial_state: "on"
1 post - 1 participant