Skip to content

Commit 6ae0daf

Browse files
jamieshawdale3h
authored andcommitted
Remove "Changing the icon" (home-assistant#3305)
Text was copy and pasted verbatim from Template Sensor page, the Template Binary Sensor does not currently support the icon_template feature.
1 parent 3c6ff37 commit 6ae0daf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

source/_components/binary_sensor.template.markdown

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,6 @@ binary_sensor:
9696
- sensor.kitchen_co_status
9797
- sensor.wardrobe_co_status
9898
```
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-
```
11299

113100
### {% linkable_title Is anyone home? %}
114101

0 commit comments

Comments
 (0)