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
@@ -5,5 +5,5 @@ panel: true
cards:
- type: iframe
url: /local/snapshots/indkorsel_loader.html?v=20260625061240
url: /local/snapshots/indkorsel_loader.html?v=20260628084733
aspect_ratio: 100%
+92
View File
@@ -496,6 +496,98 @@ sections:
entity: binary_sensor.dethlefsen_drive_4_below_min_remaining_life
name: Disk 4 levetid
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "on"
card:
type: tile
entity: sensor.dethlefsen_drive_1_temperature
name: Disk 1 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "off"
- condition: numeric_state
entity: sensor.dethlefsen_drive_1_temperature
above: 50
card:
type: tile
entity: sensor.dethlefsen_drive_1_temperature
name: Disk 1 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "on"
card:
type: tile
entity: sensor.dethlefsen_drive_2_temperature
name: Disk 2 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "off"
- condition: numeric_state
entity: sensor.dethlefsen_drive_2_temperature
above: 50
card:
type: tile
entity: sensor.dethlefsen_drive_2_temperature
name: Disk 2 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "on"
card:
type: tile
entity: sensor.dethlefsen_drive_3_temperature
name: Disk 3 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "off"
- condition: numeric_state
entity: sensor.dethlefsen_drive_3_temperature
above: 50
card:
type: tile
entity: sensor.dethlefsen_drive_3_temperature
name: Disk 3 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "on"
card:
type: tile
entity: sensor.dethlefsen_drive_4_temperature
name: Disk 4 temperatur
- type: conditional
conditions:
- condition: state
entity: input_boolean.vis_alle_vedligehold
state: "off"
- condition: numeric_state
entity: sensor.dethlefsen_drive_4_temperature
above: 50
card:
type: tile
entity: sensor.dethlefsen_drive_4_temperature
name: Disk 4 temperatur
- type: grid
cards:
- type: conditional