4.x branch - bell dont work
Hi, in last 4.x-branch doesn't work Bell for me.
lox setup is jsut pushbutton to bell input
lox-audioserver log:
[2026-01-11T18:55:27.994Z][INFO][Alerts|Manager] [type=bell zones=[5]] ON alert [2026-01-11T18:55:27.994Z][INFO][Audio|Manager] [hasStream=false label=alerts://bell.mp3 sourceKind=file zoneId=5] startWithResolvedSource [2026-01-11T18:55:27.994Z][INFO][Audio|Manager] [handoff=false kind=file profiles=["pcm"] zoneId=5] starting audio engine [2026-01-11T18:55:27.994Z][INFO][Audio|Session] [maxBufferBytes=262144 outputBitDepth=16 outputChannels=2 outputSampleRate=48000 profile=pcm targetLeadMs=1000 zoneId=5] audio session buffer config [2026-01-11T18:55:27.999Z][INFO][Audio|Engine] [profile=pcm source=file zoneId=5] audio session started [2026-01-11T18:55:27.999Z][INFO][Audio|Manager] [source=alerts://bell.mp3 stream=5-b730c862-e596-4bc1-84c0-0f9e76499162 title=bell zoneId=5] playback started [2026-01-11T18:55:27.999Z][INFO][Http|Snapcast] [clientId=snapclient-pracovna streamId=5] snapcast client reassigned to stream [2026-01-11T18:55:27.999Z][INFO][Http|Snapcast] [bitDepth=16 channels=2 clientIds=["snapclient-pracovna"] sampleRate=48000 streamId=5 zoneId=5] snapcast stream registered [2026-01-11T18:55:28.008Z][INFO][Audio|Session] [bytes=14276 profile=pcm zoneId=5] ffmpeg first chunk [2026-01-11T18:55:29.707Z][INFO][Audio|Session] [bufferedBytes=262144 code=0 earlyExit=false runMs=1712 signal=null stderr=undefined stderrAt=undefined subscribers=1 totalBytes=2467072 zoneId=5] ffmpeg exited [2026-01-11T18:55:29.707Z][WARN][Audio|Manager] [source=alerts://bell.mp3 zoneId=5] playback session terminated by engine
client is snap.
Music playback works correctly. Triggering the bell pauses and resumes the music, but the bell itself is silent.
Yes, I need to look into this. Technically everything is working as expected, but this is most likely a latency/buffering problem in the current audio engine.
The bell is correctly started, decoded, and streamed (which is clearly visible in the logs), but the audio file is so short that it finishes before the client actually starts playing audio. The client needs some time to fill its buffer before output begins. As a result, nothing is heard, even though the music is correctly paused and resumed.
This can be easily demonstrated: • If you use a longer audio file (for example an mp3 song), the bell does play correctly.
I will come back on this one
I also managed to get the Lox Audio Server up and running and used a SendSpin client for testing (setup: https://gist.github.com/wiking-at/d7789afb9107c3f6a16501e1914bbe41 ). When playing announcements or text-to-speech messages, the first few seconds of the audio are not reproduced correctly. Due to interference at the beginning, the spoken content is initially difficult to understand, but the playback quality improves afterward. Additionally, the doorbell audio has a delay of approximately 6 seconds compared to the optical doorbell in Loxone that triggers the light.
lox setup is jsut pushbutton to bell input
@Re4DeR this is not how it's designed by Loxone. I already requested to improve the documentation on that on their website.
I'm currently testing the 4.x branch with a SnapCast client on Debian 13. All of the inputs (Alarm, FireAlarm, Bell, Buzzer, TTS) do not work at all.
When they worked, they also did not work as they should: https://github.com/rudyberends/lox-audioserver/issues/29#issuecomment-3395279984
The
Alarm,FireAlarm,BellandBuzzerdo not work yet how they should. They should only play as long as the function block input is on1, if the input then returns to0the previous state should be recovered (player off or music playing). Probably it would be good to implement a minimum playback time of some seconds, in case there was only a short trigger on the function block. Like play the alarm only once and do not loop it.
I'm on https://github.com/rudyberends/lox-audioserver/commit/1f1965b64199673b550f3842cb85d86c5254653c (up-to-date 4.x branch).
Probably this is all the same issue. It would be interesting how it behaves with SqueezeLite clients that are directly connected in Lox Audio Server.
lox setup is jsut pushbutton to bell input
@Re4DeR this is not how it's designed by Loxone. I already requested to improve the documentation on that on their website.
what is wrong? how it should be?
It should play only as long as the input is on 1. That is how the original Audio Server works. See also my previous comment.
I see. Usually it is controlled through the https://www.loxone.com/enen/kb/door-controller/ and maxB
This is not the same issue. The problem you saw was specific to 4.x and its new audio engine. It was a buffering problem, and it is fixed in the latest beta.
The issue you’re referring to existed in 3.x and has never been present in 4.x. Because of the 4.x buffering problem, you were effectively prevented from testing this properly until now.
They should only play as long as the function block input is 1; if the input returns to 0 they should stop.
The Audioserver supports two alert behaviors: 1. One-shot alert (normal file) Example: doorbell. This is simply played once and then ends. This should work fine now. 2. Looped alert This is implemented correctly from an Audioserver perspective, but it works differently from a one-shot.
A looped alert is started like this: • /audio/grouped/alarm/27
This starts the loop and it will continue indefinitely until it is explicitly stopped via an off/stop command: • /audio/grouped/alarm/off/27 • /audio/grouped/alarm/stop/27 (I believe this is what Loxone uses)
Important detail: the Audioserver has no knowledge of the Function Block input state. It only reacts to HTTP commands. It’s the Miniserver’s responsibility to send the corresponding stop command when the input goes back to 0.
for me bell is working now in beta. I am going to test it more tomorrow.
Just one problem maybe. Bell dont use Vbell parametr. Volume stays same
I also tested TTS - works for me now with beta.
I still got an issue when using spotify connect using the internal player of a zone. i can select the lox-audioserver zone output - but music never gets played. funny thing is - if i play a radio stream and stop it before trying spotify connect i can start/stop the radio stream in the spotify app again (while trying to start/stop spotify content). i use a sendspin zone. do you want me to create a more detailed issue? or is spotify connect WIP currently in beta and it is to early to create issues for this feature?
Just one problem maybe. Bell dont use Vbell parametr. Volume stays same
![]()
Should be fixed with this d629728
I also tested TTS - works for me now with beta.
I still got an issue when using spotify connect using the internal player of a zone. i can select the lox-audioserver zone output - but music never gets played. funny thing is - if i play a radio stream and stop it before trying spotify connect i can start/stop the radio stream in the spotify app again (while trying to start/stop spotify content). i use a sendspin zone. do you want me to create a more detailed issue? or is spotify connect WIP currently in beta and it is to early to create issues for this feature?
We can have a look at it, but please open a separate issue for this
ok - i wait for the next beta build as there are some sendspin fixes which are not reflected in the current beta build. if the issues persist i will open a dedicated issue.
I now tested https://github.com/rudyberends/lox-audioserver/commit/63e7b7211171e8c56d8518c604a9f957b0c96929 but unfortunately it does not work as it should and described in: https://github.com/rudyberends/lox-audioserver/issues/115#issuecomment-3748955569 It should have the same behavior as the original audio server.
Once an Alarm or FireAlarm is triggered it does not stop to play. I tried with constant 1 on the input, but also only with a pulse. --> Wrong behavior
Once a Bell or Buzzer is triggered it does only play once. I tried with constant 1 on the input, but also only with a pulse. --> Wrong behavior
I really do get your point, but I don't think you got mine 😅
I fully understand how this is supposed to work. Looped alerts (alarm, fire alarm) are meant to play as long as they are “on”, and that is exactly how this is implemented.
For example an alert on zone 27, the Miniserver starts the alert with:
/audio/grouped/alarm/27
This turns the alarm on and it will keep playing on a loop indefinitely.
To stop the alert, the Audioserver expects an explicit stop command:
/audio/grouped/alarm/stop/27
This immediately stops the playback. You can easily verify this behavior using a browser or a tool like Postman.
HOWEVER, what seems to be happening here is that the Miniserver only sends the ON command and never sends the corresponding STOP command. That is exactly what you are seeing.
As mentioned before, the Audioserver has no knowledge of the Function Block input state. It only reacts to incoming HTTP commands. It is entirely the Miniserver’s responsibility to inform the audioserver when the input goes back to 0.
Unless I am missing something, there is simply no other command being sent to the Audioserver that would allow it to stop looped playback automatically. That makes it impossible to implement the behavior you are requesting purely on the Audioserver side.
We could technically solve this by connecting to the Miniserver ourselves, authenticate, subscribing to block states, and stopping playback when inputs change. But I strongly dislike that approach: • it requires Miniserver credentials, • additional configuration to select which blocks to monitor, • and it introduces logic that clearly does not belong in an Audioserver.
Another workaround could be in loxone config to act on the function block with a virtual output command and send the OFF command like that. However if a real audio server works, we should be able to replicate that behavior.
We are most likely missing something here. There must be a mechanism by which the Miniserver informs the Audioserver to stop looped playback. It is really strange that it does send a http/ws ON, but never sends STOP.
If you can figure out what that mechanism is, we can absolutely take another look at it. But “it should play as long as the function block is on” is not the answer I’m looking for.
I hope this clarifies the issue.
Thanks for clarification. It can easily be a bug in the current Miniserver implementation of Loxone. I will check this directly with the Loxone developer which is responsible for this API. Since this may take a while, please leave this issue open.
Do you have a link to the protocol documentation of the Loxone audio server or did you all reverse engineering it?
It might indeed be a bug. However this was already the case with the earliest 3.x builds, so I cannot imagine they would have not fixed it by now. @simon2207 will be able to tell, as he has real hardware to validate against.
Unlike the Miniserver API (which is really well documented and encourages development), the Audioserver API is not publicly documented. They probably also dont want it to be known and used other than by their own hardware. This codebase is probably the best reference available for the protocol specification.
The protocol itself is not that hard to reverse-engineer. You can observe the WebSocket communication between the Loxone app and the Audioserver using a browser’s developer tools.
Another option is to run your own web server and configure the Miniserver to use it as an Audioserver. This allows you to see every request the Miniserver or app sends. It's basically how this code started. Just log all requests, reply with empty responses and implement them one by one. Their online demo environments allow you to see the expected responses.
Additionally, all Loxone apps are Electron-based, meaning they are essentially web applications running inside an embedded browser. You can extract the application (android and mac are easiest) packages and inspect the source code. It is heavily minified, which makes it really hard to interpret. That said, I have a strong feeling that Spotify will not remain the only native streaming service they provide for very long. 😉
@rudyberends What am I able to test? I went through this thread but I don't get problem.
@simon2207 on the original Audio Server play any song, then set Alarm to 1. Wait a few seconds, then set Alarm to 0. Does the alarm stop and the song proceed to play? Test the same with no song playing and check if the alarm stops, when the input goes from 1 to 0.
Here a simple sample on how you can test it: