question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grouping of media_player domain (and HEOS)

See original GitHub issue

Hi @kalkih and thanks for your awesome card! I’ve used it for a long time, and also did a custom integration for HEOS to enable grouping. In HA 2021.12 grouping was added to the official integration of HEOS after a really long time and a architectural discussion on how to organize grouping of media players in HA.

However, we see some issues with the card in combination with your card. Basic grouping (1+1 player) works just fine, but trying to add a second player to the group it replaces the first player with the second one. According to the official HEOS integration docs all members should be part of the group_members call, not only the recently added. I do not know if this is the case for HEOS only, but I would believe that after such a long architectural discussion it had been decided that this is the way once the HEOS feature was added. Would you happen to know what is correct?

See the forum for discussions on the subject. Below an animation of what happens taken from the forum: heos-mini-media-card

I did a tweak to my fork of your card in handleGroupChange:

        case PLATFORM.MEDIAPLAYER:
          let members = this.group;
          members.shift() // remove master from list
          members.push(entity); // add new entity to group
          return this.callService(e, 'join', {
            entity_id: this.entityId,
            group_members: members,
          }, platform);

and this seems to achieve what I want it to. I would be happy to propose a PR on this, but I would like to hear your opinion on how to do it first.

PS! Once done, HEOS should be added to the supported players list 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kalkihcommented, Mar 3, 2022

https://github.com/kalkih/mini-media-player/pull/607 now available in latest release, great stuff @tmjo 👍🏼

1reaction
tmjocommented, Feb 14, 2022

Great, I’ll propose a PR. Thought I had it ready, but ran into some issues with the Ungroup button (when ungrouping whole group), but it may be a temporary problem in my installation. I’ll do some more testing before presenting the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heos Group support - Feature Requests
I have a similar configuration. 3x HEOS1 speakers and 1x HEOS3 speaker. I've noticed the following difference in grouping with the official ...
Read more >
GROUPING MY HEOS SPEAKER SYSTEMS - Denon Support
To Group your HEOS systems, please select Rooms from the HEOS App. Then press, hold down and drag the system(s) you want to...
Read more >
kalkih/mini-media-player: Minimalistic media card for ... - GitHub
A minimalistic yet customizable media player card for Home Assistant Lovelace UI. ... v0.1, An entity_id from an entity within the media_player domain....
Read more >
SACD 30n SACD Player - CD/SACD & Digital Hi-Res Formats
The Marantz™ SACD 30n is your all-in-one solution for playing CDs, SACDs, high-resolution files and multiple music streaming services. Shop online.
Read more >
Denon | How do I group my HEOS speakers? - YouTube
Would you like to know how to group your HEOS speakers? Just follow this quick and easy explanation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found