Vanding: ret vandforbrug-statistik (total_increasing) og smallere månedssøjle

This commit is contained in:
2026-06-28 08:49:34 +02:00
parent da92c94089
commit f6b77e0db1
5 changed files with 189 additions and 4 deletions
+94 -1
View File
@@ -260,7 +260,100 @@ sections:
entity: binary_sensor.annes_vanding_rainsensor
name: Regnsensor
# 📊 Vandingshistorik
# Vandforbrug (liter)
- type: grid
cards:
- type: heading
heading: Vandforbrug (liter)
icon: mdi:water
- type: custom:apexcharts-card
graph_span: 30d
span:
end: day
header:
show: true
title: Forbrug pr. dag sidste 30 dage
show_states: false
apex_config:
chart:
height: 250
dataLabels:
enabled: false
plotOptions:
bar:
columnWidth: 70%
borderRadius: 3
xaxis:
type: datetime
labels:
datetimeFormatter:
day: "dd/MM"
yaxis:
min: 0
decimalsInFloat: 0
title:
text: Liter
series:
- entity: sensor.vanding_liter_i_dag_total
name: Liter
type: column
color: "#4fc3f7"
unit: " L"
float_precision: 0
statistics:
type: change
period: day
align: start
show:
in_header: false
- type: custom:apexcharts-card
graph_span: 12month
span:
start: year
header:
show: true
title: Forbrug i år måned for måned
show_states: false
apex_config:
chart:
height: 280
dataLabels:
enabled: true
formatter: |
EVAL:function(val) { return val ? Math.round(val) + ' L' : ''; }
plotOptions:
bar:
columnWidth: 10%
borderRadius: 3
dataLabels:
position: top
xaxis:
type: datetime
labels:
datetimeFormatter:
month: "MMM"
yaxis:
min: 0
decimalsInFloat: 0
title:
text: Liter
series:
- entity: sensor.vanding_liter_i_dag_total
name: Liter
type: column
color: "#26a69a"
unit: " L"
float_precision: 0
statistics:
type: change
period: month
align: start
show:
in_header: false
# 📊 Vandingshistorik
- type: grid
cards:
- type: heading