Since the upgrade to OH5 the behavior changed.
Before (see the picture) completed was played with volume 20.
now it is setting the Sonos to mute and that‘s it.
There is a file not found exemption in the log for the first one, but the second one just mutes:
2025-07-23 10:39:25.797 [WARN ] [nhab.core.model.script.actions.Audio] - Failed playing audio file: File ‘/openhab/conf/sounds/NotFound.mp3’ not found!
I assume there is an issue with the Sink sink because PlayUri like this is working fine:
Thanks for the detailed post — and sorry to hear about the trouble after upgrading to OH5.
From what you’re describing (especially with the mute behavior and file not found message), it sounds like the issue could be related to either:
Audio file path resolution, or
Sink configuration in OH5.
Here are a few things you can try that have helped in similar cases:
1. Verify the audio file path and permissions
OH5 introduced stricter file handling in some cases. Please make sure:
The file actually exists at /openhab/conf/sounds/NotFound.mp3.
File is readable by the openhab user.
Try placing a known-good .mp3 (like a basic chime) in that folder and rename it to NotFound.mp3 just to test.
You can also test from the console with:
makefile
CopyEdit
openhab:audio play doorbell
(if doorbell.mp3 exists under /conf/sounds/)
2. Confirm default sink settings
It may help to explicitly define your default audio sink again in settings -> System -> Audio or in runtime.cfg:
makefile
CopyEdit
org.openhab.audio:sonos:YOUR_DEVICE_ID
You can get your Sonos device ID from the thing configuration.
3. Use PlayURI as fallback
Since PlayURI works (as you mentioned), you could temporarily use a rule workaround to send pre-recorded audio from a local HTTP path. Just place the sound file in /html/ (served via http://<yourOH>:8080/static/) and trigger with:
Thank you very much for your kind answer an support.
1. For the Permission check:
This seems to work was it worked also in OH4.X and the command PlayURI is also working
The console shows this:
openhab> openhab:audio play doorbell
Unsupported file extension!
openhab> openhab:audio play doorbell.mp3
openhab> openhab:audio play doorbells.mp3
File '/openhab/conf/sounds/doorbells.mp3' not found!
openhab> openhab:audio play meow.mp3
2. For the default settings of the sink:
Setting in the default speaker in the gui had no effect. settings → System → Audio
If i enter the screen again I still see nothing checked. After rebooting.
Yes it is working but have a slight different behavior, The sound is not switched back tot the TV after the sound is played. And i cannot switch it back by a command.
Consent and ideas:
Finally i have the following idea what could be „special“ is that I have in total 3 Sonos Speakergroups.
The Sonos Arc
The Sonos One Bathroom
The Sonos Beam Sleeping room.
If I‘m not in the Sleeping room i remove the Sonos Beam of the Sleeping room from the MAINS.
The rest is pretty normal i guess.
Can i set some other debug options to see better what is going on?