Please help to clarify why this automation does not work.
It was supposed to close shutters when sunset is below specific elevation level when selected lights are turned on.
It worked several times then stopped. Have no idea why…
- id: '1587207743258'
alias: Shutters down when Living room Light on close to SunDown
description: ''
trigger:
- below: '2.40'
entity_id: sun.sun
platform: numeric_state
value_template: '{{ state.attributes.elevation }}'
condition:
- condition: or
conditions:
- condition: state
entity_id: light.led_gostinaia
state: 'on'
- condition: state
entity_id: light.svet_v_koridore
state: 'on'
action:
- data: {}
entity_id: cover.zhaliuzi_sosed
service: cover.close_cover