I’m using tile board on an old iPad and have it set up so I have a button for each of my Sonos sources. I prefer this to clicking ‘Source’ and selecting from the list.
Pressing the button runs a script, the script starts that source on the Sonos speaker.
This is obviously quite clunky as every time I want to add a new source I have to:
Create a script for that source
Create the button on tileboard to activate that script.
Are there any suggestions for how I might better automate this?
A way to automatically create a script if the list of sources updates? A better alternative to creating a script for each source?
Thanks
I assume the easiest way would be to create a tile for each source, then pass the title of the tile into a generic script, but I’m not sure how to do that
I’m not familiar with Tile Board, can you send data when you execute a service call from a tile, like some parameter of the tile configuration?
I would change the script to accept a variable and then pass the source name from the tile to the script. Here is the part of the docs about passing variables to scripts.