Use an UPnP Player to find the URL of files on a UPnP Server through browsing (with thumbnails).
When executed it will retrieve the file from de UPnP Server based on the same browsing structure.
This way you will be able to use a UPnP Server to play sounds on speaker systems like Sonos but also on TV’s like Samsung or LG.
Just start by adding the UPnP Player and select the UPnP server you want to use.
(Because of 30 sec timeout while discovering devices, you sometimes have to search twice will installing the device/player. This depends on the configuration of your UPnP Server)
The way you can browse depends on how the UPnP Server is configured.
You can browse to and (it will) save the location to /Music/Artist/Album/B/Bok van Blerk/Afrikanerhart.
When executing the flow, the current URL will be retrieved based on the same /Music/Artists etc.
This way you can use any UPnPServer (Like Synology or an (Asus/Linksys) Router/Switch/Wifi UPnPServer) and use it as a storage place for your Sounds to be used.
Thanks for Johan Bendz for the excellent images and icons!
This works great voor a PA system:
How to make a Great Public Announcement (PA) System with any device! - Apps - Homey Community Forum (athom.com)
The Sonos App currently has issues sending flac to a speaker. Sonos Say will wrok, and im working on it with Athom.
Step 2 - one time
Create a flow with a trigger for Url Triggered from the UPnP Player Device and an action card (Then part) that sends the Url token to the device you want to play it on.
Create a flow that starts playing a file or folder through a condition or action:
Voor playing sounds:
Or for music (with Thumbnails):