#Trying to set thermostat temperature from number helper

1 messages · Page 1 of 1 (latest)

exotic wraith
#

Hello everybody.

I am trying to implement a automation that sets the target temperature for a radiator to the value of a input_number helper at a specific time... but I always get errors that a float was expected but a string was given... I am confused by the syntax. Can anybody help me out here?

This is what my code looks like

'''
blueprint:
domain: automation
description: Sets a radiators targe temperature to a given value at a given time
name: "[Raum] Temperatur für festlegen"
input:
target_time:
name: Target time
description: The time at which the automation shall run
selector:
time:
radiator_entity:
name: Radiator (Temperature Entity)
description: The radiator for which the temperatur shall be set
selector:
entity:
filter:
- integration: zha
- domain: climate
temperature:
name: Target Temperature
description: The entity that holds the target temperature
selector:
entity:
automated_radiator_switch:
name: Controller switch
description: Switch that controls wether automation is on
selector:
entity:

triggers:

  • trigger: time
    at: !input target_time
    conditions:
  • condition: state
    entity_id: !input automated_radiator_switch
    state: "on"
    actions:
  • action: climate.set_temperature
    metadata: {}
    data:
    temperature: "{{ states(!input temperature) }}"
    target:
    entity_id: !input radiator_entity

mode: single
'''

Thanks in advance