hansen-hasst/packages/harmony/harmony.yaml
2024-06-09 17:11:17 +02:00

89 lines
2.3 KiB
YAML
Executable File

script:
# Turn on Denon
denon_listen_music:
sequence:
- service: media_player.turn_on
target:
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
- delay:
seconds: 30
- service: media_player.select_source
data:
source: HEOS Music
target:
entity_id: media_player.denon_avr_x1600h
- delay:
seconds: 2
- service: media_player.volume_set
data:
volume_level: 0.25
target:
entity_id: media_player.denon_avr_x1600h
- service: remote.send_command
target:
device_id: 13079d62ad53d8991b26238c5594adca
data:
device: "75263914"
command: Play
# Turn on Switch plus Music
denon_play_switch:
sequence:
- service: script.turn_on
target:
entity_id: script.tv_turn_on
- service: media_player.turn_on
target:
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
- delay:
seconds: 5
- service: media_player.select_source
data:
source: HEOS Music
target:
entity_id: media_player.denon_avr_x1600h
- service: remote.send_command
target:
device_id: 13079d62ad53d8991b26238c5594adca
data:
device: "78200006"
command: InputHdmi1
# Turn on Steam Link
denon_play_steam:
sequence:
- service: script.turn_on
target:
entity_id: script.tv_turn_on
- service: remote.send_command
target:
device_id: media_player.denon_avr_x1600h
data:
device: "78200006"
command: InputHdmi2
- service: media_player.turn_on
target:
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
- delay:
seconds: 5
- service: media_player.select_source
data:
source: Steam Link
target:
entity_id: media_player.denon_avr_x1600h
- service: media_player.volume_set
data:
volume_level: 0.45
#Turn off TV and Denon
denon_tv_turn_off:
sequence:
- service: media_player.turn_off
target:
device_id: 5ec213f0aedf10ff7fdff1d05ae6ead6
- service: switch.turn_off
target:
entity_id: switch.livingroom_tv_socket_switch