Automation Help with Data Template

I had this automation that used to work however something has changed and it seems like it is no longer working. Everything seems to work and it updates my climate.thermostat to 63 but the last two don’t work and I am not sure why.

- alias: "Set Thermostat at Night in Winter"
  initial_state: 'on'
  trigger:
    - platform: time
      at: '19:00:00'
  
  condition:
    condition: and
    conditions:
      - condition: numeric_state
        entity_id: sensor.outdoor_temperature
        below: 50
      
      # - condition: state
        # entity_id: input_boolean.home
        # state: 'on'
  
  action:
    - service: climate.set_hvac_mode
      data:
        entity_id: climate.thermostat
        hvac_mode: "heat"
    
    - service: climate.set_temperature
      data:
        entity_id: climate.thermostat
        temperature: 63
    
    - service: input_number.set_value
      data_template:
        entity_id: input_number.thermostat_max
        value: "{{ 70 }}"
    
    - service: input_number.set_value
      data_template:
        entity_id: input_number.thermostat_min
        value: "{{ 61 }}"

Well, you don’t need templates for either of those, just the number will work.

Are you getting errors in your logs?

As @petro said, you don’t use a template for this. Change them to:

    - service: input_number.set_value
      data:
        entity_id: input_number.thermostat_max
        value: 70