lys_stue: skift død TV-entitet samsung_s95ca_55_3 til media_player.samsung (natfallback slukkede mens Anne så TV)

This commit is contained in:
claus committed 2026-10-05 07:29:14 +02:00
1 parent 1bdf46fde6
commit 4f2ae32926
3 files changed
+7 -7

No files matched your search

@@ -5,5 +5,5 @@ panel: true
cards: cards:
- type: iframe - type: iframe
url: /local/snapshots/indkorsel_loader.html?v=20261004183304 url: /local/snapshots/indkorsel_loader.html?v=20261005072453
aspect_ratio: 100% aspect_ratio: 100%
+5 -5
View File
@@ -14,7 +14,7 @@
id: motion_off id: motion_off
- platform: state - platform: state
entity_id: media_player.samsung_s95ca_55_3 entity_id: media_player.samsung
to: "off" to: "off"
id: tv_off id: tv_off
@@ -107,7 +107,7 @@
- condition: template - condition: template
value_template: > value_template: >
{{ dagperiode not in ('aften','aften_lys') or {{ dagperiode not in ('aften','aften_lys') or
is_state('media_player.samsung_s95ca_55_3', 'off') }} is_state('media_player.samsung', 'off') }}
sequence: sequence:
- delay: - delay:
minutes: "{{ timeout_min }}" minutes: "{{ timeout_min }}"
@@ -117,7 +117,7 @@
- condition: template - condition: template
value_template: > value_template: >
{{ dagperiode not in ('aften','aften_lys') or {{ dagperiode not in ('aften','aften_lys') or
is_state('media_player.samsung_s95ca_55_3', 'off') }} is_state('media_player.samsung', 'off') }}
- service: light.turn_off - service: light.turn_off
target: target:
entity_id: light.livingroom entity_id: light.livingroom
@@ -135,7 +135,7 @@
entity_id: binary_sensor.stue_bevaegelse entity_id: binary_sensor.stue_bevaegelse
state: "off" state: "off"
- condition: state - condition: state
entity_id: media_player.samsung_s95ca_55_3 entity_id: media_player.samsung
state: "off" state: "off"
- service: light.turn_off - service: light.turn_off
target: target:
@@ -151,7 +151,7 @@
- condition: not - condition: not
conditions: conditions:
- condition: state - condition: state
entity_id: media_player.samsung_s95ca_55_3 entity_id: media_player.samsung
state: "on" state: "on"
- condition: state - condition: state
entity_id: binary_sensor.stue_bevaegelse entity_id: binary_sensor.stue_bevaegelse
+1 -1
View File
@@ -1 +1 @@
{"count": 6, "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-04", "recipe": {"name": "Koteletter i fad", "slug": "koteletter-i-fad"}}, {"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"}}]} {"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"}}]}