kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.47k stars 206 forks source link

Snapcast speaker groupings #756

Open Denao2 opened 1 year ago

Denao2 commented 1 year ago

Speaker grouping using snapcast does not appear to work. I am not sure whether it is supposed to as the docs not not all features supported, but I cannot find reference to the limitations.

My card set up is as follows:

type: entities
entities:
  - type: custom:mini-media-player
    entity: media_player.snapcast_client_mac master
    name: Kitchen Speaker Group
    group: true
    source: icon
    info: short
    hide:
      volume: true
      power: true
  - type: custom:mini-media-player
    entity: media_player.snapcast_client_mac_master
    hide:
      power: true
      icon: true
      source: true
    speaker_group:
      platform: snapcast
      show_group_count: false
      entities:
        - entity_id: media_player.snapcast_client_mac_master
          name: Kitchen Speakers
        - entity_id: media_player.snapcast_client_mac_slave
          name: Pixel 6
    name: ' '
    volume_stateless: false
    group: true

The resulting card: image

However, when trying to add the "Pixel 6" speaker to the group I get no reaction on the card and the following error in the log:

Logger: snapcast.control.group
Source: components/snapcast/media_player.py:318
First occurred: 09:54:30 (18 occurrences)
Last logged: 10:16:23

mac_slave already in group group_ref

Please can you let me know whether group join/unjoin is supported for snapcast?

Denao2 commented 1 year ago

Actually, I see it does actually join the speaker but the switch state is not updated (and so not possible to unjoin). Is this a limitation of the Home Assistant snapcast integration not providing sufficient information on client current groups?

uSpike commented 5 months ago

Just adding that I see this as well. Speaker groups using snapcast will be added to the same group but the sliders in the UI don't change state.

alex-phillips commented 2 months ago

Can confirm, issue is happening with me as well. Joining works, but the UI doesn't update the switch, so unjoining is only possible by calling the service directly.