I wish to automated an old A/C not inverter mode that never follows the internal temperature reading.
The goal is that
- during the night automatically
- if temperature below 24 the IR blaster sends OFF command
- if temperature above 26 the IR blaster sends ON command
Is the below code correct?
- alias: Air Gilma ON
trigger:
platform: time
minutes: '/10'
seconds: 00
condition:
condition: and
conditions:
- condition: time
after: '23:00:00'
before: '07:00:00'
- condition: template
value_template: '{{ states.sensor.netatmo_gilma_bedroom_temperature.state > 26 }}'
action:
- service: switch.turn_on
entity_id: switch.air_gilma
- alias: Air Gilma OFF
trigger:
platform: time
minutes: '/10'
seconds: 00
condition:
condition: and
conditions:
- condition: time
after: '23:00:00'
before: '07:00:00'
- condition: template
value_template: '{{ states.sensor.netatmo_gilma_bedroom_temperature.state < 24 }}'
action:
- service: switch.turn_off
entity_id: switch.air_gilma