-
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
Optimal "minimum time between entity updates" #100
Comments
Hi @ianfretwell, Can you tell us a bit more about your setup? Like what inverter do you use? Although you don't say that the wifi drops, it seems like a connection issue. Maybe add a binary_sensor and ping your inverter for a while? See if the connection drops? Add this to your configuration.yaml
|
@robbinjanssen Thanks - I'll give that a go and see what it shows up... |
Apologies @robbinjanssen - I completely ignored part of your original response, here are the details - Inverter - Omniksol-4k-TL @HartmutHartmann Thanks for posting at least it shows I'm not alone. |
Hello! I have the same problem. Previously I used Hein Oldenhuis's HA integration (https://github.com/heinoldenhuis/home_assistant_omnik_solar). That integration updates neatly every 60 seconds, this cannot be shorter with that integration. I now use this integration as Hein's integration no longer gets updates. However, it now updates completely randomly and not stable. Not every 60 seconds, even when I set it. By default it was 4 minutes for me. The WiFi connection is stable, there is an access point less than 5 meters from the 3 inverters. I'm using: omnik1000tl, omnik2000tl and an omnik2500tl2. Any idea what's going wrong? Stephan |
@Step-han Hein's integration uses a TCP connection, which is probably more stable and also provides more statistics while at it. I've liked this integration more with a config flow and all sensor entities bundled under a device, and now that Hein's plugin is deprecated I'm working on porting TCP connection support to |
Which version of the integration are you using? Since the last version we have abandoned the reuse of session, which could result in inverters no longer blocking a connection. As for the interval time, it is set to 4 minutes by default because the inverter in their web interface often only updates once every 5 minutes. |
In my case the version is v2.3.0. |
@klaasnicolaas It seems that |
This only happens if you don't pass a session otherwise it will reuse the old session to make another request. As far as we know there is no rate limit and I have never run into it during testing (which is stress testing) so I don't expect this to be the problem either. We have just removed the session because certain inverters do not like it when you reuse a session. You could always use wireshark to see what is happening with requests in your network. |
Keeping the session/connection alive is one thing, resending an identical request for the same data (which likely also happens to be identical) - while not the end of the world (and probably not the source for this issue either) - just seems rather wasteful: home-assistant-omnik-inverter/custom_components/omnik_inverter/__init__.py Lines 123 to 124 in d00ad65
|
We might merge that in the future, but let's save that for another issue 😉 |
In my case also v2.3.0. I ran this version and Hein's version side by side for a while and Hein's always updates every 60 seconds and never misses a pull. This integration misses alot of pulls when configured with 1 minute interval, sometimes no data for more then 15 minutes. For now I'll stick with Hein's as long as it continues to work with HomeAssistant |
Does this also occur with a previous version? v2.2.0? |
@HartmutHartmann @ianfretwell @Step-han you could try using the TCP backend now, just reinstall the configuration and select TCP :-) |
Thanks - I'd already uploaded to the new version and seen all the new sensors - none of which worked for me even after enabling them. I've now reconfigured with TCP and they are now working, but I've lost two that worked previously (IP address & Signal Quality). Is that just because of differences in what my inverter is returning depending on whether it's setup for JS or TCP? |
This is something that we might want to add later, by querying the device over both JS and TCP. That should also allow the Serial Number setup to be automated by first doing a JS request and parsing the number from it. However, in my testing the Serial Number seemed to be sort-of irrelevant. The inverter still replies with data even if it's "wrong" (e.g. just set it to In the end we'll probably rework this after turning the TCP backend into |
Just an update then - after two days of using TCP rather than JS - the gaps in reporting remain pretty much the same - no better, no worse. |
@ianfretwell As far as I've understood the code these requests for updates are driven by home assistant itself ( |
Out of interest - today the integration hasn't managed to connect even the once successfully. Yet at the same time I use this project https://github.com/jbouwh/omnikdatalogger in a dedicated docker instance, also configured to use a TCP connection, and it's been absolutely fine all day. I've been using them alongside each other all along. So if one works and the other doesn't surely they're making their connections differently somehow ? |
Still using Hein Oldenhuis's HA integration, its not broken (yet). Anyone tested this intergration with a omnik inverter? How is the update frequency? And is it stable now? If nobody tested it I can test it in the future.. |
For me it's no better or worse than it was when I originally posted back in February. |
it would be interesting to find out how it is possible that an inverter can sometimes not be reached during the day 🤔 |
What is the interval from the data? |
Default is every 4 minutes, but you can adjust it in the options flow to at least 1 minute. |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
You could try my integration, I continued the work of hultenvp and heinoldenhuis. |
Every 10 sec? Thats nice! I'm now using @robbinjanssen intergration with de TCP mode, now it updates every 60 seconds, can't get it faster then that. This is today, with 4 omnik inverters: @Maarten69: I'll check youre intergration soon, will compare with the intergration of @robbinjanssen. |
Hi - not an issue as such, more a request for assistance.
Is there an optimal setting for the "minimum time between entity updates" in the Configure settings ?
I have tried 4 and 5 minutes and on either I see the following type of results - notice the frequent inability to get any results. The wifi doesn't seem to be dropping to the inverter so I just thought there might be a 'better' value to be using for more consistent results.
Thanks.
The text was updated successfully, but these errors were encountered: