找回密码
 立即注册

微信扫码登录

搜索
楼主: hungheo

[UI界面] card-mod使用分享

 火... [复制链接]

0

主题

14

回帖

177

积分

注册会员

积分
177
金钱
163
HASS币
0
发表于 2025-9-2 10:05:56 | 显示全部楼层
66666666666666666
回复

使用道具 举报

limo 手机认证

5

主题

93

回帖

914

积分

高级会员

积分
914
金钱
816
HASS币
0
发表于 2025-9-3 11:32:56 | 显示全部楼层
学习一下
回复

使用道具 举报

2

主题

715

回帖

5195

积分

论坛元老

积分
5195
金钱
4478
HASS币
85
发表于 2025-9-3 13:31:39 | 显示全部楼层
感ˋ謝教學~~~
回复

使用道具 举报

0

主题

1

回帖

23

积分

新手上路

积分
23
金钱
22
HASS币
0
发表于 2025-9-3 23:50:23 | 显示全部楼层
学习一下
回复

使用道具 举报

3

主题

15

回帖

130

积分

注册会员

积分
130
金钱
112
HASS币
0
发表于 4 天前 | 显示全部楼层
"body>home-assistant$home-assistant-main$ha-drawer>partial-panel-resolver>ha-panel-lovelace$hui-root$#view>hui-view>hui-masonry-view$#columns>div:nth-child(2)>hui-card:nth-child(5)>more-info-card$ha-card>div>more-info-content$more-info-fan$ha-more-info-state-header$p.state"
大佬 请问下more-info卡片的怎么定位? 头疼很久 定位不到  感谢!!!
回复

使用道具 举报

11

主题

269

回帖

2689

积分

金牌会员

积分
2689
金钱
2404
HASS币
20
 楼主| 发表于 4 天前 | 显示全部楼层
uu7711 发表于 2025-9-10 14:06
"body>home-assistant$home-assistant-main$ha-drawer>partial-panel-resolver>ha-panel-lovelace$hui-root ...

是自定义卡片more-info-card?还是其他呢?方便的话把配置代码发一个呀
card-mod写在哪个位置的呀,如果是自定义卡片,一般情况下都可以用,是以ha-card开始往下定位的
回复

使用道具 举报

3

主题

15

回帖

130

积分

注册会员

积分
130
金钱
112
HASS币
0
发表于 4 天前 | 显示全部楼层
hungheo 发表于 2025-9-10 15:02
是自定义卡片more-info-card?还是其他呢?方便的话把配置代码发一个呀
card-mod写在哪个位置的呀,如果 ...
      - type: custom:more-info-card
        entity: fan.zhimi_cn_271052863_va1_s_2_air_purifier
        card_mod:
          style:
            ha-card>div>more-info-content$:
              more-info-fan$:
                ha-more-info-state-header$: |
                  p.state:{
                    font-size: 16px;
                  }
回复

使用道具 举报

3

主题

15

回帖

130

积分

注册会员

积分
130
金钱
112
HASS币
0
发表于 4 天前 | 显示全部楼层
hungheo 发表于 2025-9-10 15:02
是自定义卡片more-info-card?还是其他呢?方便的话把配置代码发一个呀
card-mod写在哪个位置的呀,如果 ...
type: custom:mushroom-entity-card
entity: switch.giot_cn_1126358765_v6shsm_on_p_2_1
name: 排风扇
tap_action:
  action: more-info
或者说点击后系统自带的more-info能定位修改也行  感谢!
回复

使用道具 举报

11

主题

269

回帖

2689

积分

金牌会员

积分
2689
金钱
2404
HASS币
20
 楼主| 发表于 4 天前 | 显示全部楼层
本帖最后由 hungheo 于 2025-9-10 16:55 编辑
uu7711 发表于 2025-9-10 15:05
type: custom:more-info-card
entity: fan.yeelink_v13_f187_mode_4
card_mod:
  style:
    more-info-content$:
      more-info-fan$:
        ha-more-info-state-header$: |
          .state {
            font-size: 18px !important;
          }

替换一下entity
.state 没有冒号 路径是对的
回复

使用道具 举报

3

主题

15

回帖

130

积分

注册会员

积分
130
金钱
112
HASS币
0
发表于 3 天前 | 显示全部楼层
hungheo 发表于 2025-9-10 16:54
替换一下entity
.state 没有冒号 路径是对的

非常感谢  可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-9-14 03:16 , Processed in 0.400868 second(s), 10 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表