MA zone - error
Hi,
No playbacks via the MA zone. I'm attaching the log.
Thank you
Hi, thanks for the log — that pinpoints it.
Looking at the events for zone 2 ("Stereo výstup 1 - Levá") I see three failures every play attempt:
MA play skipped; api unavailablefrom the zone'smusicassistantoutputQueue lox-stereo-v-stup-1-lev is not availablefromplayer_queues/play_mediaQueue Pracovna is emptyfromplayers/cmd/play
These all point to the same root cause: your Music Assistant bridge (bridge-musicassistant-k708rg) is currently in source mode, but zone 2 has a musicassistant output configured — and that output requires the bridge to be in sink mode. Without that, the server can't ask the linked MA player to take over playback, so playback falls back to the empty-queue paths you see.
Two ways forward, depending on what you want:
- If you want MA players to act as the speakers for the Loxone zone — open Content, edit the MA bridge and switch it to sink mode. Then re-pick the MA player under the zone's output settings.
- If you want MA to stream into the Loxone audio server's own outputs — keep the bridge on source mode but change the zone 2 output to something else (e.g. sendspin or sonos directly).
The current admin UI doesn't make this trade-off obvious enough — I've just pushed changes so that:
- the MA option is hidden/disabled in the zone-output picker when no sink-mode bridge exists,
- selecting a source-mode bridge in the player picker now shows a clear callout instead of just listing players,
- the server logs the actual reason on each skipped play (so future logs will explicitly say "bridge is in source mode" instead of just "api unavailable").
Could you confirm the bridge mode in Content and let me know which of the two options matches what you want? Then I can verify the config is doing what you expect.
Hi,
Thank you so much for the advice, but unfortunately I don't know how to switch the MA to "link mode." There is no such option in the MA Bridge settings. Could you please show me the screen where I can find this option?
Can you upgrade to the latest dev release and try again?
This is the latest version… I think so :)
I forgot to push the latest adminui containing those features. The adminui has its own repo. You should be on v4.4.2.
You can obtain it using the setup tab and selecting updates. If you check for updates you should see webui release v4.4.2.
After installing that update you should see the options you need. You can also redeploy the container using the latest dev, but you need to refetch it. Dont use the existing image from cache.
It works great after the update.
1/Unfortunately, if I play music from another source, e.g., via AirPlay, the feedback isn’t immediately visible in Loxone. When I pause playback in Loxone, I stop the song that’s playing via AirPlay. Which is probably fine as long as the song displayed in Loxone is the same as the one playing via AirPlay. Tested on Apple Music and Radio.
The song displayed via AirPlay in Loxone only works if I first play the song through Loxone from the MA source. However, playing via AirPlay does not stop the song that was previously playing in Loxone.
2/ In the MA, information about the currently playing track from Loxone is not visible.
Glad to hear the original problem is fixed.
A few things on what you're seeing now:
Restart first. Your log still shows the old source-mode sendspin clients (lox-stereo-v-stup-1-lev, lox-audio-p-ehr-va) trying to reconnect every ~15s with EHOSTUNREACH 192.168.1.197:8095. The bridge is in sink mode now, but those clients were created when it was in source mode and they live on until the process restarts. Please restart the lox-audioserver instance — that'll clear the leftover state and the logs will be a lot cleaner for any further triage.
About the use case. Worth being upfront about who Music Assistant support is built for. It's primarily intended for users who already run MA as their main music server and just mirror player state to Loxone. The added value is that Loxone can see what MA is doing — so you can automate on player state, or use Loxone light-switch controls to drive playback that's actually happening in MA. In sink mode this is what unlocks the interesting bit: play actions that happen in MA outside of Loxone (you starting AirPlay on a Sonos via MA, someone casting from another app, MA playlists firing on a schedule, …) become visible to Loxone.
What works fully from the Loxone side:
MA-bridged content — anything served through the MA bridge (MA library, MA's own streaming integrations, …) plays cleanly when you start it from Loxone, because the content lives on the MA side and we just invoke it via the MA API. That's the supported Loxone-driven flow. What's still experimental in sink mode:
Loxone-native content — the local library, radio (TuneIn), zone inputs (AirPlay-in), and other bridge services besides MA itself. That's where the gaps you're hitting actually live: AirPlay metadata only shows up after first triggering something via Loxone, and Loxone-streamed audio arrives in MA's UI without track metadata. A few metadata-improvement patches did land on dev recently, so some of this may already feel better there. These are real gaps and we'll do our best to close them, but if you're reaching for MA because you want to use lox-audioserver, sink mode (or MA in general) is not the recommended way to do that. It's specifically built for users who are already fully on MA. If MA isn't your primary music server, you're paying the cost of the extra link in the chain (and the rough edges that come with it) without getting much in return.
If those follow-ups are blockers for your setup, happy to talk through alternatives; otherwise the takeaway is: restart the server to clear the source-mode residue, and let me know if anything still misbehaves after that.
Thank you for explaining the whole concept. My problem is that I’m looking for a solution that works for me, because…
I have a system built on SONOS devices + AirPlay devices. AirPlay playback doesn’t work for me on SONOS, and feedback from SONOS to Loxone doesn’t work either. AirPlay on HomePod works fine. That’s why I tried going the MA route.
It would be enough for me if playback in Loxone turned off when the AirPlay source is changed. 🙏🏻🙏🏻🙏🏻
In any case, thank you for the great work
Let's see what we can do with this. Could you clarify a few things for me?
Your scenario is
Playback initiated from loxone > music is playing > you start a direct airplay stream against sonos/ma > music on the speaker is the airplay stream > loxone pretends to be still playing the previous track
Right?
Could you als clarify which sonos devices you are using, as there are two different apis available for these devices.
As for the sonos state controller. I think we can fix this, but I need proper logs as I do not have a sonos device myself. If we can get this working I believe this will be the preferred setup for you. If you can get me some spam logs I will see if we can get it functional.
please use https://github.com/lox-audioserver/lox-audioserver/issues/167 to work on this issue.
Your scenario is
Playback initiated from loxone > music is playing > you start a direct airplay stream against sonos/ma > music on the speaker is the airplay stream > loxone pretends to be still playing the previous track
Right?
Yes
Could you als clarify which sonos devices you are using, as there are two different apis available for these devices.
Sonos Port, S2 API
As for the sonos state controller. I think we can fix this, but I need proper logs as I do not have a sonos device myself. If we can get this working I believe this will be the preferred setup for you. If you can get me some spam logs I will see if we can get it functional.
please use #167 to work on this issue.
I will add the logs to the issue https://github.com/lox-audioserver/lox-audioserver/issues/167
this latest fix might solve your issue. Its available on the latest beta