Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/owntone group support #751

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

JanGiese
Copy link

Hi,
I have added owntone to the plattforms and changed the behahavior of the group to use on/off instead of join/unjoin for owntone.

Cheers,
Jan

@kalkih kalkih changed the base branch from master to dev May 9, 2023 15:55
@@ -80,7 +81,7 @@ class MiniMediaPlayerGroupList extends LitElement {
@change=${this.handleGroupChange}
.item=${item}
.hass=${this.hass}
.checked=${itemId === entityId || this.group.includes(itemId)}
.checked=${(this.player.config.speaker_group.platform === PLATFORM.OWNTONE && this.hass.states[itemId].state !== "off") || itemId === entityId || this.group.includes(itemId)}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should try to not have platform specific logic spread throughout components, let's handle that in the Media Player model class.
Also how does the owntone checked logic work?
Should all owntone entities that are not "off" be considered as grouped? that doesn't seem right to me?

@kalkih kalkih added the enhancement New feature or request label May 9, 2023
@PablaV
Copy link

PablaV commented Oct 13, 2023

Checked this out and seems to work fairly well for owntone users would love to see this merged if possible for others to enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants