代码如下,要先安装:https://github.com/benct/lovelace-multiple-entity-row
type: entities
entities:
- entity: sensor.curmonth_power
type: custom:multiple-entity-row
name: 电量
entities:
- entity: sensor.lastyear_power
name: 去年
unit: false
- entity: sensor.year_power
name: 今年
unit: false
- entity: sensor.lastmonth_power
name: 上月
unit: false
- entity: sensor.curmonth_fee
type: custom:multiple-entity-row
name: 电费
entities:
- entity: sensor.lastyear_fee
name: 去年
unit: false
- entity: sensor.year_fee
name: 今年
unit: false
- entity: sensor.lastmonth_fee
name: 上月
unit: false
|