Hello
I’m trying to move a sensor value to an input number with the automation below. I get a zero in the input number when i run the automation, even if there is a value in the sensor. If i put annother input_number in the data_template and run the automation it works fine.
I really dont now what i’m doing wrong.
The sensor is af sensor template
You may find it helpful to test your templates in Developer Tools -> Templates, to make sure they return the value you’re expecting before using them in an automation.
When you use the line-continuation character >- you don’t need to quote the template. You need them only if the template is on the same line as the value_template option.