Is there a way to update input_select options when another input_select is changed? I thought this would do it but it doesn’t seem to be doing anything or throwing any errors. Does anyone know what I might be doing wrong?
- alias: Update Holiday Color Options
trigger:
- platform: state
entity_id: input_select.holiday
- platform: homeassistant
event: start
action:
service: input_select.set_options
data_template:
entity_id: input_select.holiday_colors
options: >
{% if states.input_select.holiday.state == 'Halloween' %}
["orange", "light purple"]
{% elif states.input_select.holiday.state == 'Christmas' %}
["red", "dark green", "gold"]
{% else %}
["white"]
{% endif %}