Update automation to turn off tv at night
This commit is contained in:
parent
4ccff6bce7
commit
fcbe56f443
@ -29,7 +29,7 @@
|
|||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: "02:00:00"
|
at: "01:30:00"
|
||||||
action:
|
action:
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
target:
|
target:
|
||||||
@ -44,9 +44,17 @@
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
before: "06:00:00"
|
before: "09:00:00"
|
||||||
after: "02:00:00"
|
after: "01:30:00"
|
||||||
action:
|
action:
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
|
- service: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.bedroom_tv
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_lights
|
||||||
|
- light.bed_lightstrip
|
||||||
|
- light.bed_lamps
|
||||||
|
@ -50,11 +50,10 @@ bedroom_all_lights_off:
|
|||||||
alias: '[Bedroom] All lights off'
|
alias: '[Bedroom] All lights off'
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.bedroom_lights
|
entity_id:
|
||||||
- service: light.turn_off
|
- light.bedroom_lights
|
||||||
entity_id: light.bed_lightstrip
|
- light.bed_lightstrip
|
||||||
- service: light.turn_off
|
- light.bed_lamps
|
||||||
entity_id: light.bed_lamps
|
|
||||||
|
|
||||||
bedroom_bed_lamp_toggle:
|
bedroom_bed_lamp_toggle:
|
||||||
alias: '[Bedroom] Bed lamps toggle'
|
alias: '[Bedroom] Bed lamps toggle'
|
||||||
|
Loading…
Reference in New Issue
Block a user