配置好floorplan 天气通过调用图片来实现,但是总是不显示 请问又遇到过得吗
图片位置
代码如下
- name: Weather
entities:
- weather.wardhome
image_template: '
var imageName = "";
switch (entity.state) {
case "partlycloudy":
imageName = "partlycloudy";
break;
case "rainy":
imageName = "rainy";
break;
case "cloudy":
imageName = "cloudy";
break;
}
return "/local/custom_ui/floorplan/images/weather/" + imageName + ".svg";
'
|