Fix error and adjust default config path in file examples (#38289)

This commit is contained in:
c0ffeeca7 2025-03-31 10:38:06 +02:00 committed by GitHub
commit aefdce6398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,8 +54,8 @@ Assuming that the log file contains multiple values formatted as JSON as shown b
This would require the following settings to extract the temperature:
- Name: `Temperature`
- File path: `/home/user/.homeassistant/sensor.json`
- Value template: {% raw %}`'{{ value_json.temperature }}'`{% endraw %}
- File path: `/config/sensor.json`
- Value template: {% raw %}`{{ value_json.temperature }}`{% endraw %}
- Unit of measurement: `"°C"`
#### Entries as CSV
@ -71,6 +71,6 @@ timestamp,temperature,humidity
This would require the following settings to extract the temperature:
- Name: `Temperature`
- File path: `/home/user/.homeassistant/sensor.csv`
- Value template: {% raw %}`'{{ value.split(",")[1] }}'`{% endraw %}
- File path: `/config/sensor.csv`
- Value template: {% raw %}`{{ value.split(",")[1] }}`{% endraw %}
- Unit of measurement: `"°C"`