Proposal: New multiselect
entity type
#927
Replies: 9 comments 21 replies
-
I would vote for extending current select entity with this. Feel like a reasonable extension. One consideration, dont know if json for the state of such entity would be good since state is generally in the end a string. |
Beta Was this translation helpful? Give feedback.
-
What if the state would be the number of selected options, and the selected options would be in an attribute: name: Fruitbowl
state: 2
attributes:
options:
- Banana
- Apple
- Orange
- Lemon
- Durian
selected:
- Apple
- Durian |
Beta Was this translation helpful? Give feedback.
-
My grind with the proposal is:
I don't think we should dump data structures in there... (but I also lack a better suggestion 😅) |
Beta Was this translation helpful? Give feedback.
-
Ideas for state:
Personally, I vote for the 3rd option as it will give everyone what they need and we could add a template filter/function that converts the value to a list of options (if needed). |
Beta Was this translation helpful? Give feedback.
-
It would be great if the options could have a different options:
- label: Livingroom
value: media_player.livingroom
- label: Bedroom
value: media_player.this_is_where_the_magic_happens
- label: Kids Room
value: media_player.only_baby_shark_here |
Beta Was this translation helpful? Give feedback.
-
The perspective of a long time user... The long standing method across many platforms is using ctrl+ and shft+ to multi select items from a list. It appears there may be some overthinking going on here. This is sorely needed. My example is that Amazon Alexa is greatly reducing their UI while increasing the problem areas. There currently is no way to delete multiple devices. Nor is there a global delete all that on could reinstall the needed ones. This required me to delete 300+ devices ONE AT A TIME! Amazon will not address this, of course, maybe HA will. |
Beta Was this translation helpful? Give feedback.
-
@raman325 do you have any short term plans for implementing this? |
Beta Was this translation helpful? Give feedback.
-
Same here this is perfect for selecting mowing zones! |
Beta Was this translation helpful? Give feedback.
-
As I spotted some activity on this proposal, I wanted to provide a heads up / status update atm. We discussed this proposal in a recent core architectural meeting and decided not to act on it yet. So, we keep it in the current proposal state on purpose. The reasoning is that we have some more ideas and goals for our information architecture in the short term that might impact entity proposals (like this one). ../Frenck |
Beta Was this translation helpful? Give feedback.
-
Background
The
select
entity supports single select use cases but does not support multiselect use cases. A multiselect is useful in cases where e.g. days of the week, supported modes, or any other case where multiple items for the same parameter need to be selected.Proposal
Create a new
multiselect
entity type using themultiselect
domain.Properties:
options
: list of all available optionscurrent_options
: list of all selected options of len >=0supported_features
:SUPPORT_EMPTY_SELECTION
would indicated whether len >=0 or len >= 1 is required.State:
current_options
Services:
select_options
: Takes list of options as an input. Does error handling based on supported_featuresAlternatives considered
select
platform: We could do this but the trend has been towards making simpler, building block type entities rather than overloading existing ones.Beta Was this translation helpful? Give feedback.
All reactions