Bom dia.
Estou com um problema com uma automação que me liga o ar condicionado (ar condicionado “burro” por condutas, com relé zigbee para on/off).
Pretendo ligar o AC a determinada(s) hora(s), nos dias úteis, desde que não esteja de férias, e a temperatura interior esteja dentro de parâmetros definidos.
Não consigo que a automação arranque. Junto anexo yaml:
alias: Ligar AC
description: ''
trigger:
- platform: sun
event: sunrise
offset: '00:10:00'
- platform: time
at: '08:00:00'
- platform: time
at: '08:15:00'
- platform: time
at: '08:30:00'
- platform: time
at: '08:45:00'
condition:
- condition: and
conditions:
- condition: state
entity_id: calendar.test_ferias
state: 'off'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: and
conditions:
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.sensor_temperatura_e_humidade_temperature
attribute: temperature
above: '25'
below: '15'
- condition: and
conditions:
- condition: sun
after: sunrise
after_offset: '00:10:00'
- condition: or
conditions:
- condition: time
after: '07:59:00'
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.sensor_temperatura_e_humidade_temperature
attribute: temperature
above: '24'
below: '16'
- condition: or
conditions:
- condition: time
after: '08:14:00'
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.sensor_temperatura_e_humidade_temperature
attribute: temperature
above: '23'
below: '17'
- condition: or
conditions:
- condition: time
after: '08:29:00'
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.sensor_temperatura_e_humidade_temperature
attribute: temperature
above: '22'
below: '17'
- condition: or
conditions:
- condition: time
after: '08:44:00'
action:
- type: turn_on
device_id: 057c61eeb58035ee92f8e87d543429a3
entity_id: switch.ar_condicionado
domain: switch
mode: single
O que está errado? Agradeço ajuda!