From 57531a5a238043e136a19e9428e8afbff42af104 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Mon, 6 Apr 2026 12:59:42 +0200 Subject: [PATCH] Refine dashboards and vacation automations --- dashboards/dashboard.yaml | 3 - dashboards/views/02_rooms.yaml | 90 +++++++++++-------- include/automations/vacation_end.yaml | 45 +++++----- include/automations/vacation_stop_manual.yaml | 27 +++--- ui-lovelace.yaml | 6 -- 5 files changed, 92 insertions(+), 79 deletions(-) delete mode 100644 dashboards/dashboard.yaml diff --git a/dashboards/dashboard.yaml b/dashboards/dashboard.yaml deleted file mode 100644 index 5e46f0f..0000000 --- a/dashboards/dashboard.yaml +++ /dev/null @@ -1,3 +0,0 @@ -views: !include_dir_list dashboards/views - - diff --git a/dashboards/views/02_rooms.yaml b/dashboards/views/02_rooms.yaml index cbfb198..2004a21 100644 --- a/dashboards/views/02_rooms.yaml +++ b/dashboards/views/02_rooms.yaml @@ -15,65 +15,93 @@ sections: entity: media_player.stue name: Sonos Stue + - type: media-control + entity: media_player.alrum + name: Sonos Alrum + - type: media-control entity: media_player.denon_avr_x2300w name: Denon AVR - - type: entities - title: Afspilningsinfo - entities: - - media_player.stue - - media_player.denon_avr_x2300w - - # 💡 Lys + # 💡 Lys (kompakt + alle lys) - type: grid + columns: 3 + square: false cards: - type: heading heading: Lys - - type: light - entity: light.stue - name: Stue Lys + - type: tile + entity: light.livingroom + name: Alle lys + icon: mdi:lightbulb-group + tap_action: + action: toggle - - type: light - entity: light.stue_spot - name: Spot + - type: tile + entity: light.raket + name: Raket + tap_action: + action: toggle - - type: light - entity: light.stue_lysekrone - name: Lysekrone + - type: tile + entity: light.spisebord + name: Spisebord + tap_action: + action: toggle - - type: light - entity: light.stue_indirekte - name: Indirekte + - type: tile + entity: light.syd + name: Syd + tap_action: + action: toggle + + - type: tile + entity: light.panton + name: Panton + tap_action: + action: toggle + + - type: tile + entity: light.pendle + name: Pendle + tap_action: + action: toggle - # 🪟 Gardiner + # 🪟 Gardiner (kompakt) - type: grid + columns: 3 + square: false cards: - type: heading heading: Gardiner - - type: cover + - type: tile + entity: cover.alle_gardiner + name: Alle + icon: mdi:blinds + + - type: tile entity: cover.hojre name: Højre - - type: cover + - type: tile entity: cover.midt name: Midt - - type: cover + - type: tile entity: cover.syd name: Syd - - type: cover + - type: tile entity: cover.venstre name: Venstre - - type: cover + - type: tile entity: cover.terrasse_dor - name: Terrasse dør + name: Terrasse # 🌡️ Temperatur @@ -83,13 +111,5 @@ sections: heading: Temperatur - type: tile - entity: sensor.sovevaerelse_stue_temperatur + entity: sensor.stue_motion_temperatur name: Temperatur - - - type: tile - entity: sensor.sovevaerelse_stue_luftfugtighed - name: Luftfugtighed - - - type: tile - entity: sensor.sovevaerelse_stue_carbon_dioxide - name: CO₂ diff --git a/include/automations/vacation_end.yaml b/include/automations/vacation_end.yaml index 372a5eb..f96a57c 100644 --- a/include/automations/vacation_end.yaml +++ b/include/automations/vacation_end.yaml @@ -1,26 +1,27 @@ -alias: Vacation Mode - Stop ved slutdato -trigger: - - platform: time_pattern - minutes: "/1" +- alias: Vacation Mode - Stop ved slutdato + trigger: + - platform: time_pattern + minutes: "/1" -condition: - - condition: state - entity_id: input_boolean.vacation_mode - state: "on" + condition: + - condition: state + entity_id: input_boolean.vacation_mode + state: "on" - - condition: template - value_template: > - {% set dt = states('input_datetime.vacation_end') %} - {{ dt not in ['unknown','unavailable',''] and - now() >= as_datetime(dt) }} + - condition: template + value_template: > + {% set dt = states('input_datetime.vacation_end') %} + {{ dt not in ['unknown','unavailable',''] and + now() >= as_datetime(dt) }} -action: - - service: input_boolean.turn_off - target: - entity_id: - - input_boolean.vacation_mode - - input_boolean.presence_simulation + action: + - service: input_boolean.turn_off + target: + entity_id: + - input_boolean.vacation_mode + - input_boolean.presence_simulation - - service: media_player.media_stop - target: - entity_id: media_player.kokken + - service: media_player.media_stop + target: + entity_id: + - media_player.kokken diff --git a/include/automations/vacation_stop_manual.yaml b/include/automations/vacation_stop_manual.yaml index f0b4c51..72f88ec 100644 --- a/include/automations/vacation_stop_manual.yaml +++ b/include/automations/vacation_stop_manual.yaml @@ -1,15 +1,16 @@ -alias: Vacation Mode - Manuel stop -trigger: - - platform: state - entity_id: input_boolean.vacation_mode - to: "off" +- alias: Vacation Mode - Manuel stop + trigger: + - platform: state + entity_id: input_boolean.vacation_mode + to: "off" -action: - - service: input_boolean.turn_off - target: - entity_id: input_boolean.presence_simulation - - - service: media_player.media_stop - target: - entity_id: media_player.kokken + action: + - service: input_boolean.turn_off + target: + entity_id: + - input_boolean.presence_simulation + - service: media_player.media_stop + target: + entity_id: + - media_player.kokken diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 0c4b105..b8183cb 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -1,11 +1,5 @@ # ui-lovelace.yaml -# 1. Resources til custom cards -resources: - - url: /hacsfiles/lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js - type: module - - url: /hacsfiles/button-card/button-card.js - type: module # 2. Selve views