Hi, sorry I’m a newbie and need your help.
I use a animated weather card. How can I set the correct icons?
Asked ist ex. partlycloudy and the source deliver: Partly cloudy
- resource: http://daten.buergernetz.bz.it/services/weather/district/4/bulletin?format=json&lang=en
method: GET
scan_interval: 60
sensor:
- name: BezirkEis
# json_attributes_path: "$.forecasts[0,1]"
value_template: "OK"
json_attributes:
- forecasts
weather:
- platform: template
name: BezirkE
condition_template: "{{ states('sensor.bezirkeis', 'forecasts')[0]['symbol']['description'] }}"
temperature_template: "{{ state_attr('sensor.bezirkeis', 'temperaturemax') | round(0, default=-99) }}"
humidity_template: "{{ state_attr('weather.your_weather', 'humidity') | round(0, default=-99) }}"
forecast_template: >
{% set ns = namespace(z = []) %}
{% for x in state_attr('sensor.bezirkeis', 'forecasts') %}
{% set ns.z = ns.z +
[{
'condition': x.symbol.description,
'precipitation': x.rainTo,
'temperature': x.temperatureMax | round(0, default=-99),
'templow': x.temperatureMin | round(0, default=-99),
'datetime': x.date,
'Rainfrom': x.rainFrom,
'RainTo': x.rainTo
}] %}
{% endfor %}
{{ ns.z }}
thx for your time!