I’m far from a coder. I am a novice when it comes to coding, and when I look at code, my mind goes blank…it’s Chinese to me it’ll take me a lifetime to learn Chinese… that’s why I have Google translate…
frankly I’m surprised I got this far…
My goal isn’t to understand how to code/how the code works…
My goal is to copy, paste, and hope for the best…
If it works as intended, that’s a plus…
I’m setting this up for a friend who has less patience than me… I almost have no hair left trying to figure out how to do this…
Do you think grok or ChatGPT would work to compile the code that I need?
In short: Any and all assistance would be most welcomed and appreciated…
@Mr.Robot, I’m a little lost as to what the issue or issues are or what you’re trying to accomplish. Can you summarize where you’re at?
My sliders work, and the volume changes between zero and 100%. Mute is programmed to set the volume to zero. When you say your sliders are out of sync, where are you observing this? Are you talking about a single output or your master slider?
I don’t know much about music assistant, but from a quick read, it streams music to a device, so you would need a device connected to C4 to stream to. I didn’t see anything about outputting directly from home assistant. I use a Sonos Play connected to my C4.
More code is needed than what @bigmac posted, and I don’t understand my his mute code has + new_volume. The mute function in my media_player.py is coded to set the volume to zero because I didn’t know the command to mute when writing it.
If you want help, please summarize where you are at and what you’re trying to solve.
To tell you why this is not supported, I’d need to know what “this” is.
I assume “this” means wanting the C4 custom component to be able to join all channels together. The mini media player group function joins different devices, like multiple Sonos amps, using the Sonos media players’ join function. This was never contemplated when I wrote the C4 component.
I’d have to wrap my head around adding a join function to the C4 media player, as I don’t know of a native “join channels” command. It’s more than I can take on right now.
I handle this type of situation with scripts. I have a script to turn off all channels, and a few scripts to turn on multiple channels for specific situations. e.g., “turn on outside” turns on all three levels of my deck speakers. “turn on bedroom” turns on both the bedroom and bedroom bathroom speakers.
Anyone else not working after updating to Core 2024.10.3?
I get these warnings anytime I try to change inputs, and get no audio out no matter what source I choose:
This error originated from a custom integration.
Logger: custom_components.control4-media-player.media_player
Source: custom_components/control4-media-player/media_player.py:149
integration: control4-media-player
First occurred: 3:38:35 PM (34 occurrences)
Last logged: 3:42:17 PM
Source set to Home Assistant
Source set to Gym Bridge
Source set to Bridge
Source set to Server
Thanks @Hansen8601! I ended up power cycling the amplifier, and it is working again…very strange. I was listening to it right before the upgrade. I will have to keep an eye on that.