Repository navigation
Activity views: hide noise by default and save filtered views #78
dandoingdev
started this conversation in
Design review
Replies: 1 comment
|
+1 this seems pretty interesting to have -- anedoctal to "Visibility" filters on Dashboard Cards. Also, the Logbook Card (Activity Card) already allows you to do the reverse of this (include the activities you want to keep track of) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The Activity panel often fills up with entities that don't reflect anything happening in the home. Typical examples are transit departure times, weather and forecast enums, "next alarm" timestamps, and integration status sensors. Activity already hides numeric sensors, but
timestampandenumsensors count as non-numeric, so a "Next train" sensor that changes every minute buries the door, light and person events people actually came to see.The only way to hide this today is the YAML
logbook: exclude:config. It is global, needs a restart, and many users never find it. The new Sources pane from #64 / home-assistant/frontend#53630 is good for ad-hoc narrowing, but it only ever narrows, it is saved per browser, and you have to rebuild it every time.People keep asking for this:
Proposal: Activity views
A view is a saved scope for the Activity panel.
There are two kinds of view:
Switching views
A chip at the start of the toolbar shows the active view and opens a menu: Default, then the custom views, then admin actions (New view…, Edit default view…, Manage views…). An overflow-menu action "Save as view" turns the current Sources selection into a view.
Behaviour details
The Sources pane keeps working as ad-hoc narrowing on top of the active view.
Explicit picks win. If you open Activity for an excluded entity (for example from its more-info dialog, or by picking it in Sources), you still see its activity. Views hide noise, they don't make data unreachable.
Views are shared and admin-managed, which fits "Home Assistant for the whole household" (Home Assistant for the whole household #40). The selected view is per user, so everyone can switch freely.
A
?view=URL parameter allows linking to a view.If a view hides everything, the empty state says so and offers to switch back to the default.
Questions for the UX team
Implementation status
I have a working prototype, with screenshots taken from it, split across two branches:
exclude_entity_idstologbook/event_streamandlogbook/get_events. The frontend can't do exclusion well on its own: sending "every entity except X" as anentity_idslist hits SQL parameter limits on large installs, loses events that aren't tied to an entity, and forces a resubscribe whenever an entity is added.I'm happy to change direction based on feedback before opening PRs, and to split the frontend work into smaller PRs.
I built the prototype with help from an AI coding assistant. I've reviewed the design and code and will be the one submitting and maintaining the PRs.
All reactions