Add entity-first card picker for dashboard#51651
Conversation
|
Maybe we can suggest a few entities on the initial screen so it's not empty. The newest primary entities would make sense because presumably after adding a device to HA you want to add it to a dashboard |
|
@MindFreeze Yeah we are discussing about how the empty screen looks like but it's hard to know which one to display. |
|
That is a very simple, yet good improvement for the discovery of features by newcomers ! They were suggestions in the roadmap to suggest other functionality to allow wider functionality discovery (mode vertical, mode inline of the feature). Are they discarded or may be implemented later on ? Otherwise, this current proposal 100% fit my own need: all my cards are "horizontal" and it proposes to discover all features allowing a very quick choice of the right tile ! Will the same mechanism be adapted to the device page "add to dashboard" buttons ? |
|
This PR is more about providing the architecture of these suggestions. For now it's only tile card with compatible features but it can of course be extended in the future. And sure, it we can use the logic in different places. |
|
@piitaya here is the suggested workflow for selecting. (in the purple box)
I really like the pattern of the 'What do you want to control?'. It makes a lot of sense, and is a direction I would like to go. Although, having this question and the tabs above doesn't quite match. To keep that same idea, but tweak it a little, I suggest the pattern in the yellow boxes (in the figma above) to start with. Although this totally adds complexity. |
|
Nice! May solve this WTH if it suggests all compatible cards. "What do you want to control?" should be "What do you want to control or display?" Thinking about temperature sensors for example |
|
@mbb365 I was seeing both versions, and one thought came to mind. In terms of how the UX is laid out,
My concern is that research shows that cards with multiple entities are less typical than single ones, plus people get lost with the concept of checkbox if they don't understand why they wanted several on the first place. The purple path makes sense if multiple is the way to go, but we cannot repeat the pattern we have currently with checkboxes and a "save/select" button, since we know people get lost. I would be OK if there is some UX tool (an explanation, something) that allowed everyone to understand why they can select multiple, and the action after selecting one is immediate. As for search + filter - yeah I believe that's the way to go - start typing and show me the results filtered in the same screen. I also love the pattern of "what do you want to control". (please take a minute to enjoy my terrific design skills) |
I personaly do not agree, I believes this is an easy discovery of the tabs, tabs being also a way to navigate between use cases after selection if needed.
I really like the proposed interface by @piitaya with the tabs and the buttons within the initial question "What do you want to display or control ?" it is self explanatory like this.
- question & buttons (to allow an easy discovery of the tabs ):
Moreover, using the "+add entity" button, instead of a selection tree, feels very natural for me, and self explicit as i can have one (with several tiles features proposed) or several entities (and less choices, but can remove an entity to get back the full choice) Maybe the various flow you all discuss could be addressed by the tabs and the buttons, adding new ones for other flows :
|
|
Hello hello, I wanna join the conversation, because the provided solutions seems a bit too complex to me 🙂 IMO the most common flow is: pick entity -> pick card What about a multi step flow solution instead of a big dialog? Then we have enough space to display all cards and on mobile it's also easier to use the same as on desktop.
I think we stick too hard on what is already there. 👋 |
5e53dbf to
f7354eb
Compare
To add an "entity related" card, it depends the way your brain works, and it depends if "what" is proposed fits you or not. But this is not true for not "entity related" cards:
IMHO The solution designed should also address this, and not only for user that "know" the card they want. |
|
To me, this YELLOW boxed flow hits on the simplist natural form. https://www.figma.com/design/xurRwpZBycqAjMDocJODJ3/Suggested-cards---dashboards?node-id=327-814&t=xBKULMKFaSZQYQtW-1
I have the different 'add multiple entities' ideas tried out above this one. |
|
As far as I know from my UX experience, you don't need redundancy for getting discoverability, specially if its in a top bar. And from what I've seen in interviews, no one really struggled with discovering the tabs - it was more they expected the first tab to get them everything they needed. On the contrary, putting people facing a choice with no context of what that means (What is "add entity" if I cannot know yet?) adds confusion, I've seen it in multiple studies including this one (most people verbalized "what is an entity" before starting to click around). I still believe with those UX principles we should go with @mbb365 version here. But @piitaya eager to get your thoughts too since you are implementing it |
|
OK @piitaya - I like this flow, its a good start. I would still love to see if we could get some kind of checkboxes for multiple entities + search bar to filter them - maybe later, or inside the "add entity" dialog - but the flow seems correct. |
|
Self explanatory and very good first step for me. I like it. For the concern that people might not know entity at that stage I let Laura comment. But as a first step it is good from my user / forum helper perspective ! |
|
@laupalombi so basically the same as this previous "by entity" but in the sidebar?
It may work on desktop but it may be hard to know what you selected once your start searching. Also, it will not work on mobile, we may need a multiple step flow on mobile. |
|
side question. When you propose a tile section (multiple entities selected) do you plan to add a heading card like "new section" or "new cards", or not ? Thinking of heading card discovery and liking the way it is done in the setting / device view when pushing "+add to dashboard"... (Maybe this idea is to be kept only if you can select an area or a device, where you could put area name or device name in heading card...) |
|
@BBE-FR yes card title-section is another topic I want to open, but one at a time - I want to keep this scoped into suggested cards so we can ship it and move on to the next thing. |
Fully agree. The selection way is for me another topic. Today when you create a new section, it comes with a heading card saying "new section", maybe that is enough for this discovery. If tomorrow the selection above allow to select an area or a device instead of an entity, I will expect it could come in the suggested part directly as a section with the related heading + tiles or as a single entities card with a related title. The today proposal is for me a huge step forward for feature discovery ! |
|
@BBE-FR I agree, for now it's entity focus but we could allow selecting area or device and suggest a section based on that (using the same target picker as automation) |
|
As a potential future improvement Yes ! But today step, is already very powerful IMHO... |
|
I am still seing many user using custom card instead of heading... But this is a totally different subject... |
|
Let's keep this PR just for the current implementation please 🙏 suggested cards by entity |
wendevlin
left a comment
There was a problem hiding this comment.
- Height issue:
-
Selecting a card, takes a while. We should add some kind of transition here. I click and some time nothing happens. Moreover (I had it once) after add a card it opened the more info dialog 🤷
-
search: keyboard navigation, this can be done at a later stage, but it should behave like the entity picker to be able to just use up/down arrows to select.
-
Personal opinion: It should be Tile - Brightness, Tile - Toggle instead of Tile (brightness), Tile (toggle)
-
Floors
- Unassigned areas are missing if the last floor is emtpy
- if there are just unassigned areas it shouldn't be a "floor" just show areas as root
- if there is just one floor (also with a second unassigned areas), please auto expand the tree there.
-
keyboard focus: when click on an entity it should focus the right panel
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
008e291 to
4477d2a
Compare
4477d2a to
353d0bb
Compare
ca7b04d to
803bffc
Compare
Fixed
I added a loader
Yeah we can keep this for later as the picker may changhe
Done
"Unassigned areas are missing if the last floor is emtpy". What do you mean?
We can keep this for later as the picker may changhe |









Proposed change
Adds a new "By entity" tab to the add-card dialog. You pick an entity first, and the dialog shows card options that fit that entity.
ha-entity-picker.Screenshots
Entity picker
Suggestions
Search mode
Mobile view (entity picker)
Mobile view (suggestions)
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
To help with the load of incoming pull requests: