Refine dashboards and vacation automations

This commit is contained in:
2026-04-06 12:59:42 +02:00
parent 4d8d2d721f
commit 57531a5a23
5 changed files with 92 additions and 79 deletions
-3
View File
@@ -1,3 +0,0 @@
views: !include_dir_list dashboards/views
+55 -35
View File
@@ -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₂
+23 -22
View File
@@ -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
+14 -13
View File
@@ -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
-6
View File
@@ -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