diff --git a/config/lovelace/advanced_dashboard/09_system.yaml b/config/lovelace/advanced_dashboard/09_system.yaml index 6c1ca65..366b389 100644 --- a/config/lovelace/advanced_dashboard/09_system.yaml +++ b/config/lovelace/advanced_dashboard/09_system.yaml @@ -79,6 +79,11 @@ cards: tap_action: none entities: - automation.tv_join_beam_to_sonos_group_when_off + - automation.tv_state_sync_on_tv_on + - automation.tv_state_sync_on_tv_off + - automation.tv_state_sync_on_shield_on + - automation.tv_state_sync_on_shield_off + - type: divider - automation.tv_plex_setup_house_for_plex - automation.tv_plex_restore_house_after_plex - automation.youtube_download_latest_pds diff --git a/config/lovelace/home_dashboard/main_dashboard.yaml b/config/lovelace/home_dashboard/main_dashboard.yaml index 68ccc0e..4b7093c 100644 --- a/config/lovelace/home_dashboard/main_dashboard.yaml +++ b/config/lovelace/home_dashboard/main_dashboard.yaml @@ -94,6 +94,8 @@ - type: custom:button-card template: default entity: media_player.living_room_tv + tap_action: + action: toggle - type: custom:button-card template: default entity: switch.titanium_power diff --git a/config/packages/modules/media/tv.yaml b/config/packages/modules/media/tv.yaml index 60393d6..0a2e173 100644 --- a/config/packages/modules/media/tv.yaml +++ b/config/packages/modules/media/tv.yaml @@ -76,6 +76,45 @@ automation: data: master: media_player.master_bedroom entity_id: media_player.living_room + - alias: TV · State · Sync on TV on + trigger: + platform: state + entity_id: media_player.living_room_tv + to: "on" + action: + - service: media_player.turn_on + entity_id: media_player.nvidia_shield + + - alias: TV · State · Sync on TV off + trigger: + platform: state + entity_id: media_player.living_room_tv + to: "off" + action: + - service: media_player.turn_off + entity_id: media_player.nvidia_shield + + - alias: TV · State · Sync on Shield on + trigger: + platform: state + entity_id: media_player.nvidia_shield + from: "off" + action: + - service: media_player.turn_on + entity_id: media_player.living_room_tv + - service: media_player.select_source + entity_id: media_player.living_room_tv + data: + source: "Shield" + + - alias: TV · State · Sync on Shield off + trigger: + platform: state + entity_id: media_player.nvidia_shield + to: "off" + action: + - service: media_player.turn_off + entity_id: media_player.living_room_tv homeassistant: customize: