1
6
42
新手上路
visibility: - condition: state entity: climate.211106235231910_climate state_not: "off" style: left: 27% top: 21% styles: card: - width: 100% - background: rgba(200,200,200,0) - border: none grid: - grid-template-areas: | "a b" "c c" - grid-auto-columns: 1fr - grid-auto-rows: auto - grid-gap: 2px
使用道具 举报
12
337
1800
金牌会员
type: conditional conditions: - entity: input_boolean.ce_shi_deng state: "on" card: type: custom:button-card entity: input_boolean.ce_shi_deng name: 测试灯
fay000fay 发表于 2024-12-26 15:15 这样是可以的。
- type: conditional conditions: - entity: climate.211106235231910_climate state_not: "off" elements: - type: custom:button-card
7
157
1287
show_icon: false show_state: false show_name: false styles: grid: - grid-template-areas: '"b" "d"' - grid-template-columns: 1fr - grid-template-rows: 1fr card: - padding: 0px - broder: 0px - margin: 0px - background: none - border-radius: 0px - box-shadow: none - overflow: visible custom_fields: b: - display: > #block显示,none不显示 [[[ return entity.state == "on" ? "block" : "none" ]]] d: - padding-top: 10px - display: > [[[ return entity.state == "off" ? "block" : "none" ]]] custom_fields: b: card:。。。。。
hungheo 发表于 2024-12-26 17:32 用display就可以,可以看下我发的button card的帖子
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-2-3 06:57 , Processed in 0.049124 second(s), 27 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.