Nest slider for sleeping and home automation

Hi All,

I’m using a slider to set the template of my nest when I sleep and wake.

Here is what I have with the slider and the script to trigger the temperature values:

input_slider:
  slider1:
    name: Night Temprature
    initial: 20
    min: 17
    max: 22
    step: .5
    
  slider2:
    name: Day Temprature
    initial: 20
    min: 17
    max: 22
    step: .5

script:
  morning_temp:
    sequence:
      - service: climate.set_temperature
        data:
          entity_id: climate.entryway
          temperature: '{{ states.input_slider.slider2.state | float }}'
          
  night_temp:
    sequence:
      - service: climate.set_temperature
        data:
          entity_id: climate.entryway
          temperature: '{{ states.input_slider.slider1.state | float }}'

When I run the script, the Nest temp doesn’t change. I think it might be how I target the slider. I’m not sure.

Thank you for your help

You need “data_template” rather than “data” for the interpreter to evaluate those templates.

1 Like

Thanks so much! Thats what I needed to get it working.

Cheers