Dear
Recently I bough a tado ° Smart AC Control V3+ .
I am able to give my rather old Daikin airconditioning instructions via Home Assistant.
Next to that I can write a script to activate my airconditioning in cooling mode with additional parameters.
SCRIPT " script.activeer_airco_kamer_1"
activeer_airco_kamer_1:
sequence:
- service: climate.turn_on
target:
entity_id: climate.kamer_1 - service: climate.set_temperature
target:
entity_id: climate.kamer_1
data:
temperature: 19
hvac_mode: auto - service: climate.set_swing_mode
data:
swing_mode: ‘ON’
target:
entity_id: climate.kamer_1
mode: single
alias: activeer airco kamer 1
icon: hass:air-conditioner
stop_airco:
sequence: - service: climate.turn_off
target:
entity_id: climate.kamer_1
mode: single
alias: stop airco
icon: hass:air-conditioner
So far so good but I want to launch this script through automatisation as soon it gets warmer than 22 degrees in the room. Eventually somewhere between sunrise and sunset.
AUTOMATION
alias: slaapkamers koel houden
description: 'De airconditioning activeren bij warme dagen ’
trigger:
- platform: numeric_state
entity_id: sensor.kamer_1_temperature
above: ‘22’
condition: - condition: sun
before: sunset
after: sunrise
action: - service: script.activeer_airco_kamer_1
mode: single
This looks easy but it does’nt work. I did check the sensor.kamer_1_temperature value and it’s above 22°C for the moment, no action. What do I forget?
Thanks in advanced for yours assistance.