Hi all
i’m trying to make a switch that can turn on or off my heating and set a desired temperature.
But whatever I try I don’t seem to fully understand what I’m doing wrong.
Could anyone have a quick look at my yaml? thanks!
- platform: template
switches:
lyric_t6:
value_template: "{{ is_state('climate.lyric_t6', 'heat') }}"
turn_on:
service: climate.temperature
data:
entity_id: climate.lyric_t6
operation_mode: heat
temperature: 21
turn_off:
service: climate.temperature
data:
entity_id: climate.lyric_t6
operation_mode: off
temperature: 16
icon_template: >-
{% if is_state('climate.lyric_t6', 'heat') %}
mdi:fire
{% else %}
mdi:radiator-off
{% endif %}