Adding template support to the Script default field would allow pre-loading the field with the current value to make it easy to edit an existing value, e.g.
That makes sense. It’s also OK - if it supported templates. I could then retrieve the current value, display it in the UI, edit it, and save back it to the entity.
I am trying to build custom buttons to switch sources on my TVs. I have an LG in the bedroom and a samsung in the living room. Both TVs have a different set of available sources gathered from media_player..source_list.
Currently, I have a script with fields that take Entity ID and the source name as fields. However, the source name is a selector with hard coded list of available sources.
This feature request to allow me to use templates for the Source name field, so I don’t have to hard code list of available sources, would make this so much easy.