Sync Audio for media_player.media_group

Hey,

I am trying to side step Googles functions in my Home Assistant as much as possible. One of the last things that still exists, and has recently been a bit of a problem, is speaker groups. To not rely on Googles software, I setup a whole home media player group, and it almost works perfect.

The only issue I have is 1 speaker with a delay (media_player.living_room_googletv: from a chromecast and through my TV’s sound bar). I could fix that in google home, but now that I am not using that as the control for the group I can’t find a way to add an audio delay.

This is my group:

media_player:
  - platform: group
    name: Whole House
    entities:
    - media_player.bar_speaker
    - media_player.game_room_speaker
    - media_player.google_home
    - media_player.jasons_bedstand
    - media_player.jens_bedstand
    - media_player.kitchen_display
    - media_player.living_room_googletv
    - media_player.master_bath_speaker
    - media_player.master_bedroom_speaker
    - media_player.nesthub1407

It is called through a script using spotcast:

liked_songs_wholehome:
  alias: Plays the Liked Songs Playlist -WH
  sequence:
  - service: media_player.volume_mute
    data:
      is_volume_muted: true
    target:
      entity_id:
      - media_player.bar_speaker
      - media_player.game_room_speaker
      - media_player.google_home
      - media_player.jasons_bedstand
      - media_player.jens_bedstand
      - media_player.kitchen_display
      - media_player.living_room_googletv
      - media_player.master_bath_speaker
      - media_player.nesthub1407
      - media_player.master_bedroom_speaker
  - service: spotcast.start
    data:
      entity_id: media_player.whole_house
      uri: spotify:playlist:#################
      random_song: true
      shuffle: true
  - delay:
      seconds: 5
  - service: media_player.volume_mute
    data:
      is_volume_muted: false
    target:
      entity_id:
      - media_player.bar_speaker
      - media_player.game_room_speaker
      - media_player.google_home
      - media_player.jasons_bedstand
      - media_player.jens_bedstand
      - media_player.kitchen_display
      - media_player.living_room_googletv
      - media_player.master_bath_speaker
      - media_player.nesthub1407
      - media_player.master_bedroom_speaker

Is there a way to fix this?

2 Likes

Have you achieved this till now?