lys_stue: nat-fejemand 00-05:30 (fanger app-tændt lys efter natfallback; pendle1 brændte hele natten 5-6/10)
This commit is contained in:
1 parent
c9e6498d20
commit
ef15d5ba65
3 files changed
+31
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user