-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add support for logging #93
Comments
Hi 👋! You can "filter" for group addresses with the search bar. It's not really the most handy way to solve that, but for general debug purposes it should be good enough imho. This object view sounds interesting. Maybe it can be combined with #76 one day 🤔 |
I commented on #92 and clarified the use case and possible solution there. The current filtering is no worse than what's in ETS, so everyone is accustomed to it anyway :) The cut-off time limit for realtime browsing would be useful to avoid loading entire, possibly very long history in memory and on page. And yes, such object view would also solve #76 . |
current max history is 5000 Telegrams - that's about 2MB of data. I don't think this would lead to problems regarding loading times or responsiveness, but it is indeed not very handy to have it on one page. |
Hope this is the right "forum" to discuss, if not, please redirect me. Have been moving away from my current KNX platform during the last half year and am very pleased with the combination HA+NR, thanks!!! The last feature for finally getting rid of the old platform is long-term logging and easy searchability of historical data (AKA extensions of the group monitor):
My first impression is that the out-of-the-box InfluxDB integration is too limited, e.g. because it does not support multiple targets as far as I understood. Was looking into knx2influx, but that's too limited in terms of functionality at this point in time and seems abandoned. Plus totally unclear how to build a good UI... don't think grafana would be suitable. Given my limited programming experience, I would rather support a community effort with testing etc. than trying to build something on my own. How does the above sound to you? |
Hi 👋! Having DB-connectors in the HA KNX integration would be out of scope imho. For the better UI, I am 100% with you. Since HA data table was revised recently (2024.4), it may be possible to leverage its new filter methods for the group monitor. Saving filter options sounds like a lot of work for a feature that is quite rarely used. For me the HA group monitor is a tool to quickly test things or look up addresses - it was not meant to be a full fledged KNX logging and debugging tool. That said, if anyone cares to contribute to push it that direction, I'm fine with it too 😉 |
Hi, thanks for the quick response. Sounds indeed logical to move the DB integration higher up the chain, HA automation makes sense. As long as it is able to capture all KNX traffic even if the GA with DPT has not been pre-defined. For me, that is the argument against Telegraf because that integration only captures previously defined GAs. (I know, I know, in a well-defined KNX environment, all DPTs should be known upfront. But reality is harsher I guess ;) And the need to keep exporting/importing the ETS project file is a bit of a hassle.) Do I understand you correctly that if someone comes with an "extension" to knx-frontend that integrates with InfluxDB for reading "telegrams" from there, that would be OK? Or would this rather be something for HACS? |
Hm... you need to import ETS project files for HA as well. Maybe have a look here https://github.com/svsool/knx-telegraf-config-generator Anyway I'm not sure if an influx connector would work solely from the frontend - without any backend-part. |
Thanks for your thinking along and patience. I see your point on the backend (shows my level of experience :()... From our earlier chat (which I just remembered, https://community.home-assistant.io/t/knx-cookbook/230972/447), a "catch all" would work as well without importing the ETS project file (which of course I do for 99% of the installation)? Question might come down to: Is a KNX group (and potentially bus) monitor with historical data based on HA a feature more HA users would want/need? Or is that something more for e.g. system integrators (likely with the related price tag)? |
You can't build a bus monitor with a tunnelling data link layer connection - only a group monitor. |
Thanks for the clarification, I'll leave the bus monitor to the old platform then (with built-in KNX interface). I'll put it on my to-do list for the coming months/year. |
To get the past few days, you can already use HAs Group monitor. Just set the retained telegrams to a higher count in the Knx integration settings. |
It would be useful to be able to see long term history in group monitor. There should be a preference for retention period and a cut-off value for realtime browsing, for when your sort the group monitor according to criteria other than time.
In addition to group monitor there could be object view like Schneider Wiser for KNX, where you can browse/filter group addresses and can see the last value seen on bus for that group address and when it was seen.
You're doing magnificent work with the integration.
The text was updated successfully, but these errors were encountered: