Dynamic Selection Items?

Is there a way to create a dynamic list of selection items?

I would like to create a dropdown with radio station items provided by a json string.


The only way I can think of to have a dynamic set of mappings in a sitemap is to process your .sitemap file through a script the replaces a placeholder value with the list you want. As long as the generated sitemap is in the proper format and proper place, openHAB will reload it and the UI will pick up the new sitemap. This processing could be performed manually, in a cron job or in a timer-based openHAB rule, or some other way.