Hi,
I’m using a custom card but the following template is not working
entity_picture: >
[[[
if (states['sensor.netatmo_rain'] <= 0)
return `/local/icons/weather_icons/animated/day.svg`
else
return `/local/icons/weather_icons/animated/rainy-6.svg`
]]]
although the value of the sensor is 0 it shows always the “else” picture