Repository navigation
Notifications as the place where Home Assistant asks for your attention #79
Replies: 3 comments 8 replies
|
Personally I'd like to ditch toasts in as many places as possible. I mentioned this here. Using the popover api or something similar to show the notification in the place or around the place it was done, so in the case of the linked card/badge it would show around the section it's in, a paste would show where it shows (tbf if we animate this it would be obvious enough IMO. I dont even really know if copy needs a notification, cut maybe as theres an undo action). Similar standing in the automations/scripts/scenes areas. Also the restarting, lost connection, and the updated frontend ui available toasts could become a banner IMO (a non intrusive one, I recall making a cookie banner a while back which I made so small and essentially a link as it annoyed me. The place I put it now shows a much more irritating one like the rest of the world). This PR is along the right lines I think. I like the main ideas of this, just throwing alternate ideas in, better ones welcomed 🙂 If theres a better place for these lmk. |
|
My only thought is that it shouldn't be visible for non-admins, for obvious reasons! |
|
There's a WTH about the orange update dot. It's always on, so people stop noticing it. I suggest we drop the badge on notifications. An alert stays on screen until you act on it, which is loud enough. Whatever is still pending shows on the page the notification points to. |
Uh oh!
There was an error while loading. Please reload this page.
Problem statement
Home Assistant has no single place that tells you it needs you. What needs your attention is spread over different pages, and most of it is easy to miss.
This gets more pressing with automatic updates. Home Assistant will start updating and restarting itself at night. Then you need to know what will happen, when, how to do it now or hold it, and what happened while you slept.
Related epics:
The proposal
The indicator for #126 should be a notification. Not a new badge, banner or page.
macOS solves the same problem well. Software Update lives deep in System Settings. When there is an update, a notification shows up top right with the actions. The page gives you the details. A notification is a pointer to a page, not a separate place for the information.
What I want to take from macOS:
What I would not take from macOS for now: focus modes, scheduled summaries, and letting users pick the style per notification.
Is this still user space?
We agreed that the notification center is user space. I think this proposal keeps that rule, if we are clear about what user space means.
Point I want to make, user space is not about who created the notification. It is about who it is for. The test:
If one of these is yes, it is yours and it belongs in your notifications.
User space
Not user space
So the notification center holds your messages and what the system needs from you. It never becomes a feed of what the system is doing.
Levels
Only Home Assistant updates get an overlay. Integrations and device firmware stay on the Updates page.
Restart and update stay separate
An update is a choice, install this version or not. A restart is a consequence, you already made the choice and it is not active yet. They get separate notifications.
Restart, what we can build now
For #126 I want something we can ship quickly.
With #128 the update window gets an option to also restart when a restart is pending. Then the restart notification gets "Tonight at 03:00". The notification is designed for that state already, so it fits in later without a redesign.
One dependency: HACS needs to set
restart_requiredon its update entities. Otherwise you get the new notification and the old repairs side by side.Impact on the navigation
This changes Pins and Library (#69):
Open questions
Feel free to drop your thoughts.
All reactions