Behaviour automations for bedroom tvb
This commit is contained in:
parent
0ef7c08550
commit
4dd88af3fa
@ -23,3 +23,30 @@
|
||||
state: Day
|
||||
action:
|
||||
- service: script.bedroom_tv_off_scene
|
||||
|
||||
- id: bedroom-tv-turn-off-at-night
|
||||
alias: '[Bedroom] TV turn off at night'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: time
|
||||
at: "02:00:00"
|
||||
action:
|
||||
- service: media_player.turn_off
|
||||
target:
|
||||
entity_id: media_player.bedroom_tv
|
||||
|
||||
- id: bedroom-tv-off-at-night
|
||||
alias: '[Bedroom] TV stay off at night'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: switch.bedroom_tv
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: time
|
||||
before: "06:00:00"
|
||||
after: "02:00:00"
|
||||
action:
|
||||
- service: media_player.turn_off
|
||||
target:
|
||||
entity_id: media_player.bedroom_tv
|
||||
|
Loading…
Reference in New Issue
Block a user