Use Input_Slider to set temperature - (Automation; Homematic)

Hello! :slight_smile:

I’m trying to get Home Assistant up and working. At the moment I’ve got a problem with the temperature.
I try to set the desired temperature with an Input_Slider like this:

Input_Slider

input_slider:
therm_setpoint:
name: Temperature
initial: 21
min: 14
max: 30
step: 1

The Input_Slider itself works fine. But when I try to use it in an automation, it won’t let me read the variable (temperature, which is set at the moment):

Automation

  • alias: Schalte Heizung (außer Wohnzimmer) herauf, wenn jemand da
    trigger:
    platform: state
    entity_id: device_tracker.38d547313a96
    state: ‘home’
    action:
    • service: climate.set_temperature
      data:
      entity_id: climate.leq1202331
      temperature: 21
    • service: climate.set_temperature
      data:
      entity_id: climate.meq0054331
      temperature: ‘{{ states.input_slider.therm_setpoint.state | int }}’

The first part of the automation works fine (with the constant 21 degree), but it won’t use the Input_Slider to set the desired temperature. What am I doing wrong?

Thanks for help…

Greets!
Dave

Why do you have 2 services basically overriding eachother? Or is that just for testing?

To answer your question, change data: to data_template:

The 2 services are just for test purposes. :wink:

And thanks! Now it works, like I want it… :slight_smile:

Greets
Dave