I have an automation that have 2 conditions, and not working…
I want that after 20:15 and less 30 minuts the sunset, my covers close in my house.
Can anyone help me why this automations with this 2 conditions, dont work ?
Thanks in advance. Ricardo Carmo
This is my code:
- id: '9_001_2'
alias: Fechar Estores Janelas
trigger: []
condition:
condition: and
conditions:
- condition: time
after: '20:15'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: sun
after: sunset
after_offset: "-0:30:00"
action:
- data:
entity_id: cover.janela_ricardo_cover
service: cover.close_cover
- data:
entity_id: cover.janela_princesas_cover
service: cover.close_cover
- data:
entity_id: cover.janela_sala_cover
service: cover.close_cover