Hi Guys, i’m trying to setup a IFTTT Applet to change the temperature of my thermostats in each room, I don’t want to have an Applet for every single room so I used the google assistant trigger with a word and a number variable on ifttt. Now I’m trying to setup a script with a template for the entity_id to assign the thermostat to a room. that’s what I came up with so far, but it is not working.
script:
heizung:
sequence:
service: climate.set_temperature
data_template:
entity_id: >
{% if (room == "Wohnzimmer") %}
climate.keq0442360
{% elif (room == "Schlafzimmer") %}
climate.keq0440911
{% endif %}
temperature: '{{temperature}}'