Hi
If im looking inside the Developer Tool and look at the Entity Weather i get this info.
temperature: 0.1
humidity: 94
pressure: 998.1
wind_bearing: 239.4
wind_speed: 14.8
attribution: >-
Weather forecast from met.no, delivered by the Norwegian Meteorological
Institute.
forecast:
- condition: partlycloudy
precipitation: 2.3
precipitation_probability: 65.2
temperature: 2.2
templow: -2.5
datetime: '2021-01-13T11:00:00+00:00'
wind_bearing: 340.4
wind_speed: 31
- condition: partlycloudy
precipitation: 0
precipitation_probability: 7.8
temperature: 0.3
templow: -3.6
datetime: '2021-01-14T11:00:00+00:00'
wind_bearing: 13.1
wind_speed: 20.5
- condition: cloudy
precipitation: 0
precipitation_probability: 7.8
temperature: -0.6
templow: -1.2
datetime: '2021-01-15T11:00:00+00:00'
wind_bearing: 345.7
wind_speed: 7.9
- condition: cloudy
precipitation: 0
precipitation_probability: 21.6
temperature: -0.6
templow: -2.1
datetime: '2021-01-16T11:00:00+00:00'
wind_bearing: 155.8
wind_speed: 11.9
- condition: cloudy
precipitation: 0
precipitation_probability: 33.3
temperature: 0.1
templow: -1.1
datetime: '2021-01-17T11:00:00+00:00'
wind_bearing: 206.3
wind_speed: 19.4
friendly_name: Hjem
How can I in a type:conditional get the first forecast condition partlycloudy and show an icon for that, if it’s partlycloudy inside an picture-element.
Have tried, but is not working:
- type: conditional
conditions:
- entity: weather.hjem
forecast:
- condition: partlycloudy
elements:
- type: image
image: /local/icons/weather_icons/icon/partlycloudy.png
style:
top: 10%
left: 90%
width: 10%
pointer-events: none