if you mean a dynamic list in input_select I’m not sure it’s possible.
What you may need to do is 3 sub input_select lists and have one displayed based on the first input select option, other being hidden.
Look for the the set_visibility service: https://www.home-assistant.io/docs/configuration/group_visibility/
You can definitely change the options for a given input_select. Not exactly sure what you want the second input_select options to be, but you could do something like this:
input_select:
media_type:
name: media type
options:
- video
- radio
- music
select2:
options:
- initial option 1
- initial option 2
automation:
- alias: change select2
trigger:
platform: state
entity_id: input_select.media_type
action:
service: input_select.set_options
data_template:
entity_id: input_select.select2
options: >
{% if trigger.to_state.state == 'video' %}
["option 1 for video", "option 2 for video"]
{% elif trigger.to_state.state == 'radio' %}
["option 1 for radio", "option 2 for radio"]
{% else %}
["option 1 for music", "option 2 for music"]
{% endif %}
Yes it’s something like that but more customization like:
{% if trigger.to_state.state == ‘video’ %}
link’s to all files on a movies directory
{% elif trigger.to_state.state == ‘radio’ %}
a static list/url
{% else %}
content of a music directory
{% endif %}
I’ll give it a few hours of testing and then try to report back
I saw someone do exactly that in another post. Are you using data_template (as opposed to data)? What error are you seeing? It would help if you posted more of the context.