We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6ff37 commit 6ae0dafCopy full SHA for 6ae0daf
source/_components/binary_sensor.template.markdown
@@ -96,19 +96,6 @@ binary_sensor:
96
- sensor.kitchen_co_status
97
- sensor.wardrobe_co_status
98
```
99
-### {% linkable_title Change the icon %}
100
-
101
-This example shows how to change the icon based on the day/night cycle.
102
103
-```yaml
104
-sensor:
105
- - platform: template
106
- sensors:
107
- day_night:
108
- friendly_name: 'Day/Night'
109
- value_template: {% raw %}'{% if is_state("sun.sun", "above_horizon") %}Day{% else %}Night{% endif %}'{% endraw %}
110
- icon_template: {% raw %}'{% if is_state("sun.sun", "above_horizon") %}mdi:weather-sunny{% else %}mdi:weather-night{% endif %}'{% endraw %}
111
-```
112
113
### {% linkable_title Is anyone home? %}
114
0 commit comments