I’m trying to get a File sensor to work, but don’t known if the sensor is doing what i’m expecting.
I’m hoping the sensor is reading the file and if the file changes, the sensor also change.
Here’s my sensor config;
- platform: file
name: cputemperature2
file_path: /config/systemtempsensors.json
value_template: >
'{{ value_json["coretemp-isa-0000"]["Package id 0"].temp1_input }}'
#.["coretemp-isa-0000"]["Package id 0"].temp1_input }}
unit_of_measurement: '°C'
For now the sensor is showing the state “Unknown”, so it probably isn’t working.
Is there also a possiblity to debug the templating ?