Hi,
I am trying to set up the example from the docs that creates a RESTful sensor that fetches a weather report from OpenWeatherMap. Is this:
sensor:
- platform: rest
name: OWM_report
json_attributes:- main
- weather
value_template: ‘{{ value_json[“weather”][0][“description”].title() }}’
resource: http://api.openweathermap.org/data/2.5/weather?zip=80302,us&APPID=VERYSECRETAPIKEY
- platform: template
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_id: sensor.owm_report
owm_temp:
friendly_name: ‘Outside temp’
value_template: ‘{{ states.sensor.owm_report.attributes.main[“temp”]-273.15 }}’
unit_of_measurement: “°C”
entity_id: sensor.owm_report
owm_pressure:
friendly_name: ‘Outside pressure’
value_template: ‘{{ states.sensor.owm_report.attributes.main[“pressure”] }}’
unit_of_measurement: “hP”
entity_id: sensor.owm_report
owm_humidity:
friendly_name: ‘Outside humidity’
value_template: ‘{{ states.sensor.owm_report.attributes.main[“humidity”] }}’
unit_of_measurement: “%”
entity_id: sensor.owm_report
But the icon for owm_weather is not displayed in the frontend. I could see that if I try to customize the “owm_weather” sensor in the customize section of Configurator of Hassio, it has an autofilled value in the icon field, that points to the correct url for image at OpenWheather. But I see below a message stating that only mdi icons should be used there.
Any tip?
Thanks in advance.