Repository navigation
1、平板端新增锁屏闹钟
- type: custom:xiaoshi-pad-card
enable_lock_screen: true #启用锁屏闹钟
lock_trigger_entities: binary_sensor.ketingchuanganqi #锁屏闹钟控制实体,如人在传感器
lock_time_format: '12' #'24'或者'12'
2、因为卡片层级关系,不能在增加其他并列卡片,需要将其他并列的卡片移到other_card下
- type: custom:xiaoshi-pad-card
other_card:
- type: custom:xiaoshi-xxxx
- type: custom:xiaoshi-xxxx
- type: custom:xiaoshi-xxxx
#完整示例:
- type: custom:xiaoshi-pad-card
weather_animation: true
weather_entity: weather.wo_de_jia
background_image: /local/UI/背景/彩平图.png
enable_lock_screen: true
lock_trigger_entities: binary_sensor.ketingchuanganqi
width: 1024px # 设备像素高度/2
height: 768px # 设备像素高度/2
style:
top: 384px # 设备像素高度/4
left: 512px # 设备像素宽度/4
# 灯光按钮
light_buttons:
# 人在图标
person_icons:
# 设备按钮
device_icons
# 其他卡片
other_card:
#原时钟卡片
- type: custom:xiaoshi-lunar-calendar-pad-date
theme: theme()
mode: B
style:
left: 140px
top: 120px
#原天气卡片
- type: custom:xiaoshi-weather-pad-card
entity: weather.wo_de_jia
theme: theme()
width: 240
columns: 5
use_custom_entities: true
temperature_entity: sensor.wendu_shiwai
humidity_entity: sensor.shidu_shiwai
style:
left: 140px
top: 450px
3、可移除picture-elements卡片
#移除:
- type: picture-elements
image: /local/UI/null20_15.png
elements:
#移除后示例:
views:
- type: panel
title: Home
cards:
- type: custom:xiaoshi-pad-card