mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Fix value_template
This commit is contained in:
parent
e9c3a855db
commit
a8084b934f
@ -65,7 +65,7 @@ sensor:
|
|||||||
platform: template
|
platform: template
|
||||||
sensors:
|
sensors:
|
||||||
sun_state:
|
sun_state:
|
||||||
value_template: {% raw %}"{% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}"{% endraw %}
|
value_template: {% raw %}'{% if is_state("sun.sun", "above_horizon") %}up{% else %}down{% endif %}'{% endraw %}
|
||||||
friendly_name: 'Sun state'
|
friendly_name: 'Sun state'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user