Merge branch 'current' into next

This commit is contained in:
Paulus Schoutsen 2017-09-07 07:42:43 -07:00
commit 28fd5114d6
54 changed files with 554 additions and 84 deletions

View file

@ -98,19 +98,6 @@ binary_sensor:
- sensor.kitchen_co_status
- sensor.wardrobe_co_status
```
### {% linkable_title Change the icon %}
This example shows how to change the icon based on the day/night cycle.
```yaml
sensor:
- platform: template
sensors:
day_night:
friendly_name: 'Day/Night'
value_template: {% raw %}'{% if is_state("sun.sun", "above_horizon") %}Day{% else %}Night{% endif %}'{% endraw %}
icon_template: {% raw %}'{% if is_state("sun.sun", "above_horizon") %}mdi:weather-sunny{% else %}mdi:weather-night{% endif %}'{% endraw %}
```
### {% linkable_title Washing Machine Running %}