This commit is contained in:
Fabian Affolter 2016-07-17 15:12:42 +02:00
parent c919bfc277
commit 5558d98567
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -65,7 +65,7 @@ sensor:
platform: template
sensors:
sun_state:
value_template: "{% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}"
value_template: {% raw %}"{% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}"{% endraw %}
friendly_name: 'Sun state'
```