diff --git a/dashboards/views/05b_vanding.yaml b/dashboards/views/05b_vanding.yaml index fdb475a..027171a 100644 --- a/dashboards/views/05b_vanding.yaml +++ b/dashboards/views/05b_vanding.yaml @@ -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 diff --git a/dashboards/views/06c_indkorsel_snapshots.yaml b/dashboards/views/06c_indkorsel_snapshots.yaml index b2a3f91..c94071b 100644 --- a/dashboards/views/06c_indkorsel_snapshots.yaml +++ b/dashboards/views/06c_indkorsel_snapshots.yaml @@ -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% diff --git a/dashboards/views/11_vedligehold.yaml b/dashboards/views/11_vedligehold.yaml index 515e018..6fa5643 100644 --- a/dashboards/views/11_vedligehold.yaml +++ b/dashboards/views/11_vedligehold.yaml @@ -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 diff --git a/include/templates/vanding.yaml b/include/templates/vanding.yaml index 5e3bca2..83a4e30 100644 --- a/include/templates/vanding.yaml +++ b/include/templates/vanding.yaml @@ -59,7 +59,7 @@ unique_id: vanding_liter_i_dag_total unit_of_measurement: "L" device_class: water - state_class: total + state_class: total_increasing icon: mdi:water state: > {% set ns = namespace(t=0) %} diff --git a/www/mealie.json b/www/mealie.json index 966b58d..87006e8 100644 --- a/www/mealie.json +++ b/www/mealie.json @@ -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"}}]} \ No newline at end of file +{"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"}}]} \ No newline at end of file