mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Hint that problems with °-symbol is caused by configuration not saved as UTF-8 (#10673)
* Update sensor.command_line.markdown * Update sensor.command_line.markdown
This commit is contained in:
parent
a68adbbc0e
commit
02c6c8975b
@ -75,7 +75,7 @@ sensor:
|
|||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: HD Temperature
|
name: HD Temperature
|
||||||
command: "hddtemp -n /dev/sda"
|
command: "hddtemp -n /dev/sda"
|
||||||
# If errors occur, remove degree symbol below
|
# If errors occur, make sure configuration file is encoded as UTF-8
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ sensor:
|
|||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: CPU Temperature
|
name: CPU Temperature
|
||||||
command: "cat /sys/class/thermal/thermal_zone0/temp"
|
command: "cat /sys/class/thermal/thermal_zone0/temp"
|
||||||
# If errors occur, remove degree symbol below
|
# If errors occur, make sure configuration file is encoded as UTF-8
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
value_template: '{{ value | multiply(0.001) | round(1) }}'
|
value_template: '{{ value | multiply(0.001) | round(1) }}'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user