Sonos Lautsprecher
Hab ein Problem bei der neuen Beta und auch bei den vorigen Versionen mit Sonos Lautsprecher, über Airplay werden sie gefunden player startet auch aber kein Stream am Sonos, über das Sonos Binding funktiert TUNE-In Perfekt aber über Spotify extreme Verzögerungen und auch das vorlassen und abspielen von Playlisten funktioniert nicht. Was mach ich falsch ???
Wir können uns das auf jeden Fall anschauen und prüfen, ob wir hier noch etwas verbessern oder beheben können. Bitte beachte jedoch, dass das für mich etwas schwierig ist, da ich selbst keine Sonos-Hardware besitze und Spotify mit meinem Account aktuell nicht funktioniert, aufgrund der bekannten librespot-Probleme mit neueren Spotify-Accounts.
Wenn du beide Probleme zuverlässig reproduzieren kannst, stelle bitte den Loglevel auf spam, reproduziere das Verhalten und stelle uns anschließend die entsprechenden Logs zur Verfügung. Mit diesen detaillierten Logs können wir prüfen, ob es auf unserer Seite Ansatzpunkte gibt oder ob es sich um eine Einschränkung der Sonos- bzw. Spotify-Integration handelt.
Das ist aktuell der beste Weg, um herauszufinden, ob wir hier etwas tun können.
Ich teste gerade die Beta 4 mit Sonos. Was definitiv zu Problemen führt bei mir ist, wenn zwei Lautsprecher als Stereopaar eingerichtet sind. Diese werden beim Output scan als zwei separate Geräte erkannt. Music Assistant erkennt das als ein Gerät. Auch die Bezeichnung der Geräte ist nicht aufgelöst (nur Mac Adresse). Wenn ich nun einen der Stereogruppe auswähle, dann funktioniert der Ton entweder nur über diesen einen Lautsprecher, wenn ich den anderen auswähle, dann geht der Ton gar nicht. Kann man den beim Scan, gleich erkennen lassen, ob das ein Stereopaar ist und diese gesamtheitlich adressieren? Wie mach das Music Assistant?
Bei einem einzelnen Lautsprecher (hier Sonos Roam) funktioniert TTS oder Bell nur wenn aktuell keine Quelle läuft. Wenn eine Quelle läuft, dann bricht die wiedergabe ab , zeigt in Loxone, dass TTS oder Bell läuft ( man hört aber nix) und wechselt danach wieder zur Quelle.
[2026-02-06T10:25:49.899Z][DEBUG][LoxoneHttp|Processor] [command=audio/12/serviceplay/radio/nouser/https://streams.radiobob.de/bob-national/aac-64/tunein/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ] command received
[2026-02-06T10:25:50.494Z][INFO][Zones|Manager] [hasParentContext=false normalizedTarget=https://streams.radiobob.de/bob-national/aac-64/tunein resolvedTarget=https://streams.radiobob.de/bob-national/aac-64/tunein station="" type=serviceplay uri=https://streams.radiobob.de/bob-national/aac-64/tunein zoneId=12] playContent
[2026-02-06T10:25:50.497Z][DEBUG][Zones|Manager] [expandedCount=0 isAppleMusic=false isMusicAssistant=false queueSourcePath=https://streams.radiobob.de/bob-national/aac-64/tunein resolvedTarget=https://streams.radiobob.de/bob-national/aac-64/tunein zoneId=12] queue build resolved
[2026-02-06T10:25:50.498Z][DEBUG][Zones|Manager] [authority=local items=1 startIndex=0 target=tunein:station:b64_aHR0cHM6Ly9zdHJlYW1zLnJhZGlvYm9iLmRlL2JvYi1uYXRpb25hbC9hYWMtNjQvdHVuZWlu zoneId=12] queue rebuilt
[2026-02-06T10:25:50.500Z][DEBUG][Audio|UrlProxy] [proxyUrl=http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Fstreams.radiobob.de%2Fbob-national%2Faac-64%2Ftunein targetUrl=https://streams.radiobob.de/bob-national/aac-64/tunein] proxying audio url for ffmpeg
[2026-02-06T10:25:50.503Z][INFO][Audio|Manager] [hasStream=false label=tunein:station:b64_aHR0cHM6Ly9zdHJlYW1zLnJhZGlvYm9iLmRlL2JvYi1uYXRpb25hbC9hYWMtNjQvdHVuZWlu sourceKind=url zoneId=12] startWithResolvedSource
[2026-02-06T10:25:50.504Z][INFO][Audio|Engine] [zoneId=12] audio session stopped
[2026-02-06T10:25:50.505Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["aac"] zoneId=12] starting audio engine
[2026-02-06T10:25:50.507Z][INFO][Audio|Session] [maxBufferBytes=8192 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac targetLeadMs=1000 zoneId=12] audio session buffer config
[2026-02-06T10:25:50.508Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32k","-analyzeduration","0","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-headers","Icy-MetaData: 1\r\nX-Loxone-Zone: 12\r\n","-re","-i","http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Fstreams.radiobob.de%2Fbob-national%2Faac-64%2Ftunein","-vn","-acodec","aac","-ar","44100","-ac","2","-b:a","256k","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","adts","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac zoneId=12] spawning ffmpeg
[2026-02-06T10:25:50.517Z][INFO][Audio|Engine] [profile=aac source=url zoneId=12] audio session started
[2026-02-06T10:25:50.518Z][INFO][Audio|Manager] [source=tunein:station:b64_aHR0cHM6Ly9zdHJlYW1zLnJhZGlvYm9iLmRlL2JvYi1uYXRpb25hbC9hYWMtNjQvdHVuZWlu stream=12-0f51a1f3-03c3-4dc2-9f50-87461c0e7eeb title="RADIO BOB! - Livestream National" zoneId=12] playback started
[2026-02-06T10:25:50.520Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=12] dispatchOutputs
[2026-02-06T10:25:50.544Z][DEBUG][LoxoneHttp|Processor] [command=audio/12/recent] command received
[2026-02-06T10:25:50.721Z][DEBUG][Output|Sonos] [message="Failed to connect" zoneId=12] sonos s2 connect failed
[2026-02-06T10:25:50.722Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] sending playback command
[2026-02-06T10:25:50.723Z][DEBUG][Output|Sonos] [action=Stop service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:25:50.739Z][INFO][Output|Sonos] [action=Stop service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:25:50.740Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:25:50.752Z][DEBUG][Output|Sonos] [message="Failed to connect" zoneId=12] sonos s2 connect failed
[2026-02-06T10:25:50.755Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos soap request
[2026-02-06T10:25:50.759Z][INFO][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:25:50.769Z][INFO][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos action succeeded
[2026-02-06T10:25:50.769Z][INFO][Output|Sonos] [volume=27 zoneId=12] Sonos volume set
[2026-02-06T10:25:50.964Z][INFO][Audio|Session] [bytes=649 profile=aac zoneId=12] ffmpeg first chunk
[2026-02-06T10:25:51.010Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:25:51.023Z][INFO][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:25:51.024Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] Sonos playback started
[2026-02-06T10:25:51.026Z][DEBUG][Audio|Session] [label=http:192.168.178.15:aac:Linux/UPnP/1.0 profile=aac subscriberCount=1 zoneId=12] audio subscriber attached
[2026-02-06T10:26:00.626Z][DEBUG][LoxoneHttp|Processor] [command=audio/grouped/bell/12] command received
[2026-02-06T10:26:00.627Z][INFO][Alerts|Manager] [type=bell zones=[12]] ON alert
[2026-02-06T10:26:00.629Z][INFO][Audio|Manager] [hasStream=false label=alerts://bell.mp3 sourceKind=file zoneId=12] startWithResolvedSource
[2026-02-06T10:26:00.630Z][INFO][Audio|Engine] [zoneId=12] audio session stopped
[2026-02-06T10:26:00.632Z][INFO][Audio|Manager] [handoff=false kind=file profiles=["aac"] zoneId=12] starting audio engine
[2026-02-06T10:26:00.633Z][INFO][Audio|Session] [maxBufferBytes=1058400 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac targetLeadMs=1000 zoneId=12] audio session buffer config
[2026-02-06T10:26:00.634Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-probesize","256k","-analyzeduration","1M","-re","-i","/app/public/alerts/bell.mp3","-vn","-acodec","aac","-ar","44100","-ac","2","-b:a","256k","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","adts","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac zoneId=12] spawning ffmpeg
[2026-02-06T10:26:00.643Z][INFO][Audio|Engine] [profile=aac source=file zoneId=12] audio session started
[2026-02-06T10:26:00.644Z][INFO][Audio|Manager] [source=alerts://bell.mp3 stream=12-c742119a-8226-4c0b-a555-0e7153bdcbe4 title=bell zoneId=12] playback started
[2026-02-06T10:26:00.646Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=12] dispatchOutputs
[2026-02-06T10:26:00.649Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos soap request
[2026-02-06T10:26:00.651Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos soap request
[2026-02-06T10:26:00.653Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] sending playback command
[2026-02-06T10:26:00.655Z][DEBUG][Output|Sonos] [action=Stop service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:26:00.673Z][INFO][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos action succeeded
[2026-02-06T10:26:00.674Z][INFO][Output|Sonos] [volume=20 zoneId=12] Sonos volume set
[2026-02-06T10:26:00.680Z][INFO][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos action succeeded
[2026-02-06T10:26:00.681Z][INFO][Output|Sonos] [volume=20 zoneId=12] Sonos volume set
[2026-02-06T10:26:00.682Z][INFO][Audio|Session] [bytes=559 profile=aac zoneId=12] ffmpeg first chunk
[2026-02-06T10:26:01.016Z][DEBUG][Audio|Session] [zoneId=12] ffmpeg stdout closed
[2026-02-06T10:26:01.017Z][INFO][Audio|Session] [bufferedBytes=8192 code=255 earlyExit=false runMs=10508 signal=null stderr=undefined stderrAt=undefined subscribers=1 totalBytes=348245 zoneId=12] ffmpeg exited
[2026-02-06T10:26:03.157Z][DEBUG][Output|Sonos] [action=Stop message="This operation was aborted" service=AVTransport zoneId=12] optional command failed
[2026-02-06T10:26:03.162Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:26:03.669Z][DEBUG][Audio|Session] [zoneId=12] ffmpeg stdout closed
[2026-02-06T10:26:03.670Z][INFO][Audio|Session] [bufferedBytes=105655 code=0 earlyExit=true runMs=3034 signal=null stderr=undefined stderrAt=undefined subscribers=0 totalBytes=105655 zoneId=12] ffmpeg exited
[2026-02-06T10:26:03.674Z][WARN][Audio|Manager] [source=alerts://bell.mp3 zoneId=12] playback session terminated by engine
[2026-02-06T10:26:05.549Z][DEBUG][Zones|Manager] [action=stop outputCount=1 outputTypes=["sonos"] zoneId=12] dispatchOutputs
[2026-02-06T10:26:05.554Z][DEBUG][Audio|UrlProxy] [proxyUrl=http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Fstreams.radiobob.de%2Fbob-national%2Faac-64%2Ftunein targetUrl=https://streams.radiobob.de/bob-national/aac-64/tunein] proxying audio url for ffmpeg
[2026-02-06T10:26:05.556Z][INFO][Audio|Manager] [hasStream=false label=tunein:station:b64_aHR0cHM6Ly9zdHJlYW1zLnJhZGlvYm9iLmRlL2JvYi1uYXRpb25hbC9hYWMtNjQvdHVuZWlu sourceKind=url zoneId=12] startWithResolvedSource
[2026-02-06T10:26:05.557Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["aac"] zoneId=12] starting audio engine
[2026-02-06T10:26:05.559Z][INFO][Audio|Session] [maxBufferBytes=8192 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac targetLeadMs=1000 zoneId=12] audio session buffer config
[2026-02-06T10:26:05.563Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32k","-analyzeduration","0","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-headers","Icy-MetaData: 1\r\nX-Loxone-Zone: 12\r\n","-re","-i","http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Fstreams.radiobob.de%2Fbob-national%2Faac-64%2Ftunein","-vn","-acodec","aac","-ar","44100","-ac","2","-b:a","256k","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","adts","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac zoneId=12] spawning ffmpeg
[2026-02-06T10:26:05.579Z][INFO][Audio|Engine] [profile=aac source=url zoneId=12] audio session started
[2026-02-06T10:26:05.581Z][INFO][Audio|Manager] [source=tunein:station:b64_aHR0cHM6Ly9zdHJlYW1zLnJhZGlvYm9iLmRlL2JvYi1uYXRpb25hbC9hYWMtNjQvdHVuZWlu stream=12-65648829-abb2-49da-8b49-a6190bd4649d title="" zoneId=12] playback started
[2026-02-06T10:26:05.585Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=12] dispatchOutputs
[2026-02-06T10:26:05.589Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos soap request
[2026-02-06T10:26:05.592Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos soap request
[2026-02-06T10:26:05.598Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] sending playback command
[2026-02-06T10:26:05.599Z][DEBUG][Output|Sonos] [action=Stop service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:26:05.801Z][INFO][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos action succeeded
[2026-02-06T10:26:05.802Z][INFO][Output|Sonos] [volume=27 zoneId=12] Sonos volume set
[2026-02-06T10:26:05.808Z][INFO][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos action succeeded
[2026-02-06T10:26:05.810Z][INFO][Output|Sonos] [volume=27 zoneId=12] Sonos volume set
[2026-02-06T10:26:06.098Z][INFO][Audio|Session] [bytes=32 profile=aac zoneId=12] ffmpeg first chunk
[2026-02-06T10:26:08.101Z][DEBUG][Output|Sonos] [action=Stop message="This operation was aborted" service=AVTransport zoneId=12] optional command failed
[2026-02-06T10:26:08.103Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:26:10.961Z][INFO][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:26:10.969Z][INFO][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:26:11.213Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:26:11.220Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T10:26:11.230Z][INFO][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:26:11.232Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] Sonos playback started
[2026-02-06T10:26:11.236Z][DEBUG][Audio|Session] [label=http:192.168.178.15:aac:Linux/UPnP/1.0 profile=aac subscriberCount=1 zoneId=12] audio subscriber attached
[2026-02-06T10:26:11.245Z][INFO][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T10:26:11.246Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] Sonos playback started
Bei Music Assistant und version Lox-Audio 3.1.0 wurden die TTS als "overlay" zur laufenden Quelle eingemischt, kann das hier auch wieder eingebaut werden?
Ein verwenden von MA als Quelle ist ja quasi nicht mehr vorgesehen oder?
Umschaltzeit zwischen Radiosender teilweise extrem lang. An einfacher Sonos Box getestet:
[2026-02-06T11:13:22.163Z][DEBUG][LoxoneHttp|Processor] [command=audio/12/serviceplay/radio/nouser/https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ] command received
[2026-02-06T11:13:22.787Z][INFO][Zones|Manager] [hasParentContext=false normalizedTarget=https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920 resolvedTarget=https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920 station="" type=serviceplay uri=https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920 zoneId=12] playContent
[2026-02-06T11:13:22.789Z][DEBUG][Zones|Manager] [expandedCount=0 isAppleMusic=false isMusicAssistant=false queueSourcePath=https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920 resolvedTarget=https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920 zoneId=12] queue build resolved
[2026-02-06T11:13:22.791Z][DEBUG][Zones|Manager] [authority=local items=1 startIndex=0 target=tunein:station:b64_aHR0cHM6Ly9yczQuc3RyZWFtMjQubmV0L3Vuc2VyLXJhZGlvLm1wMz90dW5laW5faHNfMDgwOTIw zoneId=12] queue rebuilt
[2026-02-06T11:13:22.795Z][DEBUG][Audio|UrlProxy] [proxyUrl=http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Frs4.stream24.net%2Funser-radio.mp3%3Ftunein_hs_080920 targetUrl=https://rs4.stream24.net/unser-radio.mp3?tunein_hs_080920] proxying audio url for ffmpeg
[2026-02-06T11:13:22.797Z][INFO][Audio|Manager] [hasStream=false label=tunein:station:b64_aHR0cHM6Ly9yczQuc3RyZWFtMjQubmV0L3Vuc2VyLXJhZGlvLm1wMz90dW5laW5faHNfMDgwOTIw sourceKind=url zoneId=12] startWithResolvedSource
[2026-02-06T11:13:22.798Z][INFO][Audio|Engine] [zoneId=12] audio session stopped
[2026-02-06T11:13:22.800Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["aac"] zoneId=12] starting audio engine
[2026-02-06T11:13:22.802Z][INFO][Audio|Session] [maxBufferBytes=8192 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac targetLeadMs=1000 zoneId=12] audio session buffer config
[2026-02-06T11:13:22.803Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-fflags","nobuffer","-probesize","32k","-analyzeduration","0","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-headers","Icy-MetaData: 1\r\nX-Loxone-Zone: 12\r\n","-re","-i","http://127.0.0.1:7090/streams/proxy?u=https%3A%2F%2Frs4.stream24.net%2Funser-radio.mp3%3Ftunein_hs_080920","-vn","-acodec","aac","-ar","44100","-ac","2","-b:a","256k","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","adts","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=aac zoneId=12] spawning ffmpeg
[2026-02-06T11:13:22.833Z][INFO][Audio|Engine] [profile=aac source=url zoneId=12] audio session started
[2026-02-06T11:13:22.835Z][INFO][Audio|Manager] [source=tunein:station:b64_aHR0cHM6Ly9yczQuc3RyZWFtMjQubmV0L3Vuc2VyLXJhZGlvLm1wMz90dW5laW5faHNfMDgwOTIw stream=12-6f46097e-3db3-4fd0-b7db-2f06c55c113a title="UNSER RADIO" zoneId=12] playback started
[2026-02-06T11:13:22.836Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["sonos"] zoneId=12] dispatchOutputs
[2026-02-06T11:13:22.873Z][DEBUG][LoxoneHttp|Processor] [command=audio/12/recent] command received
[2026-02-06T11:13:22.995Z][DEBUG][Output|Sonos] [message="Failed to connect" zoneId=12] sonos s2 connect failed
[2026-02-06T11:13:22.996Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] sending playback command
[2026-02-06T11:13:22.998Z][DEBUG][Output|Sonos] [action=Stop service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T11:13:23.022Z][DEBUG][Output|Sonos] [message="Failed to connect" zoneId=12] sonos s2 connect failed
[2026-02-06T11:13:23.024Z][DEBUG][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos soap request
[2026-02-06T11:13:23.044Z][INFO][Output|Sonos] [action=SetVolume service=RenderingControl zoneId=12] Sonos action succeeded
[2026-02-06T11:13:23.045Z][INFO][Output|Sonos] [volume=15 zoneId=12] Sonos volume set
[2026-02-06T11:13:23.235Z][DEBUG][Audio|Session] [zoneId=12] ffmpeg stdout closed
[2026-02-06T11:13:23.238Z][INFO][Audio|Session] [bufferedBytes=8192 code=255 earlyExit=false runMs=58373 signal=null stderr=undefined stderrAt=undefined subscribers=1 totalBytes=1926474 zoneId=12] ffmpeg exited
[2026-02-06T11:13:23.929Z][INFO][Audio|Session] [bytes=41 profile=aac zoneId=12] ffmpeg first chunk
[2026-02-06T11:13:25.499Z][DEBUG][Output|Sonos] [action=Stop message="This operation was aborted" service=AVTransport zoneId=12] optional command failed
[2026-02-06T11:13:25.500Z][DEBUG][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T11:13:33.089Z][INFO][Output|Sonos] [action=SetAVTransportURI service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T11:13:33.340Z][DEBUG][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos soap request
[2026-02-06T11:13:33.352Z][INFO][Output|Sonos] [action=Play service=AVTransport zoneId=12] Sonos action succeeded
[2026-02-06T11:13:33.353Z][INFO][Output|Sonos] [uri=http://192.168.178.22:7090/streams/12/current.aac zoneId=12] Sonos playback started
[2026-02-06T11:13:33.356Z][DEBUG][Audio|Session] [label=http:192.168.178.15:aac:Linux/UPnP/1.0 profile=aac subscriberCount=1 zoneId=12] audio subscriber attached
Kannst du das in der neuesten Beta noch reproduzieren?
Ich teste heute Abend gleich die beta 9. meld mich…
Hi, beta 10 and the problem still persists.
Könnte man sich die sonos Anbindung mal von music assisstant abschauen, die läuft extrem gut und auch schnell? Ich hatte auch bei lox audioserver v3 mit MA sehr schnelle Reaktionszeit und stabile Anbindung. Nur kann ich v3 mit dem neuen MA nicht mehr verbinden wegen Token Anforderung.
Can you all provide fresh spam logs from the moment where you press play? The more logs we have the easier is it to fix.
Hi, beta 10 and the problem still persists.
At the moment it is not clear which part still persists, because this issue contains several different Sonos-related topics.
Some parts have already been addressed, including stereo pair / coordinator handling and reduced radio switching latency.
TTS / bell overlay behavior is a more general alert/audio overlay topic and is not something we should track as part of this Sonos transport issue.
Can you please test again with the latest dev container and provide fresh spam logs for the exact failing scenario?
Please specify which case you are testing:
normal radio play start delay switching between radio stations Spotify playback / next / playlist behavior AirPlay to Sonos stereo pair discovery / playback
The most useful log is from the moment you press play or trigger the action until sound is actually audible or the failure happens.
Folgendes getestet: playback des tunein presets rock antenne nach ca 4 sek hörbar über den sonos roam speaker dann pause gedrückt. Ton sofort aus dann erneut auf den play button. keine reaktion in der app, kein ton über speaker.
log im anhang dazu:
Spotify test: Titel Star wars theme ausgewählt, playback startet - hörbar nach ca 6 sekunden. pausiert, ton aus, erneut play, wieder kein ton. selber fehler im log:
[2026-05-16T11:30:11.625Z][WARN][Zones|StateController:Sonos] [action=play zoneId=19] sonos command ignored; no active group
Spotify test: vorspulen während der wiedergabe, reagiert ebenfalls erst nach mehreren sek verzögerung.
Vielen Dank für die ausführlichen Logs vom 16.05. — die haben geholfen.
In deinem Spotify-Log sehe ich:
[WARN][Zones|StateController:Sonos] [action=play zoneId=19] sonos command ignored; no active group Das ist die eigentliche Ursache für das „Pause → Play reagiert nicht mehr"-Verhalten. Die Ursache lag in @lox-audioserver/node-sonos: die zwischengespeicherte activeGroup des Players wurde nur bei einer neuen Gruppe aktualisiert, nicht bei Updates oder Removals. Sobald Sonos nach dem Pausieren seinen Group-State neu ordnete, blieb dieser Cache leer und alle nachfolgenden Play-/Pause-Befehle wurden stillschweigend verworfen.
Fix in node-sonos 0.1.4: checkActiveGroup() wird jetzt nach jedem Groups-Event aufgerufen. Eine Beta mit dieser Version folgt — kannst du dann erneut testen, ob das „kein Ton beim zweiten Play"-Verhalten sowohl bei TuneIn als auch bei Spotify weg ist?
Die übrigen Punkte aus deinen Logs sind separat:
~4-6 s Verzögerung bis zum ersten Ton — das ist das SOAP-SetAVTransportURI, das auf dem Sonos blockieren kann (in deinem Log: SetURI dauert 7-8 s nach einem abgebrochenen Stop). Ich prüfe, ob wir den S2-(WebSocket-)Pfad zuverlässiger machen können, damit wir das langsame SOAP-Fallback vermeiden. Spotify Vor-/Zurückspulen langsam — vermutlich ein vollständiger ffmpeg-Neustart beim Seek; separate Verbesserung. Bell/TTS als Overlay statt Unterbrechung — das ist ein Feature-Request (kein Bug am aktuellen Ablauf), trackbar als eigenes Issue. Stereo-Pair-/Coordinator-Handling und die Radio-Switch-Latenz wurden in früheren Betas bereits verbessert.
Bitte zuerst nochmal mit der kommenden Beta das Pause→Play-Szenario testen, dann nehmen wir (B) in Angriff.
Hi,
I have the following issue: I’m using Sonos with the AirPlay 2 protocol.
1/ To play a song, I have to double-click it in Loxone. There’s a delay of about 6 seconds when switching between songs; when I switch to a different song, the previous one continues to play for about 6 seconds.
2/ Internet radio stations do not play, even though both Loxone and the Sonos app show that the internet radio is running.
Pause und Play funktioniert. Wenn die Zone länger nicht aktiv war, dann startet das playback nicht mehr. Hier im Beispiel wird zwar das playback durch den Präsenzmelder getriggert, es passiert aber nichts ( no activ group). Ein doppelclick auf den Taster lädt den nächsten Favouriten und es läuft.
Log im Anhang.
@benleut Update: ich habe die Ursache deines „länger nicht aktiv → Play tut nichts"-Verhaltens identifiziert und im Code beseitigt.
Was war los:
Der PowerManager hat nach Ablauf des Off-Delays (Standard 5 min nach Pause/Stop) intern noch zwei Dinge gemacht, die mit physischer Hardware nichts zu tun haben:
- Die Audio-Engine deiner Zone wurde zwangsweise gestoppt (
stopInputSource) - Die Loxone-Zonen-State wurde auf
mode=stop, powerState=offgesetzt
Bei dir hat das zur Folge gehabt, dass nach längerer Inaktivität die Sonos selbst per SOAP Stop getriggert wurde und unsere interne Engine + State zurückgesetzt wurde. Wenn der Präsenzmelder dann audio/20/play schickte, war für die State-Machine nichts mehr da, woran sie anknüpfen konnte. Genau das WARN no active group im Log war die Folge.
Was sich ändert:
Der PowerManager macht ab jetzt nur noch das, wofür er gedacht ist — externe Hardware (GPIO/HTTP-Relay/UDP/crelay) ein- und ausschalten, falls konfiguriert. Zone-State, Audio-Engine, Queue: alles bleibt unangetastet, egal wie lange die Zone idle war.
Was du trotzdem beachten musst:
Das löst dein Symptom für den „länger nicht aktiv"-Fall, NICHT für den Neustart-Fall. Wichtig zu verstehen:
audio/20/play ist ein reines Transport-Resume. Damit das Klang macht, muss in der Zone schon Inhalt geladen sein (Queue gefüllt, URI auf dem Sonos). Das gilt für jeden Output-Typ, nicht nur Sonos.
In deinem aktuell hochgeladenen Log (vom 07.06.) ist der Audioserver gerade frisch gestartet — Zone 20 hatte seit dem Boot niemals Inhalt. Da hilft das Fix nichts: nach Neustart ist die Queue immer leer, ein reines Play kann nicht resumen, was nie da war.
Empfehlung für deine Loxone-Konfiguration:
Lass den Präsenzmelder direkt einen Raumfavoriten triggern (audio/20/roomfav/play/<id>) statt eines reinen Play-Kommandos. Damit funktioniert es zuverlässig — sowohl nach langer Idle-Zeit als auch nach einem Neustart, weil bei jedem Trigger ein konkreter Inhalt geladen wird.
Der Fix landet im nächsten Beta-Build. Wenn du es testen kannst, ist das ideale Szenario: laufen lassen → 15+ min stoppen lassen (ohne Neustart!) → Präsenz-Trigger. Mit dem alten Build hätte das nichts gemacht, mit dem neuen sollte es wieder anlaufen.
Pause and Play still aren't working in Audio Player Loxone.
@kob04 Thanks for the log — there is good info in here, but let me set some context first.
This issue thread has accumulated a few different scenarios from different users over time (Sonos via AirPlay, Sonos via native binding, stereo pair handling, radio start latency, Spotify seek, pause/play behavior, TTS overlay, "länger nicht aktiv" presence triggers...). That makes it really hard to track what is or isn't fixed in any given build — we cannot meaningfully say "this is/isn't fixed" when the symptom labels keep referring to different underlying causes.
Two things to note about your specific case:
"Pause and Play still aren't working" isn't quite accurate — we have never actually looked at the exact scenario your latest log shows. Your previous log (24 May) was on AirPlay output, with a dubbelklik symptom and ~6 s delay. Your latest log (16 June) is on native Sonos output — you switched outputs between tests. Those are fundamentally different code paths with different failure modes. Nothing has been merged that targets the Sonos-pause-resume path you're hitting now.
What I can see in the new log: when you pause on a Sonos output, the audio engine stops because the HTTP-pull subscriber drops, and the Sonos itself transitions to PLAYBACK_STATE_IDLE — it loses the transport URI. A subsequent play then falls back to group.play() on a Sonos with no URI loaded, which silently does nothing. We see this explicitly in your log: cachedMediaUrl=null, branch=group.play (fallback), and the mode flips back to stop within milliseconds.
That's a Sonos-output-specific pause/resume issue, and I'll track it separately — it's not the same as the "no active group" path that benleut hit and that I just fixed.
A broader note about Sonos as output:
I'm seriously considering deprecating the native Sonos output path, or at minimum making AirPlay the strongly preferred default whenever a Sonos device exposes AirPlay (which most modern Sonos units do). Reasons:
AirPlay support has improved significantly in recent versions (RAOP/ALAC pipeline, sample-accurate multiroom, instant pause/resume) and I can test it thoroughly on my own hardware. For native Sonos I have no hardware here at all — I'm entirely dependent on logs from Sonos users, which makes turnaround slow and verification weak. AirPlay → Sonos is already a fully working path for almost all modern Sonos models and side-steps a lot of S1/S2 quirks (group cache, transport URI loss on pause, stereo-pair coordinator handling, etc.). To be clear: the Sonos state controller stays — that's separate from the output and lets lox-audioserver receive external Sonos events (volume changes, group changes, transport changes triggered from the Sonos app). What's on the table is only the Sonos-as-output (transport sink) path.
Concrete ask for everyone watching this thread: if you have a Sonos issue, please open a new, specific issue per scenario rather than piling onto this one. Title + one reproduction scenario + spam-level log of just that scenario. Otherwise nobody — neither you nor me — can tell from this thread alone what is still broken vs. fixed.