- alias: air_conditioner_temp_cool
trigger:
- platform: state
entity_id: input_slider.air_conditioner_temp
condition:
- condition: state
entity_id: switch.airconditioner
state: 'on'
action:
- service: script.turn_on
data_template:
entity_id:
- script.air_conditioner_temp_cool{{ states.input_slider.air_conditioner_temp.state | int }}
- alias: rest temp
trigger:
- platform: state
entity_id: switch.airconditioner
from: 'off'
to: 'on'
action:
- service: input_slider.select_value
data_template:
entity_id: input_slider.air_conditioner_temp
value: ’26'