Your app may help me and I could add Sonos to it as well. But it does not play files from any source, right ?
What I am trying to do :
I would like to get a list of all m3u files from my cifs server (I can also start a web server on it if cifs is not supported by ST apps)
Then I will put these files on a selection list and when the user selects, I want the CIFS URI to be sent to my Sonos speakers (and Kodi) to play.
What I don’t know :
I don’t know how to write a basic smart app to get a list of files from my cifs ( or http) server.
I don’t know how to put that list on a selection (preferably pull down)
What I know :
I know how to form the URI for Sonos speaker to play. (well at least I have something in my mind)
I have read info on the page you suggested about dynamic preferences.
I understand that this would work :
input(name: "sensorAction", type: "enum", title: "is", options: attributeValues(m3ulist))
But I don’t understand how I can form the “m3ulist” variable before displaying that input.
Any ideas or examples ?