本帖最后由 ptlzx 于 2024-7-27 12:49 编辑
明明安装了 config-template-card还是出现 Custom element doesn't exist: config-template-card. 换了几个浏览器都这样群晖docker安装ha,hacs安装插件后在这个目录
kiosk_mode:
hide_header: true
hide_sidebar: true
views:
#########################################################################################
#################### ############################
#################### Floor plan 家庭总览 ############################
#################### ############################
#########################################################################################
- theme: Backend-selected
title: Plan
path: plan
icon: mdi:floor-plan
type: panel
badges: []
cards:
- type: custom:config-template-card
entities:
- switch.lumi_ctrl_neutral1_v1_a84c_switch
- switch.sonoff_4
- switch.sonoff_1001db6d08_1
card:
type: picture-elements
image: /local/home/1-Q-A.png
elements:
################################### 灯光控制 | light ###################################
- type: image
entity: switch.lumi_ctrl_neutral1_v1_a84c_switch
tap_action:
action: none
style:
pointer-events: none
top: 50%
left: 50%
width: 100%
mix-blend-mode: lighten
state_image:
'off': /local/home/K.png
'on': /local/home/1-CT.png
- type: image
entity: switch.lumi_ctrl_neutral1_v1_a84c_switch
tap_action:
action: toggle
style:
top: 45%
left: 70.6%
width: 7%
state_image:
'off': /local/home/light_off.png
'on': /local/home/light_on.png
- type: image
entity: switch.sonoff_1001db6d08_1
tap_action:
action: none
style:
pointer-events: none
top: 50%
left: 50%
width: 100%
mix-blend-mode: lighten
state_image:
'off': /local/home/K.png
'on': /local/home/1-W2.png
- type: image
entity: switch.sonoff_1001db6d08_1
tap_action:
action: toggle
style:
top: 35.6%
left: 39.5%
width: 7%
state_image:
'off': /local/home/light_off.png
'on': /local/home/light_on.png
- type: image
entity: switch.sonoff_4
tap_action:
action: none
style:
pointer-events: none
top: 50%
left: 50%
width: 100%
mix-blend-mode: lighten
state_image:
'off': /local/home/K.png
'on': /local/home/1-MT
- type: image
entity: switch.sonoff_4
tap_action:
action: toggle
style:
top: 40%
left: 55%
width: 7%
state_image:
'off': /local/home/light_off.png
'on': /local/home/light_on.png
|