mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
fix a couple issues in sensor.command_line doc (#4330)
This fixes 2 issues: - Brightness is not measured as celsius - curly braces must be escaped with `{% raw %}`
This commit is contained in:
parent
ea7d6fd1c1
commit
bf0c79ebdb
@ -143,7 +143,6 @@ sensor:
|
||||
- platform: command_line
|
||||
name: Brightness
|
||||
command: "python3 /path/to/script/arest-value.py"
|
||||
unit_of_measurement: "°C"
|
||||
```
|
||||
|
||||
### {% linkable_title Usage of templating in `command:` %}
|
||||
@ -155,6 +154,6 @@ sensor:
|
||||
sensor:
|
||||
- platform: command_line
|
||||
name: wind direction
|
||||
command: 'sh /home/pi/.homeassistant/scripts/wind_direction.sh {{ states.sensor.wind_direction.state }}'
|
||||
command: 'sh /home/pi/.homeassistant/scripts/wind_direction.sh {% raw %}{{ states.sensor.wind_direction.state }}{% endraw %}'
|
||||
unit_of_measurement: "Direction"
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user