I created an input_select in my configuration:
input_select:
lantern_animations:
name: Lantern animations
options:
- Not set
icon: mdi:animation-play
I am setting the options list from an external application via a rest call with the data
input_select.lantern_animations data='{"state":"Off","attributes":{"options":["Off","Fourth of July Fireworks","Lantern align south","Runway","Static Coming and Going"]}}'
I have created a card to allow the select value to be changed:
type: entities
entities:
- input_select.lantern_animations
The UI is properly updated when the REST call completes. However, if I try to use the menu control to set the new value, I get:
homeassistant.exceptions.HomeAssistantError: Invalid option: Fourth of July Fireworks (possible options: Not set)
2023-07-16 12:31:44.634 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140602720090192] Invalid option: Lantern align south (possible options: Not set)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1957, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 1997, in _execute_service
return await cast(
^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 845, in entity_service_call
response_data = task.result() # pop exception if have
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1192, in async_request_call
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 889, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/input_select/__init__.py", line 305, in async_select_option
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Invalid option: Lantern align south (possible options: Not set)
Can the input_select choices be changed in a way that the input_select service sees the new values?