So I have been able to setup my config.yaml to read the .CSV file but it only seems to want to read it as a string. What I see on the front end is “77.7” °F, rather than 77.7 °F
If I use the | float as I have seen in other examples it reads nothing and comes back with a 0°F. Rather than “77.7” °F. So it does turn it into a number but then reads nothing.
In the other examples I have seen they wrote it as:
{{ (value.split(',')[1] | float) | round(2)}}
I am not very good with the template aspect of HA and nay help would be appropriated.
I may have to run a script to remove the quotes from the .CSV file. I have had to do this for a few things at work. Though most system are smart enough to ignore the quotes in .CSV files.
Now it is reading properly.
Now my only question is how often does HA read the file? My Weather station outputs every 12mins. so Easy enough to run the cleaning script every 12 mins.
Hello I hope someone could help me or give me a hint.
I think it has something to do with the german version or keybord layout, bcause i cant replace “”" with “”.
Invalid config for [sensor.file]: invalid template (TemplateSyntaxError: unexpected char '"' at 40) for dictionary value @ data['value_template']. Got '{{ value.split(";")[0] | replace(""" , "")}}'. (See ?, line ?).