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 entity: binary_sensor.annes_vanding_rainsensor
name: Regnsensor 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 - type: grid
cards: cards:
- type: heading - type: heading
@@ -5,5 +5,5 @@ panel: true
cards: cards:
- type: iframe - type: iframe
url: /local/snapshots/indkorsel_loader.html?v=20260625061240 url: /local/snapshots/indkorsel_loader.html?v=20260628084733
aspect_ratio: 100% aspect_ratio: 100%
+92
View File
@@ -496,6 +496,98 @@ sections:
entity: binary_sensor.dethlefsen_drive_4_below_min_remaining_life entity: binary_sensor.dethlefsen_drive_4_below_min_remaining_life
name: Disk 4 levetid 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 - type: grid
cards: cards:
- type: conditional - type: conditional
+1 -1
View File
@@ -59,7 +59,7 @@
unique_id: vanding_liter_i_dag_total unique_id: vanding_liter_i_dag_total
unit_of_measurement: "L" unit_of_measurement: "L"
device_class: water device_class: water
state_class: total state_class: total_increasing
icon: mdi:water icon: mdi:water
state: > state: >
{% set ns = namespace(t=0) %} {% set ns = namespace(t=0) %}
+1 -1
View File
@@ -1 +1 @@
{"count": 7, "items": [{"date": "2026-07-01", "recipe": {"name": "Spaghetti i tomatsauce med k\u00f8dboller", "slug": "spaghetti-i-tomatsauce-med-kodboller"}}, {"date": "2026-06-30", "recipe": {"name": "Paprikagryde \u2013 en klassisk m\u00f8rbradgryde", "slug": "paprikagryde-en-klassisk-morbradgryde"}}, {"date": "2026-06-29", "recipe": {"name": "Spaghetti i tomatsauce med k\u00f8dboller", "slug": "spaghetti-i-tomatsauce-med-kodboller"}}, {"date": "2026-06-28", "recipe": {"name": "Paprikagryde \u2013 en klassisk m\u00f8rbradgryde", "slug": "paprikagryde-en-klassisk-morbradgryde"}}, {"date": "2026-06-27", "recipe": {"name": "Laks p\u00e5 grill med citron og krydderurter", "slug": "laks-pa-grill-med-citron-og-krydderurter"}}, {"date": "2026-06-26", "recipe": {"name": "Citrongr\u00e6s marineret m\u00f8rbrad med nudler", "slug": "citrongraes-marineret-morbrad-med-nudler"}}, {"date": "2026-06-25", "recipe": {"name": "Macaroni and cheese", "slug": "macaroni-and-cheese"}}]} {"count": 5, "items": [{"date": "2026-07-02", "recipe": {"name": "Tomatsuppe med nudler og ostebr\u00f8d", "slug": "tomatsuppe-med-nudler-og-ostebrod"}}, {"date": "2026-07-01", "recipe": {"name": "Spaghetti i tomatsauce med k\u00f8dboller", "slug": "spaghetti-i-tomatsauce-med-kodboller"}}, {"date": "2026-06-30", "recipe": {"name": "Paprikagryde \u2013 en klassisk m\u00f8rbradgryde", "slug": "paprikagryde-en-klassisk-morbradgryde"}}, {"date": "2026-06-29", "recipe": {"name": "Spaghetti i tomatsauce med k\u00f8dboller", "slug": "spaghetti-i-tomatsauce-med-kodboller"}}, {"date": "2026-06-28", "recipe": {"name": "Paprikagryde \u2013 en klassisk m\u00f8rbradgryde", "slug": "paprikagryde-en-klassisk-morbradgryde"}}]}