mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
erorrs with degree symbol (#2973)
I was unable to get the examples above working when using that degree symbol in the unit of measurement, removing that symbol fixed the problem. I did try pasting in a fresh degree symbol, and even tried using one from the HASS front end, but that didn't work. However, this example has been here for a long time and I can't find any other cases of complaints, so I figured i'd add a warning in the comments in case anyone else has the same problem.
This commit is contained in:
parent
35e2ff8b17
commit
12fd562361
@ -53,6 +53,7 @@ sensor:
|
||||
- platform: command_line
|
||||
name: HD Temperature
|
||||
command: "hddtemp -n /dev/sda"
|
||||
# If errors occur, remove degree symbol below
|
||||
unit_of_measurement: "°C"
|
||||
```
|
||||
|
||||
@ -65,6 +66,7 @@ Thanks to the [`proc`](https://en.wikipedia.org/wiki/Procfs) file system, variou
|
||||
- platform: command_line
|
||||
name: CPU Temperature
|
||||
command: "cat /sys/class/thermal/thermal_zone0/temp"
|
||||
# If errors occur, remove degree symbol below
|
||||
unit_of_measurement: "°C"
|
||||
value_template: '{% raw %}{{ value | multiply(0.001) }}{% endraw %}'
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user