Hey Guys,
I feel really stupid but I can’t get this to work & need your help.
I want to use the title of google calendar event to set a value to an input_number.
This is the (working) template:
{{state_attr("calendar.heizung_test","message") | replace (' Grad','')|float(0)}}
As you can see it returns the number 66.
But when I try to use this in a service call to set the input_number I get:
This is how I call the service:
service: input_number.set_value
data_template:
value: "{{ state_attr("calendar.heizung_test","message") | replace (' Grad','')|float(0)}}"
target:
entity_id: input_number.test_thermostat
Any help would be highly appreciated.
Cheers
Chris