Input_select lets you set select options dynamically using set_options, which is great. What is not great is that it does not give you the option of making these changes permanent. Therefore any changes made to the input_select options are wiped out when HASS restarts, as it reverts to its original configuration made from configuration.yaml or the UI.
Does anybody know of a workaround that would allow to save these changes so that they actually reload when HASS restarts?
Not possible. There’s a feature request but… Look at ‘template select’ if you want a dynamic list that can be filled programattic and almost always can fill the use case.
OK very interesting! Thanks for the link. I’ll keep that option in mind for other projects…
What I ended up doing though is simply store my data in input_text helpers in JSON format. It’s a bit cumbersome I admit (I used 10 helpers) but it’s fairly easy to use and, most importantly, the data survives a restart.