From 6ae0daf2d58c444544a1bd68fd31adfed34c1f9c Mon Sep 17 00:00:00 2001 From: Jamie Shaw Date: Tue, 5 Sep 2017 21:59:47 +0100 Subject: [PATCH] Remove "Changing the icon" (#3305) Text was copy and pasted verbatim from Template Sensor page, the Template Binary Sensor does not currently support the icon_template feature. --- source/_components/binary_sensor.template.markdown | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/source/_components/binary_sensor.template.markdown b/source/_components/binary_sensor.template.markdown index b09f67aab64..58922bc704b 100644 --- a/source/_components/binary_sensor.template.markdown +++ b/source/_components/binary_sensor.template.markdown @@ -96,19 +96,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 Is anyone home? %}