是的,我正在尝试使用这种方法。
此外,在该线程中,开发人员至少还有一种方法卡片Mod.
(看看他的帖子,你会找到所需的一篇)。
它在github中描述了(https://github.com/thomasloven/lovelace-card-mod.)。
$:
用于进入某些元素的阴影根。
。:
用于进入某些元素(不是阴影根) - 见GitHub。
我不是100%肯定,但我认为管道|
用于在样式之前打破一条线:
风格:|:主机{颜色:红色;}或风格:':主机{颜色:红色;}'
风格:惠通实体排:HA-ENTITY-TOGGLE:$:|HA-Switch { - -Switch-Unchecked-Button-Color:Yellow;- Chect-Checked-Button-Color:Red;}或风格:惠通实体行ha-entity-toggle:$:'ha-switch { - -switch-unchecked-button-color:黄色;- Chect-Checked-Button-Color:Red;}'
手段必须在最后一个冒号后一次使用管道。
这个例子:
类型:实体标题:使用pipe show_header_toggle:false实体: - 实体:internity:intern_boolean.test_boolean名称:彩色文本样式:|:主机{颜色:红色;} - 实体:input_boolean.test_boolean名称:彩色文本样式:':host {color:红色;' - 实体:input_boolean.test_boolean名称:彩色按钮样式:hui-generic-entity-row:ha-entity-toggle:$:$:|HA-Switch { - -Switch-Unchecked-Button-Color:Yellow;- Chect-Checked-Button-Color:Red;} - 实体:input_boolean.test_boolean名称:彩色按钮样式:Hui-Generic-Entity-Row:Ha-Entity-Toggle:$:'HA-Switch { - - 开关 - 未选中 - 纽扣 - 颜色:黄色;- Chect-Checked-Button-Color:Red;}' - 实体:Input_Boolean.Test_Boolean名称:彩色按钮样式:Hui-Generic-Entity-Row Ha-Entity-Toggle:$:'HA-Switch { - - 开关 - 未选中 - 纽扣 - 颜色:黄色;- Chect-Checked-Button-Color:Red; }'
![изображение.](//www.sz-tiancheng.com/community-assets/original/3X/a/f/afa8655c94672f389bc22506fb3ff9053806e636.png)