Hi to all, I have this problem: I would like to save the value of the current temperature set point in a input_number field.
I think to use the automation future, but it does not trigger the change.
this is my script
#Temperatura di riferimento per Giroscale modificata
- id: 'MSPG'
alias: Modifica set point Giroscale
description: Temperatura di riferimento per Giroscale modificata
trigger:
- platform: template
value_template: "{% if (state_attr('climate.temperatura_giroscale','temperature') != (states('input_number.temperatura_ideale_giroscale') | int)) %}true{% endif %}"
action:
service: input_number.set_value
data_template:
entity_id: input_number.temperatura_ideale_giroscale
value: "{{ state_attr('climate.temperatura_giroscale','temperature') }}"