Bedroom tv turn off after 30 minutes
This commit is contained in:
parent
23c7ce3f5c
commit
1c3b54c35b
@ -2,7 +2,7 @@
|
|||||||
alias: '[Bedroom] TV On'
|
alias: '[Bedroom] TV On'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: switch.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
to: 'on'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -15,7 +15,7 @@
|
|||||||
alias: '[Bedroom] TV Off'
|
alias: '[Bedroom] TV Off'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: switch.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
to: 'off'
|
to: 'off'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -28,8 +28,20 @@
|
|||||||
alias: '[Bedroom] TV turn off at night'
|
alias: '[Bedroom] TV turn off at night'
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: state
|
||||||
at: "01:30:00"
|
entity_id: input_select.home_mode
|
||||||
|
state: 'Night'
|
||||||
|
for:
|
||||||
|
minutes: 30
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: 'Night'
|
||||||
|
for:
|
||||||
|
minutes: 60
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: 'Night'
|
||||||
action:
|
action:
|
||||||
- service: media_player.turn_off
|
- service: media_player.turn_off
|
||||||
target:
|
target:
|
||||||
@ -40,7 +52,7 @@
|
|||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: switch.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
to: 'on'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
@ -52,7 +64,7 @@
|
|||||||
entity_id: media_player.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.bedroom_tv
|
entity_id: media_player.bedroom_tv
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.bedroom_lights
|
- light.bedroom_lights
|
||||||
|
Loading…
Reference in New Issue
Block a user