Can I use a list from a sensor in input select?

I have a rest-sensor that outputs this:

['Endorfin', 'Flatline', 'Nedforsbacke pa varen', 'Husbat', 'Brotfest', 'Electartica', '.DS Store', 'Solnedgang och ol', 'Sjunga med', 'Ledset', '00s gott', 'Elektronisk lowpop', 'Ambient', 'Afusktiskt', 'Raggaragga', 'cgi-bin', 'Sweet n sour', 'Chill', 'Konstig pop', 'Forfest', 'Nyklassiskt']

I would like to use it as an input to options, currently It’s hardcoded like this:

input_select:
  playlist:
    options:
     - Endorfin
     - Flatline
     ...

but I want something like this:

input_select:
  playlist:
    options: "{{ states.sensor.playlist.state }}"

not sure if that is posible but what defenetly works is a script or automation that executes the service set_options from the component input_select (see example below)

looks like the yaml is only loaded at start so the only way to make it dynamic is the service call

1 Like