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

176 lines
4.7 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
entity_id: switch.harmonyhub_play_a_game
- service: media_player.select_source
data:
source: TV
target:
entity_id: media_player.living_room
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-04-03 20:55:49 +00:00
tv_twitch:
alias: Twitch
2021-05-24 22:10:22 +00:00
icon: mdi:twitch
2021-04-03 20:55:49 +00:00
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
2021-07-23 22:50:28 +00:00
- service: media_player.select_source
data:
source: 'AndroidTV Launcher'
target:
entity_id: media_player.nvidia_shield
- delay: 1
2021-04-03 20:55:49 +00:00
- service: media_player.select_source
data:
source: Twitch
target:
entity_id: media_player.nvidia_shield
tv_youtube:
alias: YouTube
2021-05-24 22:10:22 +00:00
icon: mdi:youtube
2021-04-03 20:55:49 +00:00
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
2021-07-23 22:50:28 +00:00
- service: media_player.select_source
data:
source: 'AndroidTV Launcher'
target:
entity_id: media_player.nvidia_shield
- delay: 1
2021-04-03 20:55:49 +00:00
- service: media_player.select_source
data:
source: YouTube
target:
entity_id: media_player.nvidia_shield
tv_netflix:
alias: Netflix
2021-05-24 22:10:22 +00:00
icon: mdi:netflix
2021-04-03 20:55:49 +00:00
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
2021-07-23 22:50:28 +00:00
- service: media_player.select_source
data:
source: 'AndroidTV Launcher'
target:
entity_id: media_player.nvidia_shield
- delay: 1
2021-04-03 20:55:49 +00:00
- service: media_player.select_source
data:
source: Netflix
target:
entity_id: media_player.nvidia_shield
2021-07-23 22:50:28 +00:00
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: media_player.select_source
data:
source: 'AndroidTV Launcher'
target:
entity_id: media_player.nvidia_shield
- delay: 1
- service: media_player.select_source
data:
source: 'HBO GO'
target:
entity_id: media_player.nvidia_shield
2021-04-03 20:55:49 +00:00
tv_firefox:
alias: Firefox
2021-05-24 22:10:22 +00:00
icon: mdi:firefox
2021-04-03 20:55:49 +00:00
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
2021-07-23 22:50:28 +00:00
- service: media_player.select_source
data:
source: 'AndroidTV Launcher'
target:
entity_id: media_player.nvidia_shield
- delay: 1
2021-04-03 20:55:49 +00:00
- service: media_player.select_source
data:
source: Firefox
target:
entity_id: media_player.nvidia_shield
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:
- service: switch.turn_off
entity_id: switch.harmonyhub_play_a_game
- service: switch.turn_off
entity_id: switch.harmonyhub_shield_tv