-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Currently the Unused Entities flow does not take into account from which domain an entity belongs to, and does not perform any filtering or recommendations on the "add new card" screen.
For example, if the user selects a device_tracker entity on the Unused Entities screen, and then wants to add to their UI, the "Add new card" dialog should either disable or filter out all cards that a device tracker cannot be added to - gauge, iframe, light, markdown, media control, plant, thermostat, shopping list, weather forecast, etc.
Right now, it shows every available card type and just gives the user an error when they try to add it to an incompatible card. So the user ends up with a non-functional card and has to cancel and restart the process. This could be a little frustrating for beginners that haven't familiarized themselves with all two dozen card types yet.
Most of these cards only accept a single domain (alarm panel, gauge, light, media, plant, sensor, thermostat, weather). So for example if the user selects entities on Unused Entities screen and none of them are from the light domain, scratch the light card off the list of available cards.
And some of these cards such as iframe, markdown, and shopping list never accept any entities period, so there's no reason to show them when in the Unused Entities flow.
Showing only compatible cards would make this foolproof for beginners, and easier for everyone. Could make quicker decisions on what card to add something to when you're only seeing relevant ones.
