Open teskanoo opened 1 year ago
Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
+1 this issue, the lack of exclude filtering for the logbook in the ui, either temporary or 'save preferences' style, makes it very difficult to track a series of events and limits its usefulness. Now that I have a fairly large zigbee network I'm finding zha checkin event spam to create a ton of noise.
+1 dito
Same here, extremly annoying.
I noticed that with @AndreFjeld and @Teskanoo have Zigbee motion sensors that appear in the Logbook. With me it is only the Hue switches that appear unwanted in the Logbook. My motion sensors and lights do not have this problem. They are in the domain light and binary_sensor. My Hue switches however are in the zha domain and are stateless devices. They cause an zha_event. These switches don't have an entity as such only for battery, update and binary_input. Since it has no entity we are not able to exclude it...
Hope someone knows how to change that.
+1 also having this issue. Would love to get these out of the Logbook
Wondering why the ZHA integration is reporting these events in the log to begin with, not really seeing the relevance. I'd imagine that the zwavejs integration also checks in with zwave devices, but it doesn't display these events at all. I'd get it if I would have enabled debug logging or something but that's not the case.
recorder.yaml.txt I connected my Hue bridge V2 again and paired a few Hue switches to this bridge. Same resultaat. A Hue_event for each buttonpress and release in the logbook and db while hue_event type is excluded in the recorder config under event_types. I have Hue RWL021 and RWL022 switches. Maybe not a ZHA but recorder issue? Or the log code is the same for ZHA and Hue.
The logbook and recorder settings are the same: #72728 This is also explained in the logbook documentation. Problem: the logbook does only allow entities to be excluded and not events. Try: Logbook: exclude: event_events:
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (logbook
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
logbook documentation logbook source (message by IssueLinks)
Wondering why the ZHA integration is reporting these events in the log to begin with, not really seeing the relevance. I'd imagine that the zwavejs integration also checks in with zwave devices, but it doesn't display these events at all. I'd get it if I would have enabled debug logging or something but that's not the case.
My ZWave JS is reporting these events as well
Current logbook behavoir is that when I do a page refresh the ZHA and Hue events which should not be there are gone from the logbook. They are not written to the DB so the recorder ZHA and Hue events exclude works. So only in the live feed. This was discussed last year in another thread leading to #72728
Wondering why the ZHA integration is reporting these events in the log to begin with, not really seeing the relevance. I'd imagine that the zwavejs integration also checks in with zwave devices, but it doesn't display these events at all. I'd get it if I would have enabled debug logging or something but that's not the case.
My ZWave JS is reporting these events as well
With the difference being that you interacted with the device right? I’d deem these different (and more useful) then the redundant checkin events Zha is logging, which seem to only indicate that it tried to check if the device is still there.
That does seem to be the case, although I would still like them to not be there
Current logbook behavoir is that when I do a page refresh the ZHA and Hue events which should not be there are gone from the logbook. They are not written to the DB so the recorder ZHA and Hue events exclude works. So only in the live feed. This was discussed last year in another thread leading to #72728
Thanks doekwerk - you nailed it there
These events were definitely being added (interwoven) into the logbook AFTER the logbook page loads - it is something to do with the "previously introduced live logbook" mentioned on this page
https://rc.home-assistant.io/blog/2023/01/25/release-20232/#streaming-history
This one is annoying. I also wonder if the logbook changes could be causing this: https://github.com/home-assistant/core/issues/87128
Why limit this to ZHA events? It would be great if we could click an event and ignore, trash, snooze any line item. Maybe
HA-PC-1 System Uptime changed to 29:16:22:25 2:50:22 PM - 2 minutes ago
HASPone p[2].b[4] displays a clock with a clock icon triggered by time pattern 2:50:00 PM - 2 minutes ago - Traces
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I'm up to date on the OS and on the core version and problem still there.
Bump. The only reason that hasn't been any activity on this lately is because we're still waiting for the development team to chime in with their diagnosis.
Still ongoing on both web and phone.
Two months later, we still have our logbooks spam'ed with checkins. Does anyone have a recommendation or solution ?
Still happening... 2023.07.2
None of the logbook entries have a clickable link making me assume they are not 'registered' with an entity_id
If they were (which might allow me to exclude them using logbook exclude rules)
but this did not work to remove entities added with no domain or entity_id
exclude:
domains:
- logbook # Excludes nothing
- zha
Still having this anoying problem. Would really like to get rid of these crap messages from the ZHA integration. Or.. at least be able to filter them out from the logbook.
Solved months ago: I just uninstalled Matter, ZHA and trashed the Skyconnect and paired all 76 devices to a Hue and Ikea bridge. The Matter devices are sols. Never had this logging issue again. Nor unresponsive devices or any other issue. ZHA, Matter and Skyconnect are still Beta.
Clicking "reconfigure devices" fixed this for me.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Issue is still present on 2023.11.0rc
Vote for it, that is annoying
Still an issue
I'd like to add my vote for getting this addressed somehow. I'm not interested in ANY of the zha internal events (i.e. the ones with the BIG RED Z icon) but as others have mentioned, there doesn't seem to be a supported way of not seeing them in the logbook. Filtering using recorder, or logbook, doesn't seem to catch them.
What I did find is that you can get rid of them by hacking the code directly, commenting out the last line of components/zha/logbook.py. This doesn't stop them being logged, but it does stop them being displayed, as it makes the event display callback routine essentially do nothing.
`
`
It seems this issue should be simple to fix for someone who actually understands how these subsystems fit together. It just seems to need some proper classifier added to the events, that can then be filtered. I've yet to work out from the code where the events are actually being fed back and what causes them to be considered for the logbook at all, and that may be beyond my minimal python skills...
Current logbook behavoir is that when I do a page refresh the ZHA and Hue events which should not be there are gone from the logbook. They are not written to the DB so the recorder ZHA and Hue events exclude works. So only in the live feed. This was discussed last year in another thread leading to #72728
That's not my experience. I still see the entries after restarting HASS so they must come from the database, right?
Any progress on this? It is driving me crazy. Interesting is that I have 2 of these Smartthings devices, and only one is filling the log with these useless events.
This should be a simple fix (???). What I miss is a response on this thread,, to get an understanding why the log i filled with useless information - and why it is not possible to exclude them in any way. Maybe this is the curse of using open source software - it is more fun to develop new features than fixing small issues for the users? Please help, and I will for certain give the developer(s) a lot of credit!
also experiencing same issue, but only with 2 zigbee extenders.
I would also like to exclude ZHA events from the logbook. Since 2024.3, I have events every 5min for a plug:
event_type: zha_event
data:
device_ieee: 60:a4:23:ff:fe:65:1e:6e
unique_id: 60:a4:23:ff:fe:65:1e:6e:1:0x0019
device_id: 385fb0ca6c0f2ae492d146c240089cc8
endpoint_id: 1
cluster_id: 25
command: attribute_updated
args:
attribute_id: 2
attribute_name: current_file_version
value: 65
params: {}
origin: LOCAL
time_fired: "2024-03-08T10:07:16.788963+00:00"
context:
id: 01HRERG0SMN27BTTDYHT1FR39M
parent_id: null
user_id: null
@dmulcahey @puddly Sorry to tag you but this issue is old. Is there anything you can do?
FWIW, I've managed to remove most of the ZHA stuff in the logbook with these bits of config. There's still the bug where if you're watching the live logbook update the ZHA events will appear, but they then disappear if you refresh the view, but I find this liveable-with.
The "logbook" section removes any events that don't have a recognised filterable domain, so it's a catch-all, and may remove some other events that you do care about...
recorder:
exclude:
event_types:
- zha_event
logbook:
exclude:
domains:
- logbook
+1 on this issue. It's making the logbook pretty hard to use.
I don't know if these two symptoms are related but recently (a few months ago I guess) my Xfinity keypad started to act weirdly. I have an automation supposed to sync Alarmo and the keypad and it started to be slow/laggy/buggy for no reason. The automation is triggered when a ZHA event is detected with the keypad, and it started to be triggered with no one touching the keypad. By taking a look at the logs I noticed the "attribute update event" was triggering it, and I'm pretty sure there was no attribute update events at all a few months ago. I guess if it started with the introduction of their new "firmware update" check that runs all day long for every ZHA device.
@luke7101 I've found most common blueprints for ZHA switches are always triggered by these update events also, but the logic within the automation means no action is taken. I'm not sure what kind of overhead this creates but similarly to the logbook it can spam automation traces making it harder to get useful info.
@luke7101 I've found most common blueprints for ZHA switches are always triggered by these update events also, but the logic within the automation means no action is taken. I'm not sure what kind of overhead this creates but similarly to the logbook it can spam automation traces making it harder to get useful info.
I absolutely agree. No action from the automation logic, automation traces messed up, all in all a useless spam activity. I just don't understand why this issue is open since 2022, but I just got impacted since core2024 ... Isolating the source of this behavior would help stopping it.
Good news, with https://github.com/home-assistant/core/pull/114591 attribute update events due to ZHA checking for updates should disappear
I just saw that made beta - fingers crossed we have seen the end of this :)
core-2024.4.0 fixed the issue for me. No more flooding in the logbook and no more automations triggered by a fake event!
still seeing 'Checkin event was fired' events after upgrading unfortunately
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I still have that issue. I'm pretty new to homeassistant and these messages appeared after installing an Sonoff Zigbee 3.0 USB Dongle Plus and connected some IKEA Sensors and Light Core 2024.7.0 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240703.0
FWIW... Also exp experiencing this with a Sonoff Zigbee 3.0 USB Dongle Plus
Still happening for Hue motion sensors.
Yes, I have a Hue outdoor motion sensor that's spamming the logbook on the latest version.
IT is mainly Hue motions sensors that still persist in this behaviour for me now
The problem
Since I switched from Deconz to ZHA, my logbook is overrun with entries created by the ZHA Integration
I have found no way to prevent these entries from appearing in the logbook (which makes the logbook very difficult to read)
Having over 100 Zigbee devices this results in the Logbook consisting of about 70-75% ZHA Events with the remaining 25-30% being those events in which I have expressed an interest in being reported
I have attempted to exclude ZHA events in the logbook configuration by domain
I have attempted to exclude ZHA events in the logbook via recorder configuration where I can exclude event_types
Recorder config, IMO, should be the solution to remove these logbook entries - I can only imagine that I am targeting the wrong event_types, however this is how they appear in my (MariaDB) Database
I have attempted to prevent the logging in logbook by reducing the logging level for the integration (in the vain hope that this might be a factor)
I have verified that this issue occurs regardless of the Enable/Disable debug logging setting for the integration
I have attempted to identify in the codebase if and where any recorder and logbook exclusions are taken into consideration when the deciding to log into the logbook
What version of Home Assistant Core has the issue?
2022.12.8
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA, Logbook
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha/
Diagnostics information
No response
Example YAML snippet