mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
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:
parent
e25a3f0640
commit
7836f740aa
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user