From ef15d5ba65fdb39184b745d05941cd340769bcf9 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Tue, 6 Oct 2026 05:59:05 +0200 Subject: [PATCH] =?UTF-8?q?lys=5Fstue:=20nat-fejemand=2000-05:30=20(fanger?= =?UTF-8?q?=20app-t=C3=A6ndt=20lys=20efter=20natfallback;=20pendle1=20br?= =?UTF-8?q?=C3=A6ndte=20hele=20natten=205-6/10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboards/views/06c_indkorsel_snapshots.yaml | 2 +- include/automations/lys_stue.yaml | 29 +++++++++++++++++++ www/mealie.json | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/dashboards/views/06c_indkorsel_snapshots.yaml b/dashboards/views/06c_indkorsel_snapshots.yaml index b891183..5426ed7 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=20261005204449 + url: /local/snapshots/indkorsel_loader.html?v=20261005220433 aspect_ratio: 100% diff --git a/include/automations/lys_stue.yaml b/include/automations/lys_stue.yaml index 67a2bab..aa0e1d0 100644 --- a/include/automations/lys_stue.yaml +++ b/include/automations/lys_stue.yaml @@ -162,3 +162,32 @@ - service: light.turn_off target: entity_id: light.livingroom + +# Nat-fejemand: fanger lys taendt manuelt (fx Hue-app) efter natfallback 23:30. +# Hver 30. min 00-05:30: sluk stuen hvis TV er slukket og ingen bevaegelse i 45 min. +- id: stue_nat_fejemand + alias: Stue nat-fejemand + trigger: + - platform: time_pattern + minutes: "/30" + condition: + - condition: time + after: "00:00:00" + before: "05:31:00" + - condition: state + entity_id: light.livingroom + state: "on" + - condition: not + conditions: + - condition: state + entity_id: media_player.samsung + state: "on" + - condition: state + entity_id: binary_sensor.stue_bevaegelse + state: "off" + for: + minutes: 45 + action: + - service: light.turn_off + target: + entity_id: light.livingroom diff --git a/www/mealie.json b/www/mealie.json index fe33ef3..049f13f 100644 --- a/www/mealie.json +++ b/www/mealie.json @@ -1 +1 @@ -{"count": 5, "items": [{"date": "2026-10-06", "recipe": {"name": "Lasagne", "slug": "lasagne"}}, {"date": "2026-10-08", "recipe": {"name": "Rester fra Kylling i Karry a la Ristaffel", "slug": ""}}, {"date": "2026-10-09", "recipe": {"name": "Laks med sesam og citron", "slug": "laks-med-sesam-og-citron"}}, {"date": "2026-10-05", "recipe": {"name": "Spaghetti Bolognese - pasta med k\u00f8dsovs", "slug": "spaghetti-bolognese-pasta-med-kodsovs"}}, {"date": "2026-10-07", "recipe": {"name": "Pastasalat med kylling", "slug": "pastasalat-med-kylling"}}]} \ No newline at end of file +{"count": 4, "items": [{"date": "2026-10-06", "recipe": {"name": "Lasagne", "slug": "lasagne"}}, {"date": "2026-10-08", "recipe": {"name": "Rester fra Kylling i Karry a la Ristaffel", "slug": ""}}, {"date": "2026-10-09", "recipe": {"name": "Laks med sesam og citron", "slug": "laks-med-sesam-og-citron"}}, {"date": "2026-10-07", "recipe": {"name": "Pastasalat med kylling", "slug": "pastasalat-med-kylling"}}]} \ No newline at end of file