1
0
ansible-home-assistant/scripts/20.tv.yaml

121 lines
3.1 KiB
YAML
Raw Normal View History

2021-04-03 20:55:49 +00:00
tv_nintendo_switch:
alias: Nintendo Switch
2021-05-24 22:10:22 +00:00
icon: mdi:nintendo-switch
2021-04-03 20:55:49 +00:00
sequence:
- service: switch.turn_on
2021-09-13 23:08:00 +00:00
entity_id: switch.harmonyhub_play_nintendo_switch
2021-04-03 20:55:49 +00:00
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
2021-09-05 17:17:28 +00:00
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: game
2022-04-05 22:29:44 +00:00
tv_xbox:
alias: Xbox Series X
icon: mdi:microsoft-xbox
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_xbox
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: game
2021-04-05 09:44:03 +00:00
tv_ps4:
alias: PlayStation 4
2021-05-24 22:10:22 +00:00
icon: mdi:sony-playstation
2021-04-05 09:44:03 +00:00
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_play_ps4
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
2021-09-05 17:17:28 +00:00
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: game
2022-04-05 22:29:44 +00:00
tv_atv:
alias: Android TV
icon: mdi:android
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.harmonyhub_shield_tv
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_shield_tv
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- delay: 5
- service: androidtv.adb_command
data:
command: HOME
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
tv_f1tv:
alias: tv F1
icon: mdi:android
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.harmonyhub_shield_tv
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_shield_tv
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- delay: 5
- service: androidtv.adb_command
data:
command: HOME
entity_id: media_player.nvidia_shield
- delay: 5
- service: media_player.select_source
data:
source: com.formulaone.production
target:
entity_id: media_player.nvidia_shield
- delay: 5
- service: androidtv.adb_command
data:
command: CENTER
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
2021-04-03 20:55:49 +00:00
tv_off:
alias: 'TV Off'
2021-05-24 22:10:22 +00:00
icon: mdi:power
2021-04-03 20:55:49 +00:00
sequence:
2021-09-05 17:17:28 +00:00
- service: remote.turn_off
target:
entity_id: remote.harmonyhub