46 lines
1.2 KiB
YAML
Executable File
46 lines
1.2 KiB
YAML
Executable File
script:
|
|
netflix_and_chill:
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: device
|
|
type: is_off
|
|
device_id: ff2addb4c1638a2277c0198d9ec18844
|
|
entity_id: switch.livingroom_tv_socket_switch
|
|
domain: switch
|
|
sequence:
|
|
- service: script.turn_on
|
|
target:
|
|
entity_id: script.tv_turn_on
|
|
- service: script.turn_on
|
|
target:
|
|
entity_id: script.denon_watch_firetv
|
|
default:
|
|
- service: script.turn_on
|
|
target:
|
|
entity_id: script.denon_watch_firetv
|
|
mode: single
|
|
|
|
denon_watch_firetv:
|
|
sequence:
|
|
- service: remote.send_command
|
|
target:
|
|
device_id: 13079d62ad53d8991b26238c5594adca
|
|
data:
|
|
device: "78200006"
|
|
command: InputHdmi2
|
|
- service: media_player.turn_on
|
|
target:
|
|
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
|
|
- service: media_player.select_source
|
|
data:
|
|
source: Fire TV Stick
|
|
target:
|
|
entity_id: media_player.denon_avr_x1600h
|
|
- delay:
|
|
seconds: 2
|
|
- service: media_player.volume_set
|
|
data:
|
|
volume_level: 0.35
|
|
target:
|
|
entity_id: media_player.denon_avr_x1600h |