From cd3b9f5b83ab9ae996c9cff120ea80c08ff05622 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 5 Sep 2021 19:17:28 +0200 Subject: [PATCH] Add setting hue sync settings with tv --- scripts/20.android-tv.yaml | 42 ++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/scripts/20.android-tv.yaml b/scripts/20.android-tv.yaml index af76a8c..ed8da86 100644 --- a/scripts/20.android-tv.yaml +++ b/scripts/20.android-tv.yaml @@ -9,6 +9,11 @@ tv_nintendo_switch: 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 @@ -20,6 +25,11 @@ tv_ps4: 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 @@ -49,6 +59,11 @@ tv_twitch: 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 @@ -78,6 +93,11 @@ tv_youtube: 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 @@ -107,6 +127,11 @@ tv_netflix: 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 @@ -136,6 +161,11 @@ tv_hbogo: 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 @@ -165,11 +195,15 @@ tv_firefox: 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: switch.turn_off - entity_id: switch.harmonyhub_play_a_game - - service: switch.turn_off - entity_id: switch.harmonyhub_shield_tv + - service: remote.turn_off + target: + entity_id: remote.harmonyhub