diff --git a/scripts/20.android-tv.yaml b/scripts/20.tv.yaml similarity index 82% rename from scripts/20.android-tv.yaml rename to scripts/20.tv.yaml index 95e3e87..a8cbd1b 100644 --- a/scripts/20.android-tv.yaml +++ b/scripts/20.tv.yaml @@ -14,6 +14,22 @@ tv_nintendo_switch: entity_id: media_player.sync_box data: mode: game +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 tv_ps4: alias: PlayStation 4 icon: mdi:sony-playstation @@ -30,6 +46,33 @@ tv_ps4: entity_id: media_player.sync_box data: mode: game +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_twitch: alias: Twitch icon: mdi:twitch