I am implementing a thermostat for two heating systems (gas and solar powerd AC). I defined three intervals during the day with different temperature limits. The actions must change the values of these temperature limits. In pseudocode, for one time interval, what I want to do looks like this:
input_number.temp_low = sensor.temp_dim_low
input_number.temp_target = input_number.temp_dim
input_number.temp_high = sensor.temp_dim_high
Help me please with the syntax of the automation. This is not working:
- id: '1645615891045'
alias: Temperature Morning
description: ''
trigger:
- platform: state
entity_id: binary_sensor.dim_c
from: 'off'
to: 'on'
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.temp_low
data: '{{ states(''sensor.temp_dim_low'') | float }}'
- service: input_number.set_value
target:
entity_id: input_number.temp_target
data: '{{ states(''input_number.temp_dim'') | float }}'
- service: input_number.set_value
target:
entity_id: input_number.temp_high
data: '{{ states(''sensor.temp_dim_high'') | float }}'
mode: single