Support multiple states in state trigger to/from fields #17875
Replies: 2 comments 1 reply
-
The
There's no bug here; if you don't supply a list, it's handled as a string. You can submit a Feature Request but be advised that automatically converting a comma-delimited string into a list would thwart the ability to specify an actual comma-delimited string value. |
Beta Was this translation helpful? Give feedback.
-
If this was implemented we could have additional combo boxes spawn each time you select a state so that multiple could be selected, similar to how you can add multiple entities. That said not certain if that's a desired feature or not, I know the goal is not to implement every single functionality of the yaml into the UI, but just what is most simple and unconfusing. As this is a feature request and not a bug (design is currently working as intended), I will move this to discussion area. |
Beta Was this translation helpful? Give feedback.
-
Checklist
Describe the issue you are experiencing
In the automation trigger visual editor, supplying a comma separated list of conditions in the "to:" and "from:" fields results in the automation checking for a monolithic state that will always resolve to false. For example, if one supplies the following list of states
A,B,C,D
the resulting YAML resolves asto: A,B,C,D
. Similarly, if one supplies'A','B','C','D'
,"A","B","C","D"
,A, B, C, D
,'A', 'B', 'C', 'D'
, or"A", "B", "C", "D"
all resolve to the monolithic, single line result like the aforementioned case.Describe the behavior you expected
I would expect the conditions to be separated and evaluated individually. If one were to supply
A,B,C,D
, the corresponding YAML would produce the following.Conversely, a UI element that allows the addition of multiple to and from states to be added in the same vein as trigger or conditions themselves would likely be more clear to the end user.
Steps to reproduce the issue
rainy, snowy
)...
What version of Home Assistant Core has the issue?
Home Assistant 2023.8.3
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Google Chrome Version 115.0.5790.170 (Official Build) (arm64)
Which operating system are you using to run this browser?
macOS Ventura 13.2.1 (22D68)
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions