nugget / python-anthemav

Python asyncio module to interface with Anthem AVM and MRX receivers
MIT License
17 stars 26 forks source link

Support for Setting and changing speaker profiles #32

Closed blackgold9 closed 2 years ago

blackgold9 commented 2 years ago

Hi! Please consider adding support for getting and setting speaker profiles. I'm interested in automating them via home assistant.

Thanks!

Hyralex commented 2 years ago

What I'm planning to do is to add a service to home assistant that would allow to send any commands to the receiver. To change profile, the command would be SSPxxy (xx=input, y=profile).

blackgold9 commented 2 years ago

Would the ha component then use that to make a t a top level input/selector?

Hyralex commented 2 years ago

It would be more that you could set an input_select in HA and then have an automation to call the service with the selected value.

But this would be a short term solution. I'm planning to add those features directly integrated to the components, but I'll start with listening mode first

Hyralex commented 2 years ago

What anthem receiver are you using? how many profile are available? Edit: Looks like all models x20 and x40 have 4 profiles

blackgold9 commented 2 years ago

I have the MRX 1140 with 4 speaker profiles.

On Tue, Jun 28, 2022 at 10:31 PM Alex Henry @.***> wrote:

What anthem receiver are you using? how many profile are available?

— Reply to this email directly, view it on GitHub https://github.com/nugget/python-anthemav/issues/32#issuecomment-1169550253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABUILJSL3VDKPDN7Q2KBXTVRPNR3ANCNFSM5Z7BLKZA . You are receiving this because you authored the thread.Message ID: @.***>

blackgold9 commented 2 years ago

I see how the short term approach could be super helpful until you've had time to fully integrate it.

blackgold9 commented 2 years ago

I just realized this doesn’t work the way I thought it did. Speaker profiles is per-input, so a profile setting would be a bit complicated to use (would involve editing individual inputs).

Hyralex commented 2 years ago

I was thinking to implement it based on the current selected input. So when you change the input, it would show the profile for the current input. And changing the profile would save it on the current input. I implemented it for ARC on/off with a switch in home assistant. With that done, if your purpose is to apply the same profile to every input, you could then have an automation that set the profile every time the current input is changed.