I updated the charts, here the diagrams and the code:
type: custom:apexcharts-card
header:
show: true
show_states: true
colorize_states: true
standard_format: true
disable_actions: true
apex_config:
chart:
height: 300
type: area
stroke:
width: 2
curve: smooth
legend:
show: false
graph_span: 24h
yaxis:
- id: left
show: true
min: 0
max: ~10
decimals: 0
apex_config:
tickAmount: 10
- id: right
show: true
opposite: true
min: 0
max: 100
decimals: 0
series:
- entity: sensor.wsh17_solar_power
type: area
extend_to: false
name: PV production
color: rgb(154,221,174)
opacity: 1
fill_raw: last
show:
extremas: max
float_precision: 3
yaxis_id: left
- entity: sensor.wsh17_load_power
type: area
extend_to: false
name: Home consumption
color: rgb(242,112,112)
opacity: 1
fill_raw: last
float_precision: 3
yaxis_id: left
- entity: sensor.wsh17_load_from_own_power
type: area
extend_to: false
name: ...from PV & PW2
color: rgb(117,187,218)
opacity: 1
fill_raw: last
float_precision: 3
yaxis_id: left
- entity: sensor.wsh17_load_from_battery_power
type: area
extend_to: false
name: ...from PW2
color: rgb(204,153,255)
opacity: 1
fill_raw: last
float_precision: 3
yaxis_id: left
- entity: sensor.wsh17_charge
type: line
extend_to: now
name: PW2 charge
color: rgb(0,0,139)
opacity: 1
fill_raw: last
float_precision: 3
yaxis_id: right
type: custom:apexcharts-card
graph_span: 7d
span:
start: day
offset: '-6d'
apex_config:
chart:
height: 333
legend:
show: false
header:
show_states: false
colorize_states: true
title: Energy stats per day for last seven days
show: true
stacked: false
series:
- entity: sensor.wsh17_load_import
type: column
name: Home consumption
color: rgb(237,51,51)
show:
datalabels: true
group_by:
func: diff
duration: 1d
- entity: sensor.wsh17_solar_export
type: column
name: Solar production
color: rgb(0,176,80)
show:
datalabels: true
group_by:
func: diff
duration: 1d
- entity: sensor.wsh17_load_from_own_energy
type: column
name: ...from solar & PW2
color: rgb(103,190,255)
show:
datalabels: false
group_by:
func: diff
duration: 1d
type: custom:apexcharts-card
chart_type: pie
graph_span: 24h
apex_config:
chart:
height: 333
legend:
show: false
header:
show_states: true
colorize_states: true
title: Production last 24h
show: true
series:
- entity: sensor.wsh17_solar_export
name: PV production
color: rgb(0,176,80)
group_by:
func: diff
duration: 24h
show:
in_chart: false
- entity: sensor.wsh17_load_from_own_energy
name: Eigenverbrauch
type: column
color: rgb(117,187,218)
group_by:
func: diff
duration: 24h
show:
datalabels: percent
- entity: sensor.wsh17_load_from_own_energy
name: EV-Wert
transform: return x * 0.2687
color: rgb(117,187,218)
group_by:
func: diff
duration: 24h
show:
in_chart: false
unit: €
- entity: sensor.wsh17_site_export
name: Einspeisung
type: column
color: rgb(154,221,174)
group_by:
func: diff
duration: 24h
show:
datalabels: percent
- entity: sensor.wsh17_site_export
name: Vergütung
transform: return x * 0.0811
color: rgb(154,221,174)
group_by:
func: diff
duration: 24h
show:
in_chart: false
unit: €
type: custom:apexcharts-card
chart_type: pie
graph_span: 24h
apex_config:
chart:
height: 333
legend:
show: false
header:
show_states: true
colorize_states: true
title: Consumption last 24h
show: true
series:
- entity: sensor.wsh17_load_import
name: Gesamtverbrauch
type: column
color: rgb(237,51,51)
group_by:
func: diff
duration: 24h
show:
in_chart: false
- entity: sensor.wsh17_site_import
name: Zukauf kWh
type: column
color: rgb(241,92,92)
group_by:
func: diff
duration: 24h
show:
datalabels: percent
- entity: sensor.wsh17_site_import
name: Zukauf Euro
transform: return x * 0.2687
color: rgb(241,92,92)
group_by:
func: diff
duration: 24h
show:
in_chart: false
unit: €
- entity: sensor.wsh17_tl22432600004k_battery_import
name: from PW2
type: column
color: rgb(204,153,255)
group_by:
func: diff
duration: 24h
show:
datalabels: percent
- entity: sensor.wsh17_load_from_solar_energy
name: from PV
color: rgb(117,187,218)
group_by:
func: diff
duration: 24h
show:
datalabels: percent