Hallo zusammen,
ich brauche mal wieder Hilfe, ich habe mir schon recht erfolgreich ein Diagramm gebaut. Komme aber in einem Punkt nicht weiter.
Wenn ich mit der Maus über die Grafik fahre, wird mir nur der PV Wert angezeigt nicht der Hausverbrauch. Ich möchte beide Werte in einem Tooltip haben.
Könnt ihr mir helfen? Chat GPT war mal wieder nicht hilfreich.
Danke vorab
type: custom:apexcharts-card
header:
show: true
title: PV & Hausverbrauch – 14 Tage
show_states: true
colorize_states: true
graph_span: 14d
update_interval: 30min
apex_config:
chart:
background: "#f5f5f5"
legend:
show: true
position: top
stroke:
width: 3
grid:
borderColor: "#c8c8c8"
strokeDashArray: 3
dataLabels:
enabled: true
tooltip:
shared: true
intersect: false
followCursor: true
yaxis:
- id: left
decimalsInFloat: 0
labels:
formatter: |
EVAL: (val) => `${val}kWh`
colors:
- "#f5ce89"
- "#28baf3"
xaxis:
tooltip:
enabled: false
series:
- entity: sensor.s10x_solar_production_today
name: PV-Ertrag
type: line
curve: smooth
yaxis_id: left
statistics:
type: state
period: day
- entity: sensor.s10x_house_consumption_today
name: Hausverbrauch
type: column
yaxis_id: left
statistics:
type: state
period: day
