Closed therealjsie closed 2 years ago
input_select documentation input_select source (message by IssueLinks)
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (input_select
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
The problem
Hey everyone,
I've set up a new HA instance, and I'm running into a recurring problem that I can't pin down. I'll start with the problem description and then run down the steps that got me here:
I've got an
input_select
defined in YAML containing a couple ofoptions
, e.g.scene.living_room_bright
,scene.living_room_dim
, etc. I've got an automation that automatically triggers when theinput_select
value is changed to activate a scene in the living room. This works fine until something happens and theinput_select
options change toBright
,Dim
, etc. (obviously these values don't work with the aforementioned automation).These values correspond to the values I chose when I initially created an
input_select
through the UI. However, I've deleted any input helpers that I've created through the UI. I'm unsure why these leftover values still show up, or why they replace the values that are defined in theinput_select.yaml
.I can trigger the switch between the new/wanted values and the old values through the state menu in the developer tools. Changing from
scene.living_room_dim
toscene.living_room_bright
will reproducible alter theinput_select
values. Changing the values the other way around (bright->dim) will not alter the values. However, the same behavior can be triggered through the UI (i.e. with a dropdown field).I've found that these old/deprecated values show up in the
config/.storage/core.restore_state
file. However, I'm not sure if this is connected to this behavior in any way.The following screenshots show the gist of what I tried to describe above:
Before:
After:
These are the events leading up to the problem (changing bright->dim, dim->bright). The automation does not meddle with the input values (I'll attach the corresponding YAML):
Restarting the server will reset the
input_select
values to the wanted values (that's until they are altered by the process described above or by other interactions).Here are the relevant configs:
Let me know if you need more information.
What version of Home Assistant Core has the issue?
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response