|

楼主 |
发表于 2018-7-20 11:31:40
|
显示全部楼层
谢谢。不过发现新版本rgb_color不行了,看了下文档,要用下面的方法才可以。
customize_glob:
"*.*":
custom_ui_state_card: state-card-custom-ui
device_tracker.*:
templates:
icon_color: if (state === 'on') return 'rgb(242, 193, 46)'; else return 'rgb(255, 255, 255)';
|
|