我透過幾個自定義卡片達到圖片的效果
1. fold-entity-row https://github.com/thomasloven/lovelace-fold-entity-row
2. text-divider-row https://github.com/iantrich/text-divider-row
3. auto-entities https://github.com/thomasloven/lovelace-auto-entities
4. 每個想要集合在一起的設備, 自定義一個自己方便的屬性
5. 運用上面的幾張卡片組合
entities:
- card:
clickable: true
columns:
- data: object_id
modify: 'x.slice(14,18)'
name: ID
- data: attribution
name: Name
- data: state
name: State
sort_by: object_id+
type: 'custom:flex-table-card'
filter:
exclude:
- entity_id: '*_linkquality'
- entity_id: '*_voltage'
- entity_id: '*_battery'
- entity_id: '*_click'
include:
- attributes:
report_by: Z2M
show_empty: true
sort:
method: entity_id
type: 'custom:auto-entities'
head:
text: Zigbee2Mqtt (動態)
type: 'custom:text-divider-row'
type: 'custom:fold-entity-row'
|