I use always the mushroom-entity-card, so is quite simple
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Tesla Powerwall
- type: grid
cards:
- type: custom:mushroom-entity-card
entity: sensor.powerwall_charge
name: Stato carica
icon: mdi:home-battery
icon_color: green
primary_info: state
secondary_info: name
- type: custom:mushroom-entity-card
entity: sensor.powerwall_site_export
name: Esportato oggi
icon: mdi:home-export-outline
icon_color: cyan
primary_info: state
secondary_info: name
- type: custom:mushroom-entity-card
entity: sensor.powerwall_site_now
name: Consumo rete
icon: mdi:home-lightning-bolt
icon_color: red
primary_info: state
secondary_info: name
- type: custom:mushroom-entity-card
entity: sensor.powerwall_battery_now
name: Batteria
icon: mdi:battery-sync
icon_color: light-green
primary_info: state
secondary_info: name
- type: custom:mushroom-entity-card
entity: sensor.powerwall_load_now
name: Consumo casa
primary_info: state
secondary_info: name
icon_color: '#0091FF'
- type: custom:mushroom-entity-card
entity: sensor.powerwall_solar_now
name: Input solare
icon: mdi:white-balance-sunny
icon_color: yellow
primary_info: state
secondary_info: name
columns: 2
square: false
This is the first graph
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Consumi ultime 48 ore
- type: custom:mini-graph-card
show:
name: false
icon: false
state: true
fill: true
points: always
line_width: 2
hours_to_show: 48
height: 200
hour24: true
points_per_hour: 1
entities:
- entity: sensor.powerwall_load_now
name: Consumo
color: '#0091FF'
- entity: sensor.powerwall_site_now
name: Rete
color: '#e74c3c'
- entity: sensor.powerwall_solar_now
name: Solare
color: yellow
- entity: sensor.powerwall_battery_now
name: Batteria
color: green
view_layout:
column: 1
Then I just repeat with other entities.
This is the last graph
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Distribuzione energetica
- type: custom:sankey-chart
show_names: true
show_icons: null
wide: true
height: 275
min_box_distance: 10
unit_prefix: k
round: 0
sections:
- entities:
- entity_id: sensor.powerwall_solar_export
color: yellow
children:
- sensor.powerwall_site_export
- sensor.powerwall_battery_import
- sensor.powerwall_load_import
- entity_id: sensor.powerwall_battery_export
color: green
name: Batteria
children:
- sensor.powerwall_site_export
- sensor.powerwall_load_import
- entity_id: sensor.powerwall_site_import
color: '#e74c3c'
children:
- sensor.powerwall_site_export
- sensor.powerwall_battery_import
- sensor.powerwall_load_import
- entities:
- entity_id: sensor.powerwall_site_export
color: cyan
- entity_id: sensor.powerwall_battery_import
color: green
- entity_id: sensor.powerwall_load_import
color: '#0091FF'
view_layout:
column: 3