-
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
Cannot connect to Trannergy invertor (old addon works) #121
Comments
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
I know I used the proper serial, as the older addon also works (and i copied that serial). I took a tcpdump, and i do see communication with the inverter when trying to configure, but the GUI still says it cannot connect. (one part of the packet says "DATA SEND IS OK" from the inverter back to HA) |
Can you possibly share this dump? I've been refactoring the code somewhat to better cope with this second |
I didn't find anything in the logs. Also tried to enable more debugging on logs, but nothing seems related to the omnik. |
@rob-on-git thanks, I'll throw this through the parser when home and see what comes out of it. We probably do need some better logging at some point, not sure where the mostly-specific error types are disappearing. |
@rob-on-git After a bit of puzzling I managed to extract valid data from the dump you provided:
You can pick the WIP changes from MarijnS95/python-omnikinverter@8de1630; I'll tinker around with the Most problems were caused by Wireshark giving back bad data when saving the reconstructed TCP stream to a file, who in their right mind wants to save the literal ASCII text dump with all invalid characters replaced with |
Tried with your changes, but i get an 'Unknown error occurred' at this moment. And in the logs:
|
Alright, I've have only applied the necessary changes to the If I may ask, how'd you apply this patch so quickly? I've been struggling to find the best way to develop on both a local development homeassistant instance as well as my own "production" instance to test-drive these contributions. Writing code is easy, replacing and live-editing packages is hard 😬 |
I run the homeassistant on a supervised docker on Debian. Just went into docker shell and did the edit by hand... after that restarted the docker container. |
Fwiw this is where we're loosing most of the error context, I think this should at least have a home-assistant-omnik-inverter/custom_components/omnik_inverter/config_flow.py Lines 161 to 162 in c08ab6a
Awesome! 🎉
I think these are intentionally omitted; if you feel like more fields should be added (can be disabled by default so that they're invisible) they can be added at: home-assistant-omnik-inverter/custom_components/omnik_inverter/sensor.py Lines 42 to 164 in c08ab6a
(The fields are made available by
Can you possibly send a few more dumps (extracted TCP stream - saved as RAW(!) - is fine) collected over time, so that we can understand what data these fields are connected to? Or is it always
I think we'll have to demote this to |
I'll try to do some dumps and let you know. Another weird thing is, that it seems the plugin stopped pulling data after 24 hours (this morning, it started to get data... and suddenly stopped after a few hours, while the old integration still kept on running. Might be an additional issue... |
I had to insert I think I forgot to port this timeout to the TCP backend. |
I did end up covering the timeout in klaasnicolaas/python-omnikinverter#207 as well, which @rob-on-git already seems to have found and given a thumbs-up 😁 |
I did a longer dump (only forgot to post the analysis), but seems like the same padding is always there.... No other padding seen (approx 1 hour of traffic) |
In light of the recent request for dealing with the Otherwise, can you check in JS/HTML/JSON if there's any value matching |
Hi Marijn, I do not see any alerts in the webinterface. The only thing what might be related (?) is the firmware version i can see, which is : H4.01.51Y4.0.02W1.0.57(2017-07-261-D) It also says 'Connected inverter number 1 , type trannergy' |
Can i assist in taking this forward ? See that your pull request is not complete yet for the TCP timeout. |
@rob-on-git If I remember correctly I think @klaasnicolaas requested me to not "refactor" the system by pulling the timout up higher - which then spans multiple @klaasnicolaas If I misremembered/misunderstood, or just for general clarity, please request this as change on the PR so that I can track it :) |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
Hi @MarijnS95, is there already any progress on this. Didn't see much activity. Still using the old plugin though, which still works. |
Detailed description
When configuring within the GUI, i cannot connect to the TCP stream to my trannergy SGN4000TL (while i do see traffic)
Can someone point me out in how to debug this properly?
(i do have some scripting/network background, but not that much within HA)
Context
Currently i use the https://github.com/hultenvp/home_assistant_omnik_solar integration, which works fine (adapted the code to allow my 2nd string to be read)
Diagnostics
When adding to through the GUI in TCP mode, it says: 'Cannot connect' almost rightaway.
The text was updated successfully, but these errors were encountered: