本帖最后由 z472725025 于 2024-2-26 23:15 编辑
可能是图标文件改名字了?我改成现在的名字就ok了
picture: >-
{% set condition = states(entity) %}
{% set icon = {
'CLEAR_DAY':'CLEAR_DAY', 'clear-night':'CLEAR_NIGHT','partlycloudy':'PARTLY_CLOUDY_DAY', 'PARTLY_CLOUDY_NIGHT':'PARTLY_CLOUDY_NIGHT', 'PARTLY_CLOUDY_DAY':'PARTLY_CLOUDY_DAY','cloudy':'CLOUDY', 'LIGHT_HAZE':'LIGHT_HAZE','MODERATE_HAZE':'MODERATE_HAZE', 'HEAVY_HAZE':'HEAVY_HAZE',
'rainy':'LIGHT_RAIN','LIGHT_RAIN':'LIGHT_RAIN', 'MODERATE_RAIN':'MODERATE_RAIN','HEAVY_RAIN':'HEAVY_RAIN', 'STORM_RAIN':'STORM_RAIN','FOG':'FOG', 'LIGHT_SNOW':'LIGHT_SNOW','MODERATE_SNOW':'MODERATE_SNOW', 'HEAVY_SNOW':'HEAVY_SNOW','STORM_SNOW':'snowy-6',
'DUST':'DUST','SAND':'SAND', 'WIND':'WIND','sunny':'CLEAR_DAY'
} %}
/hacsfiles/lovelace-colorfulclouds-weather-card/icons/animated/{{icon[condition]}}.svg
|