本帖最后由 stone360 于 2025-6-12 10:39 编辑
见图,
一样的代码,为什么一开灯,上面(L1)的图标变成半透明的了,如何能让图标像下面L2那样,不要透明。原始代码如下
views:
- theme: Backend-selected
title: Plan
path: plan
icon: mdi:floor-plan
type: panel
badges: []
cards:
- type: picture-elements
image: /local/ui/家庭总览_empty.png
elements:
- type: image
entity: light.chuangmi_cn_36501732_ip449a_s_3_indicator_light
tap_action:
action: none
style:
pointer-events: none
top: 49.7%
left: 57.6%
width: 84.8%
mix-blend-mode: lighten
state_image:
'off': /local/ui/transparent.png
'on': /local/ui/主卧L1.png
- type: image
entity: light.chuangmi_cn_36501732_ip449a_s_3_indicator_light
tap_action:
action: toggle
style:
top: 14%
left: 76%
width: 4%
state_image:
'off': /local/ui/strip_off.png
'on': /local/ui/strip_on.png
- type: image
entity: light.chuangmi_cn_369501732_ip23a_s_3_indicator_light
tap_action:
action: none
style:
pointer-events: none
top: 49.7%
left: 57.6%
width: 84.8%
mix-blend-mode: lighten
state_image:
'off': /local/ui/transparent.png
'on': /local/ui/主卧L2.png
- type: image
entity: light.chuangmi_cn_369501732_ip23a_s_3_indicator_light
tap_action:
action: toggle
style:
top: 21%
left: 76%
width: 4%
state_image:
'off': /local/ui/light_off.png
'on': /local/ui/light_on.png
|