57
141
1625
金牌会员
zml3589110 发表于 2024-8-3 08:27 温湿度那个你怎么写的呀?我现在写不成功就把那个属性写成实体来用了 ...
使用道具 举报
1
78
278
中级会员
0
4
82
注册会员
11
62
2688
论坛UI达人
card_mod: style: | ha-card { {% if is_state(config.entity, 'off') %} --primary-text-color: rgba(255, 255, 255, 0.8); --rgb-primary-text-color: 255,255,255; {% else %} --primary-text-color: rgba(0,0,0,0.8); --rgb-primary-text-color: 0,0,0; {% endif %} }
12
222
6
117
2
32
1329
消逝 发表于 2024-8-4 02:11 因主题原因(深色主题)看不到按钮的,可以尝试使用此card_mod
27
151
wfy459924951 发表于 2024-8-4 17:39 已更新代码
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-6-1 19:10 , Processed in 0.093771 second(s), 24 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.