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:
1 parent
1bdf46fde6
commit
4f2ae32926
3 files changed
+7
-7
No files matched your search
@@ -14,7 +14,7 @@
|
||||
id: motion_off
|
||||
|
||||
- platform: state
|
||||
entity_id: media_player.samsung_s95ca_55_3
|
||||
entity_id: media_player.samsung
|
||||
to: "off"
|
||||
id: tv_off
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ dagperiode not in ('aften','aften_lys') or
|
||||
is_state('media_player.samsung_s95ca_55_3', 'off') }}
|
||||
is_state('media_player.samsung', 'off') }}
|
||||
sequence:
|
||||
- delay:
|
||||
minutes: "{{ timeout_min }}"
|
||||
@@ -117,7 +117,7 @@
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ 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
|
||||
target:
|
||||
entity_id: light.livingroom
|
||||
@@ -135,7 +135,7 @@
|
||||
entity_id: binary_sensor.stue_bevaegelse
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: media_player.samsung_s95ca_55_3
|
||||
entity_id: media_player.samsung
|
||||
state: "off"
|
||||
- service: light.turn_off
|
||||
target:
|
||||
@@ -151,7 +151,7 @@
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.samsung_s95ca_55_3
|
||||
entity_id: media_player.samsung
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.stue_bevaegelse
|
||||
|
||||
Reference in new issue
Block a user