Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counting errors and warnings #80

Closed
BeardedTinker opened this issue Jan 13, 2022 · 1 comment
Closed

Counting errors and warnings #80

BeardedTinker opened this issue Jan 13, 2022 · 1 comment
Assignees
Labels
Enhancement New feature or request Good first issue Good for newcomers

Comments

@BeardedTinker
Copy link
Owner

I love HA community - I really love all the questions that end up as ideas for future improvements to HA.

One question today was (from Jaap):

Would it be possible to keep track of the number of warnings and errors? It would be interesting to see how these develop over time.
I can imagine it is difficult to set up but it would be worth some effort

10 minutes and one HA community thread later - it's here.
Working counter, that can track new errors and warnings in HA logs, and count them also.

@BeardedTinker BeardedTinker added Enhancement New feature or request Good first issue Good for newcomers labels Jan 13, 2022
@BeardedTinker BeardedTinker self-assigned this Jan 13, 2022
@stale stale bot added the old-issue label Apr 16, 2022
Repository owner deleted a comment from stale bot May 23, 2022
@stale stale bot removed the old-issue label May 23, 2022
@BeardedTinker
Copy link
Owner Author

A note on this one. During startup if there are a lot of errors, system may become overwhelmed with them and create errors for failing to count errors (you see issue, error counter, creating additional errors).

To solve this, I've added line of code to automation that gets triggered:

mode: queued
max: 20
max_exceeded: silent

This increases queue to 20 from 10 that is default.
And if it goes even above 20, it will just stay silent and not throw additional error.

Not perfect - but works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant