-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
[Bug]: incompatible pymodbus version crashes integration #857
Comments
The error Please disable the other integration causing the failure, or ask the developer to upgrade the required pyModbus library to 3.6.9 or higher. Closing as this is not a bug in this integration. As such, there is nothing for me left to do. |
Digged in every other integration and I found no one that uses pymodbus (read manifest.json one by one) Besides, I use pip list | grep pymodbus and I receive So it seems this is not the issue. |
Apparently there were some changes in the API of pyModbus between v3.6.9 and v3.7.0 . In the past that error message popped up because an outdated version of pyModbus was installed where that namespace did not exist yet. In v3.7.0 and above, it doesn't exist anymore. The huawei-solar library explicitly pins the version of pyModbus to When trying to fix them, I notice that the author of pyModbus is changing the API once again already, meaning that if I would do the effort of fixing the huawei-solar library to support the latest pyModbus version, it will break on the next release. I don't have much time at the moment to do the updates. Given that on the next release of pyModbus is 100% guaranteed to break again, I'm probably going to wait until things have stabilized again. |
I've just had a second similar issue being reported here (#866 ) As stated in my reaction over there: my policy is that I intend to keep the required pymodbus version in sync with that of the native modbus integration. I've done some most of the work yesterday to make the huawei-solar library compatible with v3.8.0 of pymodbus which was released a few days ago. It still needs some additional testing and polishing. I will only release a new version of this integration using that updated version when that version of pymodbus used by the HA modbus integration is also bumped to that version. |
This issue has been automatically marked as stale because it has been open 30 days |
Sorry, not sure if it finally was solved or not |
Thanks a lot for the integration, I have been using it for a year with very little problems. Didn't read the codebase (sorry) having it on addon and using mqtt as connection link could be beneficial in terms of dependencies and have more time to adapt in case of changes in HA, like this case. |
Maintaining a project like this to a high standard is challenging enough as it is. I have no intention to do anything with an addon and/or MQTT, as:
For a problem that doesn't affect 99% of the users of this integration, that is too much to ask. As this is an open source project, everyone is invited to take on this challenge on it's own of course. Closing as duplicate of #873 which is more active. |
Makes sense, thanks a lot for the feedback. |
Describe the issue
Hi. Sometimes (maybe 1 of 3) when I reboot home assistant, connection with my inverter is lost and isn't recovered until several days before. This is very inconvenient because I lose a lot of information when I reboot to update something on HA.
This is the log:
Describe your Huawei Solar Setup
Inverter Type: Huawei SUN2000 5KTL-L1
Inverter Firmware version: SUN2000L V200R001C00SPC130
sDongle present: No
Power meter present: single phase
Optimizers Present: No
Battery: None
Huawei Solar integration version: 1.4.1.
How do you connect to the inverter?
Via the
SUN2000-<serial_no>
WiFiUpload your Diagnostics File
Drag & Drop your Diagnostics File here.
Upload your relevant debug logs
Please confirm the following:
The text was updated successfully, but these errors were encountered: