|
发表于 2020-12-5 21:18:19
|
显示全部楼层
cards:
- content: |
<br>
style: |
ha-card {
--paper-item-icon-color: Gainsboro;
--primary-text-color: ##104E8B;
--secondary-text-color: #B3E5FC;
background:rgba(255,255,255,0);
}
.card-header{
background: url(/local/images/card/ha-card-kj1.jpg);
color: white;
}
title: 空净2S
type: markdown
- entities:
- entity: fan.xiaomi_air_purifier_2s
secondary_info: >-
滤芯已用:[[ fan.xiaomi_air_purifier_2s.attributes.filter_hours_used
]]小时,剩余:[[ fan.xiaomi_air_purifier_2s.attributes.filter_life_remaining
]]%
type: 'custom:secondaryinfo-entity-row'
- entity: input_select.xiaomi_ap_mode
icon: 'mdi:air-conditioner'
name: 模式
type: 'custom:slider-entity-row'
show_header_toggle: false
style: |
ha-card {
--paper-item-icon-color: Gainsboro;
--primary-text-color: black;
--secondary-text-color: gray;
background:rgba(255,255,255,0);
}
}
type: entities
- aspect_ratio: '492:232'
entities:
- entity: switch.xiaomi_ap_buzzer
tap_action:
action: toggle
- entity: switch.xiaomi_ap_light
tap_action:
action: toggle
- entity: switch.xiaomi_ap_childlock
tap_action:
action: toggle
show_state: false
style: |
ha-card {
--paper-item-icon-color: Black;
background:rgba(255,255,255,0);
}
type: glance
- aspect_ratio: '492:232'
entities:
- sensor.xiaomi_ap_aqi
- sensor.xiaomi_ap_temp
- sensor.xiaomi_ap_humid
style: |
ha-card {
--paper-item-icon-color: Black;
background:rgba(255,255,255,0);
}
type: glance
type: 'custom:vertical-stack-in-card'
|
|