Update sensor.rest.markdown (#5615)

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.
This commit is contained in:
Enu Rist 2018-06-27 23:45:18 +02:00 committed by Franck Nijhof
parent e25a3f0640
commit 7836f740aa

View File

@ -237,7 +237,7 @@ sensor:
sensors: sensors:
owm_weather: owm_weather:
value_template: '{{ states.sensor.owm_report.attributes.weather[0]["description"].title() }}' 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 entity_id: sensor.owm_report
owm_temp: owm_temp:
friendly_name: 'Outside temp' friendly_name: 'Outside temp'