Salut,
voici un exemple:
type: custom:apexcharts-card
graph_span: 7d
update_interval: 60sec
all_series_config:
stroke_width: 2
apex_config:
chart:
height: 220px
type: area
legend:
show: false
position: top
xaxis:
labels:
show: true
showAlways: true
header:
show: true
show_states: true
colorize_states: true
title: Conso Jour
series:
- entity: sensor.energy_home_box_total_daily
name: Maison
color: Gold
type: column
transform: return x / 1000;
float_precision: 2
unit: kWh
group_by:
func: max
duration: 1d
- entity: sensor.energie_frigo_jour_consommee
name: Frigo
color: royalblue
type: column
transform: return x / 1000;
unit: kWh
float_precision: 2
group_by:
func: max
duration: 1d
- entity: sensor.energie_pc_jour_consommee
name: PC
color: DimGray
type: column
transform: return x / 1000;
unit: kWh
float_precision: 2
group_by:
func: max
duration: 1d
- entity: sensor.energie_tv_jour_consommee
name: Télévision
color: DarkOrange
type: column
transform: return x / 1000;
unit: kWh
float_precision: 2
group_by:
func: max
duration: 1d