Skip to content

Add a state filter to logbook card#27685

Merged
MindFreeze merged 2 commits into
home-assistant:devfrom
karwosts:logbook-state-filter
Oct 30, 2025
Merged

Add a state filter to logbook card#27685
MindFreeze merged 2 commits into
home-assistant:devfrom
karwosts:logbook-state-filter

Conversation

@karwosts
Copy link
Copy Markdown
Member

@karwosts karwosts commented Oct 28, 2025

Proposed change

Add an optional state filter to logbook/activity card. Sometimes you want to have a log of some rare events, like maybe a leak sensor turning on, and the fact that a target entity transfers from off -> unknown -> off 100+ times is both uninteresting and clutters the display uselessly.

Fairly highly voted feature request.

image

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

Copy link
Copy Markdown
Member

@MindFreeze MindFreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add to state_filter to LogbookCardConfig. Docs have to be updated too https://www.home-assistant.io/dashboards/logbook/

@home-assistant home-assistant Bot marked this pull request as draft October 29, 2025 06:25
@home-assistant
Copy link
Copy Markdown

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@MindFreeze MindFreeze merged commit 5fa4454 into home-assistant:dev Oct 30, 2025
15 checks passed
@karwosts karwosts deleted the logbook-state-filter branch October 30, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants