From 7836f740aa1430adb30393273ae30056a258eeb6 Mon Sep 17 00:00:00 2001 From: Enu Rist Date: Wed, 27 Jun 2018 23:45:18 +0200 Subject: [PATCH] Update sensor.rest.markdown (#5615) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example for sensor.owm_weather does not work. It must be „entity_picture_template“ instead of „icon_template“, the protocol can be „//:“ and the icon name must be lowercase because of //:openweathermap.org server is case sensitive. --- source/_components/sensor.rest.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/sensor.rest.markdown b/source/_components/sensor.rest.markdown index 0c0cc9a7ab4..d9594344e8b 100644 --- a/source/_components/sensor.rest.markdown +++ b/source/_components/sensor.rest.markdown @@ -237,7 +237,7 @@ sensor: sensors: owm_weather: value_template: '{{ states.sensor.owm_report.attributes.weather[0]["description"].title() }}' - icon_template: '{{ "http://openweathermap.org/img/w/"+states.sensor.owm_report.attributes.weather[0]["icon"]+".png" }}' + entity_picture_template: '{{ "http://openweathermap.org/img/w/"+states.sensor.owm_report.attributes.weather[0]["icon"].lower()+".png" }}' entity_id: sensor.owm_report owm_temp: friendly_name: 'Outside temp'