Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Group distribution to enable JOIN/UNJOIN services in Homeassistant #13

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

hcoohb
Copy link

@hcoohb hcoohb commented Mar 31, 2019

Hi,

I continued the work started by @CyberDNS to implement the creation groups of musiccast devices.
It works in conjuncture with an update of the home-assistant platform that brings 2 new services JOIN and UNJOIN modeled after the sonos services.
That allows to easily create/modify groups within HASS, especially with the new lovelace custom card mini media player allows grouping.

It would be great to have a new version of pymusiccast with this PR so I can start pushing it through the HA repos.
Edit: the PR is somewhat ready for HA component to use the new services: commit for HA, and the PR for the mini-media-player

Let me know what you think.
Thanks and regards

pymusiccast/helpers.py Outdated Show resolved Hide resolved
pymusiccast/zone.py Outdated Show resolved Hide resolved
pymusiccast/zone.py Outdated Show resolved Hide resolved
@jalmeroth
Copy link
Owner

Hi @hcoohb & @CyberDNS,

thank you very much for the effort you put on this PR. I appreciate your work and I would like to help you getting this thing to life. I added some comments in this PR and the related HA-PR.

I know my code is far from perfect and every day I learn something new. :) But I would recommend you to review the HA-Style Guide and HA-Testing Section. There are guideline on how to check your code with flake8/pylint, which made me aware of the above mentioned errors. They will also point out some too long lines in your code.

I am looking forward to your updates!

Best regards,
Jan

@hcoohb
Copy link
Author

hcoohb commented Apr 9, 2019

Thanks for taking the time to review!
I will make the changes from pylint asap this week.

…st push any changes to HASS without the need to poll. Passing pylint/flake8
@hcoohb
Copy link
Author

hcoohb commented Apr 21, 2019

Hi @jalmeroth ,
I have finally found some time to tidy up quite few things.
It also allows to just push update to HASS if any of the distribution changes (especially if a client leaves) rather than HASS polling to confirm clients are still connected as I had it previously. (Update HASS code:here.

I also corrected so that this code passes flake8 and pylint too.
Happy for any feedback!

Thanks and regards,

@hcoohb
Copy link
Author

hcoohb commented May 17, 2019

Hi @jalmeroth , just wondering if you had time to have a look at the new commits so far, Thanks

@hcoohb
Copy link
Author

hcoohb commented Aug 15, 2019

@jalmeroth
Hi, just wondering if you have had the chance to look at this PR ?

@jodur
Copy link

jodur commented Aug 16, 2019

Join and unjoin is the only thing that is missing. @jalmeroth please give this some attention!

@jalmeroth
Copy link
Owner

Fast-Forward some months… I finally own a second MC device and I am going to review, test and finally merge these changes soon™. I am sorry for the delay, but please bear with me.

@jodur
Copy link

jodur commented Aug 22, 2019

@jalmeroth , no problem i am glad you are still in the land of the living and did not abandoned this project.

@jalmeroth
Copy link
Owner

jalmeroth commented Sep 13, 2019

Can anyone confirm or deny, if multi-zone capable devices (like RX-A2070) are able to link zones other than main to a distribution group?

cc: @buzz-b maybe?

@buzz-b
Copy link

buzz-b commented Sep 13, 2019

Hi All, can you confirm what you mean by a distribution group. I;m not familiar with that term in my use of this great integration... :) I'm certainly able to use all my zones well now. Are you talking about 'linking' zones similar to that of the musiccast app?

@jalmeroth
Copy link
Owner

jalmeroth commented Sep 13, 2019

Are you talking about 'linking' zones similar to that of the musiccast app?

Exactly. :)

@buzz-b
Copy link

buzz-b commented Sep 15, 2019 via email

@jalmeroth
Copy link
Owner

Thank you @buzz-b! This info will help to implement this feature correctly. :)

@jalmeroth
Copy link
Owner

Hi @ALL,

I began to re-implement this PR in https://github.com/jalmeroth/pymusiccast/tree/develop, since I wasn't happy with some design decisions. It's still a work in progress and not fully functional yet, but it shows where we are heading. I will continue to work there.

Best regards,
Jan

@TheZoker
Copy link

@jalmeroth Any news on this feature?

@jay448
Copy link

jay448 commented Mar 13, 2020

@jalmeroth I'm also very curious to see the Linking feature work

@jodur
Copy link

jodur commented Jun 16, 2020

Any progress on this or is this project abandoned?

@CyberDNS
Copy link

Hi,

Is there something that can be done to push the things forward? I saw that there is another pull request from @uvjustin with no progress.

I have to admit that I am not really familiar with all the github processes nor adding all this to home-assistant, even python is not my thing 😉. So if someone is familiar with those things, I would be glad to help where I can, to make this thing possible.

Best regards,
David

@HeaDBanGer84
Copy link

@jalmeroth Pleas finish this merge! I use the custom component, but since this is the source code for the pip repository a merge and release or a comment if something needs to be done. Would be great.

@Clusters
Copy link

What's the status on this? It is still a custom component. Can the dead repo be replaced for HA?

@hcoohb
Copy link
Author

hcoohb commented May 1, 2021

For people still looking, (@Clusters ),
@ppanagiotis has implemented a custom integration based on my original PR, check it out here:
https://github.com/ppanagiotis/pymusiccast or available through HACS

Just note that with that version, you will not be able to group between zones

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants