Input_select list - Dynamic population

I have nothing to share because what I had created, three years ago, couldn’t survive a restart.

Nowadays you can explore using MQTT Select to meet your needs.

I don’t know your exact requirements but the following post contains examples for Template Select which might also meet your needs.