大佬可以贴一下HA里数据展示的代码吗?
Closed this issue · 3 comments
HiMyCocoo commented
ARC-MX commented
type: vertical-stack
cards:
- type: custom:mini-graph-card
entities:
- entity: sensor.last_electricity_usage_entity
name: 国网每日用电量
aggregate_func: first
show_state: true
show_points: true
group_by: date
hour24: true
hours_to_show: 240
- type: horizontal-stack
cards:
- graph: none
type: sensor
entity: sensor.month_electricity_charge_entity
detail: 1
name: 上月电费
icon: ''
unit: 元
- graph: none
type: sensor
entity: sensor.month_electricity_usage_entity
detail: 1
name: 上月用电量
unit: 度
icon: mdi:lightning-bolt-outline
- type: horizontal-stack
cards:
- graph: none
type: sensor
entity: sensor.electricity_charge_balance_entity
detail: 1
name: 电费余额
icon: mdi:cash-100
unit: 元
- graph: none
type: sensor
entity: sensor.last_electricity_usage_entity
detail: 1
name: 昨日用电量
unit: 度
icon: ''
HiMyCocoo commented
type: vertical-stack cards: - type: custom:mini-graph-card entities: - entity: sensor.last_electricity_usage_entity name: 国网每日用电量 aggregate_func: first show_state: true show_points: true group_by: date hour24: true hours_to_show: 240 - type: horizontal-stack cards: - graph: none type: sensor entity: sensor.month_electricity_charge_entity detail: 1 name: 上月电费 icon: '' unit: 元 - graph: none type: sensor entity: sensor.month_electricity_usage_entity detail: 1 name: 上月用电量 unit: 度 icon: mdi:lightning-bolt-outline - type: horizontal-stack cards: - graph: none type: sensor entity: sensor.electricity_charge_balance_entity detail: 1 name: 电费余额 icon: mdi:cash-100 unit: 元 - graph: none type: sensor entity: sensor.last_electricity_usage_entity detail: 1 name: 昨日用电量 unit: 度 icon: ''
ARC-MX commented
重启一下docker镜像