样式“自定义:multiple-entity-row”

彩色文本在一行:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主持人{颜色:红色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色行单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

注意:最后一个青色的图标是彩色的使用“multiple-entity-row:风格”属性(而不是“card-mod”)。

在一排彩色标题:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: $: | .info.pointer{颜色:橙色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色标题单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色的头在一行(一种颜色):
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主机.entity跨度{颜色:红色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色头单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色头连续(不同的颜色):
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主机.entities-row div.entity: nth-child(1)跨{颜色:红色;}:主机.entities-row div.entity: nth-child(3)跨越{颜色:绿色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。service_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。service_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色头单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色的连续值(一种颜色):
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主机.entity{颜色:红色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色值单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色的连续值(不同的颜色):
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主机.entities-row div.entity: nth-child(1){颜色:橙色;}:主机.entities-row div.entity: nth-child(3){颜色:红色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。service_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。service_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色值单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

改变一个颜色“secondary_info”对于一些行:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”风格:hui-generic-entity-row:美元:.info.pointer .secondary: | ha-relative-time{颜色:红色!重要;}实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色secondary_info单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

改变的颜色“secondary_info”所有行:
изображение

类型:实体风格:multiple-entity-row: $: hui-generic-entity-row:美元:.info.pointer .secondary: | ha-relative-time{颜色:绿色!重要;实体}:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色secondary_info单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改-类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色secondary_info单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

不同颜色的标题&“secondary_info”:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”风格:hui-generic-entity-row:美元:.info.pointer: .secondary: | ha-relative-time{颜色:红色!重要;}:| .info.pointer{颜色:橙色;}实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色名称:彩色secondary_info单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

连续彩色图标(一种颜色为所有图标):
изображение
注意,最后一个图标的颜色由“multiple-entity-row:风格”财产。

类型:实体实体:类型:“自定义:multiple-entity-row”风格:|:主持人{——paper-item-icon-color:红色;}实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:mdi:链接的样式:“——paper-item-icon-color”:青色tap_action:行动:url url_path: xxxcc名称:彩色图标(除了一个)单位:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色图标1:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: $: state-badge: $: ha-icon:美元:| ha-svg-icon{颜色:橙色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc名称:彩色图标单位1:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色的二级图标:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: state-badge: $: ha-icon:美元:| ha-svg-icon{颜色:绿色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc名称:彩色单元:二级图标”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

彩色图标(不同的颜色):
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row:“div.entity: nth-child (2) state-badge”:美元:ha-icon:美元:| ha-svg-icon{颜色:绿色;}“div.entity: nth-child (4) state-badge”:美元:ha-icon:美元:| ha-svg-icon{颜色:红色;}:美元state-badge: $: ha-icon: $: | ha-svg-icon{颜色:橙色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。service_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。service_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc名称:彩色图标单位:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: $: state-badge: $: ha-icon:美元:| ha-svg-icon{颜色:橙色;}“div.entity: nth-child (2) state-badge”:美元:ha-icon:美元:| ha-svg-icon{颜色:绿色;}“div.entity: nth-child (4) state-badge”:美元:ha-icon:美元:| ha-svg-icon{颜色:红色;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。service_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。service_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc名称:“变体# 2”单元:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

包装的文字:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”风格:hui-generic-entity-row:美元:| .info.pointer{颜色:红色;文本溢出:复原!重要;空白:复原!重要;}实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。test_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。test_empty_value名称:假单位:假图标:“mdi:链接”tap_action:行动:url url_path: xxxcc样式:“——paper-item-icon-color”:青色的名字:裹包包装包裹包装单位:”图标:mdi:账户的切换:假show_state:假state_header:“secondary_info:最后一次修改

旋转图标:
изображение

类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row:“div.entity: nth-child (2) state-badge”:美元:ha-icon:美元:| ha-svg-icon{颜色:绿色;变换:旋转(180度);}“div.entity: nth-child (4) state-badge”:美元:ha-icon:美元:| ha-svg-icon{颜色:红色;变换:旋转(45度);}:美元state-badge: $: ha-icon: $: | ha-svg-icon{颜色:橙色;变换:旋转(-45度);实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки单位:“——实体:传感器。service_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу单位:“风格:宽度:60 px text-align:中心-实体:传感器。service_empty_value name: false unit: false icon: 'mdi:car' tap_action: action: url url_path: xxxcc name: Rotated icons unit: '' icon: 'mdi:car' toggle: false show_state: false state_header: '' secondary_info: last-changed

改变字体大小:

类型:垂直堆栈标题:字体大小卡:类型:实体实体:-类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主持人{字体大小:8 px;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:错误图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:错误图标:mdi:链接的名字:整行(标题除外)图标:“mdi:账户”show_state:假state_header:“secondary_info:最后一次修改-类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: $: | .info.pointer{字体大小:8 px;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:错误图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:错误图标:mdi:链接的名字:标题(包括secondary_info)图标:“mdi:账户”show_state:假state_header:“secondary_info:最后一次修改-类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主机.entity跨度{字体大小:18 px}实体:-实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:错误图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:错误图标:mdi:链接的名字:标题图标:“mdi:账户”show_state:假state_header:“secondary_info:最后一次修改-类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主机.entities-row div.entity: nth-child(1)跨{字体大小:7 px;}:主机.entities-row div.entity: nth-child(3)跨越{字体大小:17 px;实体}:实体:传感器。yandex_time_home_ildar attribute: jamsrate name: пробки - entity: sensor.service_empty_value name: false icon: 'mdi:car' - entity: sensor.yandex_time_home_ildar name: на дорогу - entity: sensor.service_empty_value name: false icon: 'mdi:link' name: Headers (different) icon: 'mdi:account' show_state: false state_header: '' secondary_info: last-changed - type: entities entities: - type: 'custom:multiple-entity-row' entity: sensor.yandex_time_home_ildar style: | :host .entity { font-size: 7px; } entities: - entity: sensor.yandex_time_home_ildar attribute: jamsrate name: пробки - entity: sensor.service_empty_value name: false icon: 'mdi:car' - entity: sensor.yandex_time_home_ildar name: на дорогу - entity: sensor.service_empty_value name: false icon: 'mdi:link' name: Values icon: 'mdi:account' show_state: false state_header: '' secondary_info: last-changed - type: entities entities: - type: 'custom:multiple-entity-row' entity: sensor.yandex_time_home_ildar style: | :host .entities-row div.entity:nth-child(1) { font-size: 7px; } :host .entities-row div.entity:nth-child(3) { font-size: 17px; } entities: - entity: sensor.yandex_time_home_ildar attribute: jamsrate name: пробки - entity: sensor.service_empty_value name: false icon: 'mdi:car' - entity: sensor.yandex_time_home_ildar name: на дорогу - entity: sensor.service_empty_value name: false icon: 'mdi:link' name: Values (different) icon: 'mdi:account' show_state: false state_header: '' secondary_info: last-changed - type: entities entities: - type: 'custom:multiple-entity-row' style: hui-generic-entity-row: $: .info.pointer .secondary: | ha-relative-time { font-size: 20px; } entity: sensor.yandex_time_home_ildar entities: - entity: sensor.yandex_time_home_ildar attribute: jamsrate name: пробки - entity: sensor.service_empty_value name: false icon: 'mdi:car' - entity: sensor.yandex_time_home_ildar name: на дорогу - entity: sensor.service_empty_value name: false icon: 'mdi:link' name: Secondary_info icon: 'mdi:account' show_state: false state_header: '' secondary_info: last-changed

调整图标:
изображение

卡片类型:垂直堆栈标题:调整图标:类型:实体实体:-类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:|:主持人{——mdc-icon-size: 40像素;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:错误图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:错误图标:mdi:链接的名字:所有图标图标:“mdi:账户”show_state:假state_header:“secondary_info:最后一次修改-类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: $: | state-badge {——mdc-icon-size: 40像素;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:错误图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:错误图标:mdi:链接的名字:主要图标图标:“mdi:账户”show_state:假state_header:“secondary_info:最后一次修改-类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: | state-badge {——mdc-icon-size: 40 px !重要;实体}:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:错误图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:错误图标:mdi:链接的名字:Seconary图标图标:“mdi:账户”show_state:假state_header:“secondary_info:最后一次修改-类型:实体实体:类型:“自定义:multiple-entity-row”实体:传感器。yandex_time_home_ildar风格:hui-generic-entity-row: | div.entity: nth-child (2) state-badge {——mdc-icon-size: 40像素; } div.entity:nth-child(4) state-badge { --mdc-icon-size: 10px; } entities: - entity: sensor.yandex_time_home_ildar attribute: jamsrate name: пробки - entity: sensor.service_empty_value name: false icon: 'mdi:car' - entity: sensor.yandex_time_home_ildar name: на дорогу - entity: sensor.service_empty_value name: false icon: 'mdi:link' name: Seconary icons (different) icon: 'mdi:account' show_state: false state_header: '' secondary_info: last-changed

隐藏主要图标:
图像

类型:实体实体:类型:“自定义:multiple-entity-row”风格:hui-generic-entity-row:美元:| state-badge{显示:没有;}实体:传感器。yandex_time_home_ildar实体:实体:传感器。yandex_time_home_ildar属性:jamsrate名称:пробки-实体:传感器。service_empty_value名称:假单位:假图标:“mdi:汽车”——实体:传感器。yandex_time_home_ildar名称:надорогу-实体:传感器。service_empty_value名称:假单位:假图标:mdi:链接的名字:隐藏主要图标图标:“mdi:账户”show_state:假的

更换一个值,数学操作:
帖子


更多的例子伟德国际官方app下载苹果版描述在这里

6喜欢

+ 1。广泛的例子,这就是我伟德国际官方app下载苹果版们需要的很多更复杂的自定义和卡片。

样式“自定义:fold-entity-row”:

彩色文本(名称和值):

如何指定一个颜色连续“头”和一些“物品”行:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”头:实体:太阳。阳光的名字:个别颜色风格:|:主机{颜色:红色;}填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:|:主机{颜色:绿色;}-实体:sun.sun- entity: sun.sun

如何为所有行+指定一个颜色不同的颜色对于一些“物品”行(注意,雪佛龙按钮也是彩色的):
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:|:主持人{颜色:红色;}:实体:太阳。阳光的名字:常见的颜色填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:|:主机{颜色:绿色;}-实体:sun.sunname: common color - entity: sun.sun name: common color

彩色的价值观:
如何指定一个颜色连续“头”和一些“物品”行:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”头:实体:太阳。阳光的名字:个别颜色风格:hui-generic-entity-row: | .text-content。指针{颜色:红色;}填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:hui-generic-entity-row: | .text-content。指针{颜色:绿色;}-实体:sun.sun

如何指定一种颜色为所有“物品”行:
有两个选择——通过使用“#项目”与使用“nth-child”
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:“#项目”:hui-text-entity-row:美元:hui-generic-entity-row: | .text-content。指针{颜色:红色;}:实体:太阳。太阳填充:15开放:真正的实体:-实体:太阳。阳光的名字:常见的颜色——实体:太阳。阳光的名字:常见的颜色- type: 'custom:fold-entity-row' style: 'div:nth-child(2)': hui-text-entity-row: $: hui-generic-entity-row: | .text-content.pointer { color: red; } head: entity: sun.sun padding: 15 open: true entities: - entity: sun.sun name: common color - entity: sun.sun name: common color

如何为所有“物品”行+指定一个颜色不同的颜色对于一些“物品”行:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:“#项目”:hui-text-entity-row:美元:hui-generic-entity-row: | .text-content。指针{颜色:红色;}:实体:太阳。太阳填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:hui-generic-entity-row: | .text-content。指针{颜色:绿色!重要;}-实体:sun.sunname: common color - entity: sun.sun name: common color

如何为所有行指定一个颜色:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:hui-text-entity-row:美元:hui-generic-entity-row: | .text-content。指针{颜色:红色;}“#项目”:hui-text-entity-row: $: hui-generic-entity-row: | .text-content。指针{颜色:红色;}:实体:太阳。阳光的名字:常见的颜色填充:15开放:真正的实体:-实体:太阳。阳光的名字:常见的颜色——实体:太阳。阳光的名字:常见的颜色

彩色的名字:
注意:所有代码为“没有“secondary_info””。
如果“secondary_info”然后指定替换”.info.pointer.text-content”与“.info.pointer”。
根据我的测试,你可以只使用“.info.pointer”,它无论如何都要工作。

如何指定一种颜色的“头”和一些“物品”行:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”头:实体:太阳。阳光的名字:个别颜色风格:hui-generic-entity-row: $: | .info.pointer.text-content{颜色:红色;}填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:hui-generic-entity-row: $: | .info.pointer.text-content{颜色:绿色;}-实体:sun.sun

如何为所有“物品”行指定一个颜色:
有两个选择——通过使用“#项目”与使用“nth-child”
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:“#项目”:hui-text-entity-row:美元:hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:红色;}:实体:太阳。太阳填充:15开放:真正的实体:-实体:太阳。阳光的名字:常见的颜色——实体:太阳。阳光的名字:常见的颜色- type: 'custom:fold-entity-row' style: 'div:nth-child(2)': hui-text-entity-row: $: hui-generic-entity-row: $: | .info.pointer.text-content { color: red; } head: entity: sun.sun padding: 15 open: true entities: - entity: sun.sun name: common color - entity: sun.sun name: common color

如何为所有“物品”行+指定一个颜色不同的颜色对于一些“物品”行:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:“#项目”:hui-text-entity-row:美元:hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:红色;}:实体:太阳。太阳填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:hui-generic-entity-row: $: | .info.pointer.text-content{颜色:绿色!重要;}-实体:sun.sunname: common color - entity: sun.sun name: common color

如何为所有行指定一个颜色:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:hui-text-entity-row:美元:hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:红色;}“#项目”:hui-text-entity-row: $: hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:红色;}:实体:太阳。阳光的名字:常见的颜色填充:15开放:真正的实体:-实体:太阳。阳光的名字:常见的颜色——实体:太阳。阳光的名字:常见的颜色

彩色secondary_info:
如何指定一个颜色连续“头”和一些“物品”行:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”头:实体:太阳。太阳的名字:个别颜色secondary_info:上次调整风格:hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:红色;}填充:15开放:真正的实体:-实体:太阳。太阳的名字:个别颜色secondary_info:上次调整风格:hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:绿色;}-实体:sun.sun

如何为所有“物品”行+指定一个颜色不同的颜色对于一些“物品”行:
изображение

类型:实体名称:常见的颜色+个人实体:所有项目类型:“自定义:fold-entity-row”风格:“#项目”:hui-text-entity-row:美元:hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:红色;}:实体:太阳。太阳secondary_info:上次调整填充:15开放:真正的实体:-实体:太阳。太阳的名字:个别颜色secondary_info:上次调整风格:hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:绿色!重要;}-实体:sun.sunname: common color secondary_info: last-changed - entity: sun.sun name: common color secondary_info: last-changed

如何为所有行+指定一个颜色不同的颜色对于一些“物品”行:
изображение

类型:实体名称:常见的所有行+个人实体:颜色-类型:“自定义:fold-entity-row”风格:hui-text-entity-row:美元:hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:红色;}“#项目”:hui-text-entity-row: $: hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:红色;}:实体:太阳。阳光的名字:常见颜色secondary_info:上次调整填充:15开放:真正的实体:-实体:太阳。太阳的名字:个别颜色secondary_info:上次调整风格:hui-generic-entity-row:美元:| .info.pointer .secondary ha-relative-time{颜色:绿色!重要;}-实体:sun.sunname: common color secondary_info: last-changed - entity: sun.sun name: common color secondary_info: last-changed

彩色的图标:
如何为所有行指定一个颜色和不同的颜色对于一些行(“头”或“项目”):
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:|:主持人{——paper-item-icon-color:红色;}:实体:太阳。阳光的名字:常见的颜色填充:15开放:真正的实体:-实体:太阳。阳光的名字:个别颜色风格:|:主机{——paper-item-icon-color:橙色;}-实体:sun.sunname: individual color style: | :host { --paper-item-icon-color: green; } - entity: sun.sun name: common color

包装一个文本:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”头:实体:太阳。太阳的名字:裹包包装包裹包装风格:hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:绿色;文本溢出:复原!重要;空白:复原!重要;}填充:15开放:真正的实体:-实体:太阳。太阳的名字:裹包包装包裹包装风格:hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:红色;文本溢出:复原!重要;空白:复原!重要;}-实体:sun.sunname: Not wrapped Not wrapped Not wrapped Not wrapped

彩色雪佛龙按钮:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:ha-icon:美元:| ha-svg-icon{颜色:红色;}:实体:太阳。太阳的名字:彩色按钮填充:15开放:真正的实体:-实体:太阳。太阳-实体:sun.sun

把雪佛龙按钮向右:
默认情况下,按钮不成见是正确的文本边界。
比较这些按钮:
изображение

类型:实体实体:类型:“自定义:fold-entity-row”风格:| ha-icon{宽度:24 px !重要;}hui-text-entity-row {max-width:钙(100%)24 px) !重要;}:实体:太阳。太阳填充:15开放:真正的实体:-实体:太阳。太阳-实体:sun.sun- type: 'custom:fold-entity-row' head: entity: sun.sun padding: 15 open: true entities: - entity: sun.sun - entity: sun.sun

更新18.03.21:这似乎不再需要检查GitHub的问题
在一些版本更正。现在看起来这违约和同样风格的变异看起来:
изображение

如何删除一个雪佛龙按钮可点击标题:
通常按雪佛龙按钮显示的项。
如果“可点击:真正的“属性设置,然后点击显示的物品可能是头。
然后您可以删除雪佛龙按钮:

类型:实体名称:“没有雪佛龙,点击标题”实体:太阳。太阳,太阳。太阳——类型:自定义:fold-entity-row头:实体:太阳。阳光风格:|:主持人{粗细:大胆的;}填充:15开放:真正的可点击:真正的实体:-实体:太阳。太阳-实体:sun.sun风格:ha-icon: $: | ha-svg-icon { display: none; } .: | ha-icon { width: 0px !important; } .: | hui-text-entity-row { max-width: calc(100%) !important; }

изображение
изображение


更多的例子伟德国际官方app下载苹果版描述在这里

2喜欢

这将是伟大的如果这些例子帮助初学者学习。伟德国际官方app下载苹果版


更新:

实体卡的动画:

闪烁的标题:
注意:保证金为第一行必须增加。
11

类型:实体名称:闪烁的标题图标:mdi:汽车的实体:-实体:太阳。太阳,太阳。太阳的风格:“div: nth-child (1): hui-text-entity-row:美元:| hui-generic-entity-row {margin-top: 10 px;}:| .card-header{背景颜色:红色;颜色:白色;动画:线性交替闪烁2 s无限;{}@keyframes眨眼{0%不透明度:0;}100%{不透明度:1;}}

整个卡闪烁:
hhhhhhhhhhh

类型:实体名称:常见的时尚偶像:mdi:汽车的实体:-实体:传感器。cleargrass_1_co2名称:共同的风格——实体:传感器。cleargrass_1_temp名称:常见的风格风格:| ha-card{颜色:红色;动画:线性交替闪烁2 s无限;{}@keyframes闪烁{0%不透明度:0;}100%{不透明度:1;}}

闪烁的行:
333年

类型:实体名称:常见的时尚偶像:mdi:汽车的实体:-实体:传感器。cleargrass_1_co2名称:共同的风格——实体:传感器。cleargrass_1_temp名称:常见的风格风格:| .card-content{颜色:红色;动画:闪烁0.5年代线性交替无限;{}@keyframes闪烁{0%不透明度:1;}100%{不透明度:0;}}

不同元素闪烁:
ffffffffff

类型:实体名称:常见的时尚偶像:mdi:汽车的实体:太阳。太阳——传感器。cleargrass_1_co2——太阳。阳光风格:hui-text-entity-row: $: hui-generic-entity-row: $: state-badge:美元:ha-icon:美元:| ha-svg-icon{颜色:橙色;动画:线性交替闪烁2 s无限;{}@keyframes闪烁{0%不透明度:0;}100%{不透明度:1;}}:| hui-generic-entity-row .text-content{颜色:红色;动画:线性交替闪烁2 s无限;{}@keyframes闪烁{0%不透明度:0;}100%{不透明度:1;}}hui-sensor-entity-row:美元:hui-generic-entity-row:美元:| .info.pointer.text-content{颜色:红色;动画:线性交替闪烁2 s无限;{}@keyframes闪烁{0%不透明度:0;}100%{不透明度:1;}}.card-header: . name .icon:美元:| ha-svg-icon{颜色:绿色;动画:线性交替闪烁2 s无限; } @keyframes blinking { 0% {opacity: 0;} 100% {opacity: 1;} } .: | .name { color: cyan; animation: blinking 2s linear alternate infinite; } @keyframes blinking { 0% {opacity: 1;} 100% {opacity: 0;} }

闪烁的行元素,个人风格:
xxxxxxxxxxx

类型:实体名称:个人风格图标:mdi:汽车的实体:-实体:太阳。阳光的名字:个人风格风格:hui-generic-entity-row: $: state-badge:美元:ha-icon:美元:| ha-svg-icon{颜色:绿色!重要;动画:线性交替闪烁2 s无限;{}@keyframes眨眼{0%不透明度:1;}{不透明度:0;}}100%。| hui-generic-entity-row .text-content{颜色:红色;动画:线性交替闪烁2 s无限;{}@keyframes闪烁{0%不透明度:0;}100%{不透明度:1;}}-实体:传感器。cleargrass_1_co2名称:个人风格风格:hui-generic-entity-row: $: state-badge:美元:ha-icon:美元:| ha-svg-icon{颜色:红色!重要;动画:线性交替闪烁2 s无限;{}@keyframes眨眼{0%不透明度:0;}100%{不透明度:1;}}:| .info.pointer.text-content{颜色:红色;动画:线性交替闪烁2 s无限; } @keyframes blinking { 0% {opacity: 0;} 100% {opacity: 1;} }

动画图标:

类型:实体实体:实体:太阳。阳光的名字:旋转图标:mdi:风扇的风格:hui-generic-entity-row:美元:state-badge:美元:ha-icon:美元:| ha-svg-icon{颜色:橙色;动画:旋转0.5年代线性无限;{}@keyframes旋转{0%变换:旋转(0度);}100%{变换:旋转(360度);}}-实体:太阳。阳光的名字:摆动图标:mdi:贝尔的风格:hui-generic-entity-row:美元:| state-badge{颜色:红色;动画:摇摆不定1 s线性无限备用;}@keyframes摆动{0%{变换:旋转(-45度);}100%{变换:旋转45度(+); } } - entity: sun.sun name: coloring style: hui-generic-entity-row: $: | state-badge { animation: coloring 8s linear infinite alternate; } @keyframes coloring { 0% { color: red; } 17% { color: orange; } 34% { color: yellow; } 51% { color: green; } 68% { color: lightblue; } 85% { color: blue; } 100% { color: violet; } } - entity: sun.sun name: resizing icon: 'mdi:radio-tower' style: hui-generic-entity-row: $: | state-badge { animation: resizing 1s linear infinite alternate; } @keyframes resizing { 0% { --mdc-icon-size: 10px; } 25% { --mdc-icon-size: 15px; } 50% { --mdc-icon-size: 20px; } 75% { --mdc-icon-size: 26px; } 100% { --mdc-icon-size: 32px; } } - entity: sun.sun name: stretching 1 icon: 'mdi:bus-side' style: hui-generic-entity-row: $: | state-badge { animation: stretching 1s linear infinite alternate; } @keyframes stretching { 0% { transform: scaleX(0.5); } 100% { transform: scaleX(2.0); } } - entity: sun.sun name: stretching 2 icon: 'mdi:human-handsup' style: hui-generic-entity-row: $: | state-badge { animation: stretching 1s linear infinite alternate; } @keyframes stretching { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(2.0); } } - entity: sun.sun name: flipping icon: 'mdi:timer-sand' style: hui-generic-entity-row: $: | state-badge { animation: flipping 1s linear infinite; } @keyframes flipping { 0% { transform: rotateX(0deg); } 100% { transform: rotateX(360deg); } } - entity: sun.sun name: shifting icon: 'mdi:arrow-left-right' style: hui-generic-entity-row: $: | state-badge { animation: shifting 1s linear infinite alternate; } @keyframes shifting { 0% { transform: translate(-5px,0); } 100% { transform: translate(5px,0); } } - entity: sun.sun name: jumping icon: 'mdi:arrow-up-down' style: hui-generic-entity-row: $: | state-badge { animation: jumping 1s linear infinite alternate; } @keyframes jumping { 0% { transform: translate(0,-5px); } 100% { transform: translate(0,5px); } } - entity: sun.sun name: blinking style: hui-generic-entity-row: $: | state-badge { animation: disappear 1s linear infinite alternate; } @keyframes disappear { 0% { opacity: 0; } 100% { opacity: 1; } }

更多的例子伟德国际官方app下载苹果版描述在这里

3喜欢

你好,

我试图改变文本的大小光卡和我显然不了解足够的css。下面是我和我试着多个变种,但我似乎无法让它工作。

类型:光
实体:light.kitchen_lights
风格:|
ha-card {
——name-font-size: 10 px;
}

如何改变字体大小为实体卡:
изображение

标题:类型:实体大小标题风格:| ha-card .card-header{字体大小:35 px;颜色:红色;}实体:实体:太阳。阳光的名字:标准尺寸secondary_info:最后一次修改-实体:太阳。太阳的名字:整行secondary_info大小:上次调整风格:|:主机{字体大小:25 px;颜色:红色;}-实体:sun.sunname: Size for name & secondary_info secondary_info: last-changed style: hui-generic-entity-row: $: | .info.pointer { font-size: 10px; color: red; } - entity: sun.sun name: Size for name & secondary_info (different) secondary_info: last-changed style: hui-generic-entity-row: $: .info.pointer: | .secondary ha-relative-time { color: green; font-size: 25px; } .: | .info.pointer { color: red; font-size: 8px; } - entity: sun.sun name: Size for name only secondary_info: last-changed style: hui-generic-entity-row: $: .info.pointer: | .secondary ha-relative-time { color: orange; font-size: var(--mdc-typography-body1-font-size, 1rem); } .: | .info.pointer { color: red; font-size: 8px; } - entity: sun.sun name: Size for value secondary_info: last-changed style: | :host .text-content { font-size: 10px; color: red; } - entity: sun.sun name: Size for secondary_info secondary_info: last-changed style: hui-generic-entity-row: $: .info.pointer .secondary: | ha-relative-time { font-size: 20px; color: green !important; }

注意,设置一个“标准”字体大小我不得不使用字体大小:var (rem mdc-typography-body1-font-size, 1)”“名字只是大小”情况下,我不认为这是好的(“硬编码”),并可能有一个更好的解决办法…

改变标题的字体大小的另一个选择——使用”——ha-card-header-font-size”变量:
изображение

类型:实体名称:样式:标题字体大小的实体:-实体:太阳。阳光风格:| ha-card {——ha-card-header-font-size: 35 px;}

如何改变字体大小的吗“按钮”行:
图像

标题:类型:实体大小按钮实体:-类型:按钮名称:标准尺寸tap_action:行动:调用服务服务:homeassistant。update_entity service_data: entity_id:太阳。太阳-类型:按钮名称:标准尺寸tap_action:行动:调用服务服务:homeassistant。update_entity service_data: entity_id:太阳。太阳card_mod:风格:|:主持人{——mdc-typography-button-font-size: 20 px;}

更多的例子伟德国际官方app下载苹果版描述在这里

1像

你能使用三重引号而不是单一的吗?

对不起,显然我不是关注不够,警告说,突然出现。这丫去:

类型:光实体:光。kitchen_lights风格:| ha-card {——name-font-size: 10 px;}

我真正要做的是减少所有的灯牌,大概是一个自定义的按钮的大小卡,但我不确定是否我需要做零碎的或如果它可以用一个整体的代码。

实际上,你可以试着这样的:


不能检查它因为到目前为止我没有任何灯光。

是否可以调整卡大小与卡国防部?刚刚安装卡国防部,但仍试图找出如何调整卡的大小。

提前谢谢。

样式“mini-graph-card”:

изображение

类型:实体实体:实体:太阳。太阳标题:高度风格:| ha-card{高度:300 px !重要;}

изображение

类型:实体实体:实体:太阳。太阳标题:高度风格:| ha-card{高度:90 px !重要;}

给我一张光的亮度,但我不需要控制亮度,如何隐藏的大圆调整亮度的光卡吗?
图像

如果你不会使用它,我认为你可以通过自定义面板移除它所支持的东西设置为0。

对不起,我应该更清楚,我的意思是我不调整亮度光在这张卡上。在ui浪子的第一页,我用它来快速打开/关闭的东西。我还有另一个页面中配置所以我可以调整亮度。

round-slider{能见度:隐藏!重要;}
1像

工作好了!:+ 1::+ 1::+ 1:

你好,我使用homekit按钮,但当我使用不同的卡片
如果我把:主机什么也不会发生。
我试图改变背景,增加字体,但没有运气。
任何想法?

-卡:“自定义:upcoming-media-card”广泛:真正的高:真正的widerSize: 2 higherSize: 2 noPadding:真正的cardOptions:实体:传感器。recently_added_movies图标:mdi:科迪的名称:新电影image_style:同人cardStyle: | ha-card{填充:5 px !重要;显示:flex !重要;flex-direction:列!重要;背景:透明!重要;不必:没有!重要;border - radius: 0 !重要;背景:var (——ha-card-background # fff0);}.rece_line0_fanart{字体大小:25 px;}

你为什么认为这是cardStyle吗?它记录你使用风格,而不是cardStyle