26 lines
564 B
YAML
26 lines
564 B
YAML
- id: bedroom-tv-on
|
|
alias: '[Bedroom] TV On'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: media_player.bedroom_tv
|
|
to: 'on'
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Day
|
|
action:
|
|
- service: script.bedroom_tv_scene
|
|
|
|
- id: bedroom-tv-off
|
|
alias: '[Bedroom] TV Off'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: media_player.bedroom_tv
|
|
to: 'off'
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Day
|
|
action:
|
|
- service: script.bedroom_tv_off_scene
|