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

200 lines
5.3 KiB
YAML

tv_nintendo_switch:
alias: Nintendo Switch
icon: mdi:nintendo-switch
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_play_nintendo_switch
- 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
tv_ps4:
alias: PlayStation 4
icon: mdi:sony-playstation
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
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: game
tv_twitch:
alias: Twitch
icon: mdi:twitch
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: media_player.select_source
data:
source: Twitch
target:
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: game
tv_youtube:
alias: YouTube
icon: mdi:youtube
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: media_player.select_source
data:
source: SmartTube
target:
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
tv_netflix:
alias: Netflix
icon: mdi:netflix
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.harmonyhub_shield_tv
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_shield_tv
- delay: 5
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- service: androidtv.adb_command
data:
command: HOME
entity_id: media_player.nvidia_shield
- service: media_player.select_source
data:
source: Netflix
target:
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
tv_hbogo:
alias: HBO GO
icon: mdi:netflix
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.harmonyhub_shield_tv
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_shield_tv
- delay: 5
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- service: androidtv.adb_command
data:
command: HOME
entity_id: media_player.nvidia_shield
- service: media_player.select_source
data:
source: 'HBO GO'
target:
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
tv_firefox:
alias: Firefox
icon: mdi:firefox
sequence:
- choose:
- conditions:
- condition: state
entity_id: switch.harmonyhub_shield_tv
state: 'off'
sequence:
- service: switch.turn_on
entity_id: switch.harmonyhub_shield_tv
- delay: 5
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
- service: androidtv.adb_command
data:
command: HOME
entity_id: media_player.nvidia_shield
- service: media_player.select_source
data:
source: Firefox
target:
entity_id: media_player.nvidia_shield
- service: huesyncbox.set_sync_mode
target:
entity_id: media_player.sync_box
data:
mode: video
tv_off:
alias: 'TV Off'
icon: mdi:power
sequence:
- service: remote.turn_off
target:
entity_id: remote.harmonyhub