From d1b840a490b7ac555bf003d7f45d11111fd95c81 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 29 Apr 2020 00:33:57 +0300 Subject: [PATCH] TV UI tweaks --- config/advanced-lovelace.yaml | 10 +- config/floorplan-lovelace.yaml | 1 + .../advanced_dashboard/08_remotes.yaml | 10 + .../{08_network.yaml => 09_network.yaml} | 0 .../{09_system.yaml => 10_system.yaml} | 0 .../{10_covid_19.yaml => 11_covid_19.yaml} | 0 .../advanced_dashboard/12_remotes.yaml | 372 ------------------ .../{11_test.yaml => 12_test.yaml} | 0 .../cards/bulsatcom_remote_card.yaml | 268 +++++++++++++ .../cards/hdmi_swtich_remote_card.yaml | 93 +++++ .../home_dashboard/main_dashboard.yaml | 25 +- config/lovelace/popup_cards.yaml | 44 ++- config/packages/modules/media/tv.yaml | 22 ++ 13 files changed, 452 insertions(+), 393 deletions(-) create mode 100644 config/lovelace/advanced_dashboard/08_remotes.yaml rename config/lovelace/advanced_dashboard/{08_network.yaml => 09_network.yaml} (100%) rename config/lovelace/advanced_dashboard/{09_system.yaml => 10_system.yaml} (100%) rename config/lovelace/advanced_dashboard/{10_covid_19.yaml => 11_covid_19.yaml} (100%) delete mode 100644 config/lovelace/advanced_dashboard/12_remotes.yaml rename config/lovelace/advanced_dashboard/{11_test.yaml => 12_test.yaml} (100%) create mode 100644 config/lovelace/decluttering_templates/cards/bulsatcom_remote_card.yaml create mode 100644 config/lovelace/decluttering_templates/cards/hdmi_swtich_remote_card.yaml diff --git a/config/advanced-lovelace.yaml b/config/advanced-lovelace.yaml index 63def24..0c5b043 100644 --- a/config/advanced-lovelace.yaml +++ b/config/advanced-lovelace.yaml @@ -19,8 +19,8 @@ views: - !include lovelace/advanced_dashboard/05_hallway.yaml - !include lovelace/advanced_dashboard/06_lights.yaml - !include lovelace/advanced_dashboard/07_media.yaml - - !include lovelace/advanced_dashboard/08_network.yaml - - !include lovelace/advanced_dashboard/09_system.yaml - - !include lovelace/advanced_dashboard/10_covid_19.yaml - - !include lovelace/advanced_dashboard/11_test.yaml - - !include lovelace/advanced_dashboard/12_remotes.yaml + - !include lovelace/advanced_dashboard/08_remotes.yaml + - !include lovelace/advanced_dashboard/09_network.yaml + - !include lovelace/advanced_dashboard/10_system.yaml + - !include lovelace/advanced_dashboard/11_covid_19.yaml + - !include lovelace/advanced_dashboard/12_test.yaml diff --git a/config/floorplan-lovelace.yaml b/config/floorplan-lovelace.yaml index 7b40291..589f2f1 100644 --- a/config/floorplan-lovelace.yaml +++ b/config/floorplan-lovelace.yaml @@ -2,6 +2,7 @@ custom_header: hide_header: true decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates +button_card_templates: !include_dir_merge_named lovelace/button_card_templates popup_cards: !include lovelace/popup_cards.yaml title: Floorplan diff --git a/config/lovelace/advanced_dashboard/08_remotes.yaml b/config/lovelace/advanced_dashboard/08_remotes.yaml new file mode 100644 index 0000000..1ba959c --- /dev/null +++ b/config/lovelace/advanced_dashboard/08_remotes.yaml @@ -0,0 +1,10 @@ +title: Remotes +path: remotes +icon: mdi:remote +cards: + - type: horizontal-stack + cards: + - type: custom:decluttering-card + template: hdmi_switch_remote_card + - type: custom:decluttering-card + template: bulsatcom_remote_card diff --git a/config/lovelace/advanced_dashboard/08_network.yaml b/config/lovelace/advanced_dashboard/09_network.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/08_network.yaml rename to config/lovelace/advanced_dashboard/09_network.yaml diff --git a/config/lovelace/advanced_dashboard/09_system.yaml b/config/lovelace/advanced_dashboard/10_system.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/09_system.yaml rename to config/lovelace/advanced_dashboard/10_system.yaml diff --git a/config/lovelace/advanced_dashboard/10_covid_19.yaml b/config/lovelace/advanced_dashboard/11_covid_19.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/10_covid_19.yaml rename to config/lovelace/advanced_dashboard/11_covid_19.yaml diff --git a/config/lovelace/advanced_dashboard/12_remotes.yaml b/config/lovelace/advanced_dashboard/12_remotes.yaml deleted file mode 100644 index 9e62b0b..0000000 --- a/config/lovelace/advanced_dashboard/12_remotes.yaml +++ /dev/null @@ -1,372 +0,0 @@ -title: Remotes -path: remotes -icon: mdi:remote -cards: - - type: horizontal-stack - cards: - - type: picture-elements - image: /local/images/remotes/hdmi_switcher.png - style: | - ha-card { - width: 60% - } - elements: - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_1 - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 9.6% - left: 19.5% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_2 - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 9.6% - left: 50% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_3 - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 9.6% - left: 80.5% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_4 - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 23% - left: 19.5% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_next - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 23% - left: 80.5% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_pip - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 63.7% - left: 19.5% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_sel - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 63.7% - left: 50% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.hdmi_switch_enter - tap_action: - action: toggle - style: - width: 23.6% - height: 11.8% - top: 63.7% - left: 80.5% - border-radius: 50% - - - type: picture-elements - image: /local/images/remotes/bulsatcom.png - style: | - ha-card { - width: 60% - } - elements: - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_power - tap_action: - action: toggle - style: - width: 23.6% - height: 6.8% - top: 6.6% - left: 22% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_mute - tap_action: - action: toggle - style: - width: 23.6% - height: 6.8% - top: 6.6% - left: 81% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_ok - tap_action: - action: toggle - style: - width: 42.1% - height: 12% - top: 23% - left: 51.2% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_left - tap_action: - action: toggle - style: - width: 18% - height: 5% - top: 23% - left: 19% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_right - tap_action: - action: toggle - style: - width: 18% - height: 5% - top: 23% - left: 83.8% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_up - tap_action: - action: toggle - style: - width: 50% - height: 4% - top: 14% - left: 51% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_down - tap_action: - action: toggle - style: - width: 50% - height: 4% - top: 32% - left: 51% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_back - tap_action: - action: toggle - style: - width: 23.6% - height: 6.8% - top: 39% - left: 21.2% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_menu - tap_action: - action: toggle - style: - width: 28% - height: 8% - top: 43.5% - left: 51.4% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_info - tap_action: - action: toggle - style: - width: 23.6% - height: 6.8% - top: 39% - left: 81.2% - border-radius: 50% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_volume_down - tap_action: - action: toggle - style: - width: 36.9% - height: 6.2% - top: 54% - left: 29.4% - border-top-left-radius: 45% - border-bottom-left-radius: 45% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_volume_up - tap_action: - action: toggle - style: - width: 36.9% - height: 6.2% - top: 54% - left: 72% - border-top-right-radius: 45% - border-bottom-right-radius: 45% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_1 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 62.5% - left: 20.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_2 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 62.5% - left: 51% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_3 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 62.5% - left: 81.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_4 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 69.5% - left: 20.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_5 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 69.5% - left: 51% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_6 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 69.5% - left: 81.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_7 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 76.5% - left: 21.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_8 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 76.5% - left: 51% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_9 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 76.5% - left: 81.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_epg - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 83.5% - left: 21.5% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_0 - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 83.5% - left: 51% - border-radius: 40% - - type: image - image: /local/images/floorplan/transparent.png - entity: script.bulsatcom_clock - tap_action: - action: toggle - style: - width: 22.2% - height: 4% - top: 83.5% - left: 81.5% - border-radius: 40% - diff --git a/config/lovelace/advanced_dashboard/11_test.yaml b/config/lovelace/advanced_dashboard/12_test.yaml similarity index 100% rename from config/lovelace/advanced_dashboard/11_test.yaml rename to config/lovelace/advanced_dashboard/12_test.yaml diff --git a/config/lovelace/decluttering_templates/cards/bulsatcom_remote_card.yaml b/config/lovelace/decluttering_templates/cards/bulsatcom_remote_card.yaml new file mode 100644 index 0000000..57c3e45 --- /dev/null +++ b/config/lovelace/decluttering_templates/cards/bulsatcom_remote_card.yaml @@ -0,0 +1,268 @@ +bulsatcom_remote_card: + card: + type: picture-elements + image: /local/images/remotes/bulsatcom.png + elements: + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_power + tap_action: + action: toggle + style: + width: 23.6% + height: 6.8% + top: 6.6% + left: 22% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_mute + tap_action: + action: toggle + style: + width: 23.6% + height: 6.8% + top: 6.6% + left: 81% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_ok + tap_action: + action: toggle + style: + width: 42.1% + height: 12% + top: 23% + left: 51.2% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_left + tap_action: + action: toggle + style: + width: 18% + height: 5% + top: 23% + left: 19% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_right + tap_action: + action: toggle + style: + width: 18% + height: 5% + top: 23% + left: 83.8% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_up + tap_action: + action: toggle + style: + width: 50% + height: 4% + top: 14% + left: 51% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_down + tap_action: + action: toggle + style: + width: 50% + height: 4% + top: 32% + left: 51% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_back + tap_action: + action: toggle + style: + width: 23.6% + height: 6.8% + top: 39% + left: 21.2% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_menu + tap_action: + action: toggle + style: + width: 28% + height: 8% + top: 43.5% + left: 51.4% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_info + tap_action: + action: toggle + style: + width: 23.6% + height: 6.8% + top: 39% + left: 81.2% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_volume_down + tap_action: + action: toggle + style: + width: 36.9% + height: 6.2% + top: 54% + left: 29.4% + border-top-left-radius: 45% + border-bottom-left-radius: 45% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_volume_up + tap_action: + action: toggle + style: + width: 36.9% + height: 6.2% + top: 54% + left: 72% + border-top-right-radius: 45% + border-bottom-right-radius: 45% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_1 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 62.5% + left: 20.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_2 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 62.5% + left: 51% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_3 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 62.5% + left: 81.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_4 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 69.5% + left: 20.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_5 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 69.5% + left: 51% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_6 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 69.5% + left: 81.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_7 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 76.5% + left: 21.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_8 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 76.5% + left: 51% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_9 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 76.5% + left: 81.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_epg + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 83.5% + left: 21.5% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_0 + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 83.5% + left: 51% + border-radius: 40% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.bulsatcom_clock + tap_action: + action: toggle + style: + width: 22.2% + height: 4% + top: 83.5% + left: 81.5% + border-radius: 40% + diff --git a/config/lovelace/decluttering_templates/cards/hdmi_swtich_remote_card.yaml b/config/lovelace/decluttering_templates/cards/hdmi_swtich_remote_card.yaml new file mode 100644 index 0000000..a9d7db6 --- /dev/null +++ b/config/lovelace/decluttering_templates/cards/hdmi_swtich_remote_card.yaml @@ -0,0 +1,93 @@ +hdmi_switch_remote_card: + card: + type: picture-elements + image: /local/images/remotes/hdmi_switcher.png + elements: + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_1 + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 9.6% + left: 19.5% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_2 + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 9.6% + left: 50% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_3 + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 9.6% + left: 80.5% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_4 + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 23% + left: 19.5% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_next + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 23% + left: 80.5% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_pip + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 63.7% + left: 19.5% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_sel + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 63.7% + left: 50% + border-radius: 50% + - type: image + image: /local/images/floorplan/transparent.png + entity: script.hdmi_switch_enter + tap_action: + action: toggle + style: + width: 23.6% + height: 11.8% + top: 63.7% + left: 80.5% + border-radius: 50% diff --git a/config/lovelace/home_dashboard/main_dashboard.yaml b/config/lovelace/home_dashboard/main_dashboard.yaml index 4b7093c..e8a6ceb 100644 --- a/config/lovelace/home_dashboard/main_dashboard.yaml +++ b/config/lovelace/home_dashboard/main_dashboard.yaml @@ -70,11 +70,10 @@ - type: custom:button-card template: default entity: media_player.nvidia_shield + name: TV + icon: mdi:television tap_action: - action: call-service - service: media_player.toggle - service_data: - entity_id: media_player.nvidia_shield + action: toggle state: - value: 'playing' styles: @@ -93,12 +92,15 @@ - type: custom:button-card template: default - entity: media_player.living_room_tv - tap_action: - action: toggle + entity: switch.titanium_power + - type: custom:button-card template: default - entity: switch.titanium_power + entity: sensor.synology_dsm_type_volume_1 + name: Platinum + icon: mdi:nas + tap_action: + action: more-info - type: horizontal-stack cards: @@ -109,13 +111,6 @@ - type: custom:button-card template: default entity: fan.philips_airpurifier - - type: custom:button-card - template: default - entity: sensor.synology_dsm_type_volume_1 - name: Platinum - icon: mdi:nas - tap_action: - action: more-info - type: custom:button-card template: default entity: binary_sensor.pi_hole_enabled diff --git a/config/lovelace/popup_cards.yaml b/config/lovelace/popup_cards.yaml index b8b128a..632cdff 100644 --- a/config/lovelace/popup_cards.yaml +++ b/config/lovelace/popup_cards.yaml @@ -124,12 +124,45 @@ media_player.master_bedroom: variables: - player: media_player.master_bedroom -media_player.nvidia_shield: +media_player.nvidia_shield: &nvidia_shield title: TV style: *popup_style card: type: vertical-stack cards: + - type: horizontal-stack + cards: + - type: custom:button-card + icon: mdi:set-top-box + name: Set to Shield + template: default + tap_action: + action: call-service + service: media_player.select_source + service_data: + entity_id: media_player.living_room_tv + source: Shield + + - type: custom:button-card + name: Set to Switch + icon: mdi:video-input-hdmi + template: default + tap_action: + action: call-service + service: media_player.select_source + service_data: + entity_id: media_player.living_room_tv + source: Switch + + + - type: custom:button-card + name: Bulsatcom + icon: mdi:remote-tv + template: default + tap_action: + action: call-service + service: script.tv_bulsatcom_toggle + - type: "custom:mini-media-player" entity: media_player.nvidia_shield @@ -141,6 +174,15 @@ media_player.nvidia_shield: variables: - player: media_player.living_room + - type: horizontal-stack + cards: + - type: custom:decluttering-card + template: hdmi_switch_remote_card + - type: custom:decluttering-card + template: bulsatcom_remote_card + +media_player.living_room_tv: *nvidia_shield + light.living_room_main_lights: title: Living room lights style: *popup_style diff --git a/config/packages/modules/media/tv.yaml b/config/packages/modules/media/tv.yaml index 0a2e173..74cbf65 100644 --- a/config/packages/modules/media/tv.yaml +++ b/config/packages/modules/media/tv.yaml @@ -36,6 +36,22 @@ script: media_content_id: "https://www.youtube.com/watch?v=AWKzr6n0ea0" media_content_type: video/youtube + tv_bulsatcom_toggle: + icon: mdi:remote-tv + alias: TV · Bulsatcom toggle + sequence: + - service: script.bulsatcom_power + - condition: state + entity_id: media_player.living_room_tv + state: "off" + - service: media_player.turn_on + entity_id: media_player.living_room_tv + - service: script.hdmi_switch_1 + - service: media_player.select_source + entity_id: media_player.living_room_tv + data: + source: Switch + latest_pds: alias: Play the latest PDS sequence: @@ -60,6 +76,10 @@ script: volume_level: "{{ volume_level | default(0.3) }}" - service: media_player.turn_on entity_id: media_player.nvidia_shield + - service: media_player.select_source + entity_id: media_player.living_room_tv + data: + source: Shield automation: - alias: TV · Join Beam to Sonos group when off @@ -76,6 +96,7 @@ automation: data: master: media_player.master_bedroom entity_id: media_player.living_room + - alias: TV · State · Sync on TV on trigger: platform: state @@ -107,6 +128,7 @@ automation: data: source: "Shield" + - alias: TV · State · Sync on Shield off trigger: platform: state