I am trying to automate setting of the target temperate on my Nest via an input_number on the UI, but I get a syntax error on my automatoion.
- alias: Nest Manual Heating Control
trigger:
- platform: time_pattern
hours: "*"
minutes: "*"
condition:
condition: and
conditions:
- condition: time
after: '08:20:00'
before: '23:00:00'
- condition: template
value_template: >
{{ states('sensor.nest_temperature')| float < states('input_number.min_temperature')| float }}
- condition: state
entity_id: group.family
state: 'home'
action:
- service: climate.set_preset_mode
data:
entity_id: climate.nest
preset_mode: 'none'
- service: climate.set_temperature
data_template:
entity_id: climate.nest
hvac_mode: heat
temperature: '{{ states('input_number.max_temperature') | float }}'
Here is the error:
2021-02-21 08:58:24 ERROR (SyncWorker_0) [homeassistant.util.yaml.loader] while parsing a block mapping
in "/config/automation/nest_heating_control.yaml", line 25, column 9
expected <block end>, but found '<scalar>'
in "/config/automation/nest_heating_control.yaml", line 27, column 34