Hello, I am trying to create my first automation to turn on my Daikin A/C when the room temperature drops below 19°C and turn it off when it reaches 23°C, as long as I am at home and the time is not between 10:00 PM and 7:00 AM. However, I can’t get it to work—it simply doesn’t start. If I run it manually, it performs the task, but I don’t know where the error might be. Here is my YAML. Help would be welcome.
alias: Control A/C Daikin según temperatura y presencia
description: >-
Enciende o apaga el A/C según la temperatura y si estás en casa, excepto entre
las 22:00 y las 7:00
triggers:
- entity_id: sensor.daikinap78427_climatecontrol_room_temperature
below: 19
trigger: numeric_state
- entity_id: sensor.daikinap78427_climatecontrol_room_temperature
above: 23
trigger: numeric_state
conditions:
- condition: state
entity_id: person.marcos
state: home
- condition: time
after: "07:00"
before: "22:00"
actions:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.daikinap78427_climatecontrol_room_temperature
below: 19
sequence:
- target:
device_id: ed48c3255d7ae1be660885baf9007626
data:
hvac_mode: heat_cool
action: climate.set_hvac_mode
- data:
message: >-
El aire acondicionado se ha ENCENDIDO porque la temperatura bajó
de 19°C.
action: notify.mobile_app_iphone_de_marcos
- conditions:
- condition: numeric_state
entity_id: sensor.daikinap78427_climatecontrol_room_temperature
above: 23
sequence:
- target:
device_id: ed48c3255d7ae1be660885baf9007626
action: climate.turn_off
data: {}
- data:
message: >-
El aire acondicionado se ha APAGADO porque la temperatura
alcanzó los 23°C.
action: notify.mobile_app_iphone_de_marcos
mode: single