From 7097dea187f762c32673431887e3c58bfaa119f9 Mon Sep 17 00:00:00 2001 From: Joe McMonagle Date: Fri, 8 Dec 2017 10:35:56 -0500 Subject: [PATCH] Update sensor.template to show entity_id example (#4158) Right now this page has no examples using the optional entity_id field. I think we should include it in the top example because otherwise the template sensor will react to all state changes rather than just the one or two the user will care about. May also be nice to show an example of a list for the template sensor, but we do include one on the Binary Sensor Template page so maybe that's sufficient? --- source/_components/sensor.template.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_components/sensor.template.markdown b/source/_components/sensor.template.markdown index 0811978b617..c5d5aba6cee 100644 --- a/source/_components/sensor.template.markdown +++ b/source/_components/sensor.template.markdown @@ -27,6 +27,7 @@ sensor: sensors: solar_angle: friendly_name: "Sun angle" + entity_id: sun.sun unit_of_measurement: 'degrees' value_template: "{{ states.sun.sun.attributes.elevation }}"