i am trying to write the value of a variable to a file.
I am trying to use a shell sensor for it where the command is
echo $target_temperature > /home/pi/Projects/temp_controller.input
However, this only creates a file with one new line character. Seems the variable is not parsed.
Probably i could do it via the REST api if there is no other easy way.