-
Notifications
You must be signed in to change notification settings - Fork 20
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
omnik inverter tcp fails to configure in Home-assistant #142
omnik inverter tcp fails to configure in Home-assistant #142
Comments
Can you share a dump of the returned data, typically captured with wireshark? This might be caused by the inverter sending the data split in a weird way, something I have fixed locally but have not yet made a PR for. |
marijnS95: |
Can you run it on the machine/interface that the HA instance is running on? What is a HA app "at de" macbook, isnt't that just the web interface?
There are many such projects so that doesn't mean much. You're probably referring to the most popular one which is https://github.com/jbouwh/omnikdatalogger?
It doesn't perform any data validation on the returned TCP packets, which is what I implemented at the core. However, it also doesn't process multiple "received streams" when the result ends up being segmented, so that is unlikely to be the cause. Perhaps this inverter is simply returning less fields, which are optional in the other logger (please confirm which one you are using) but mandatory in the current parser. If you can't get wireshark to work we can dump the raw packet from within |
I use the omnik-data-logger --> github.com/Woutrrr/Omnik-Data-Logger.git
|
Right, a different one after all. This also doesn't read packets more than once but it could be more lenient in how big of a message it expects.
https://github.com/klaasnicolaas/python-omnikinverter/blob/5a5dcf74125a0372051ee113edf3c5eebf18ce96/omnikinverter/omnikinverter.py#L155 dump the value of with open("3000TL", "wb") as f:
f.write(raw_msg) |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
hi, the issue can be closed, i managed to get the data from the inverter by using the hacs implementation from hein oldenhuis |
This issue should not be closed. Hein's repo is unmaintained and this is supposed to be its improved successor, and we intend to make usable for all inverters. That said I did not received any of the requested info from you to aid debugging. Since it works with the other plugins I can only assume the data layout is the same but lacking the trailing padding and maybe some fields (beyond 85 bytes) that we can make optional. If you are not able to provide a data dump, would you at least be available to test a change that enables this? I'll describe how to set it up. |
ok, i wasn’t able to get a data dump.but i’ll test another setup when you have itregards,janSent from my iPhoneOn 17 Jan 2023, at 18:33, Marijn Suijten ***@***.***> wrote:
This issue should not be closed. Hein's repo is unmaintained and this is supposed to be its improved successor, and we intend to make usable for all inverters.
That said I did not received any of the requested info from you to aid debugging. Since it works with the other plugins I can only assume the data layout is the same but lacking the trailing padding and maybe some fields (beyond 85 bytes) that we can make optional. If you are not able to provide a data dump, would you at least be available to test a change that enables this? I'll describe how to set it up.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@janknol please don't use email replies or at the very least carefully watch the newlining, GitHub makes these things atrocious to read 🫣. Looking at the datastructure we go down from 125 to 85 bytes by exactly stripping the last four fields - Either this is new and wasn't yet provided in your software version, or I can see about providing a patch later that ignores these fields and also does the dumping for you. |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
Same issue here with my Omnik 3000TL. The other Omnik integration works, but I get the same "Buffer size too small (85 instead of at least 125 bytes)" error. Attached is a wireshark dump from the packages between my Home Assistant server and my inverter during the setup. Please let me know if this is the correct data, I'm not really knowledgeable about wireshark. |
Is this already implemented? I still get the same error (Buffer size too small (85 instead of at least 125 bytes) with the latest version 2.6.1. |
@PeeVv we might have to cut a new release of |
intergration of the omnik inverter into Home Assistant
Detailed description
omnik inverter 3000TL (2013)
add intergration
omnik
pop up
choose TCP
name solar
ip address
serial 0
after a while an error pops up:
Buffer size too small (85 instead of at least 125 bytes)
Context
Why is this change important to you?
I want to see the solar production in Home Assistant dashboard
How can it benefit other users?
-->
The text was updated successfully, but these errors were encountered: