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
Connection time out #57
Comments
Tested on 2022.7.3 working OK with 1 second interval for 2 inverters and 1 meter. |
I need to investigate what's wrong on my side then ... |
I was suspecting that I had a performance problem in my HA in a VM. So I've tested a dev container with only this component, but I'm still unable to set the polling to less than 10 secs. @WillCodeForCats Any idea on what I can check? |
How long did you wait after changing the time? Let it wait for 2 minutes and see if it's just an issue with the inverter thinking the old connection is still open. |
I've tried your suggestion and I've also restarted the inverter, without success. I've restored HA Core 2022.6.7, which, to my knowledge, was working fine, but it isn't.
|
PR #59 might help with the immediate connection error after reconfigure. |
Are you going to merge also the |
No, I'm not. |
BTW, digging into a very slow trigger issue, I was discussing about the possibility that the solaredge_modbus can be athe problem. In the discord channel they suggested me to "It looks like that package does the same thing. It should be an easy fix, you can just change line 187 there to use an executor job like "update_result = await self._hass.async_add_executor_job(self._read_modbus_data)" |
I have been looking at converting it to use the async client of pymodbus. The first step is to use the data update coordinator then probably async pymodbus later. The branch is there but it doesn't work yet. Once I get it to work with sync then I will work on async. Because it currently uses sync if you have a fast polling interval it can halt all home assistant execution while reading or waiting for a modbus timeout, so fast polling is not advised. |
I will also consider the async_add_executor_job wrapper if it's faster to implement |
The |
I should have all of the sync modbus calls covered with async_add_executor_job as of commit d8e3254 |
I can test it early next week |
I've created a pre-release v2.1.0-pre.1 |
I've created a pre-release for the latest pymodbus dev version: v2.1.2-pymodbusdev.1 |
pymodbus has released v3.0.0 I have updated the pymodbus-dev branch to support the latest release version. You can download the branch to try it manually: https://github.com/WillCodeForCats/solaredge-modbus-multi/archive/refs/heads/pymodbus-dev.zip |
pymodbus v3.0.0 is now in Release v2.2.6-pre.3 |
I'm getting a lot of connection time out using a polling interval below 10 secs. I was getting the same problems with other component for modbus-solaredge.
I think that this is related to the new HA version 7.2, and I was hoping that this component wasn't affected using a much more recent
pymodbus
library.Do you have the same problems?
The text was updated successfully, but these errors were encountered: