Hello,
I have a field in my script :
fan_mode:
selector:
select:
options:
- auto
- high
- low
- medium
name: fan_mode
description: Fan speed
default: auto
example: high
required: false
Now I want to check if this field is equal to an attribute of my aircon, but that seems not to be the correct syntax…what am I missing ?
if:
- condition: template
value_template: >-
{{ fan_mode !=
state_attr('climate.airco_living_links', 'fan_mode')
}}
then:
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- service: climate.set_fan_mode
data:
fan_mode: "{{ fan_mode }}"
target:
entity_id: climate.airco_living_links