Skip to content
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

Modbus integration not working reliably with HA Core 2024.4.1 #24

Open
nilremgithub opened this issue Apr 6, 2024 · 10 comments
Open

Modbus integration not working reliably with HA Core 2024.4.1 #24

nilremgithub opened this issue Apr 6, 2024 · 10 comments

Comments

@nilremgithub
Copy link

The modbus integration has stopped working with the latest HA update. The log shows:

Logger: homeassistant.components.modbus.modbus
Source: components/modbus/modbus.py:383
integration: Modbus (documentation, issues)
First occurred: 11:51:50 (1 occurrences)
Last logged: 11:51:50

modbus solis communication closed

@Paulholloway
Copy link

No issues observed here (and mine normally breaks quickly).
Do you have the latest version?

@nilremgithub
Copy link
Author

Thanks for letting me know. I will check the code I have added.

@nilremgithub
Copy link
Author

It seems other people are experiencing the same issue. It seems to be related to the 2024.4.1 upgrade.
See: home-assistant/core#115040

@fboundy
Copy link
Owner

fboundy commented Apr 8, 2024

It seems other people are experiencing the same issue. It seems to be related to the 2024.4.1 upgrade. See: home-assistant/core#115040

Thanks - I've subscribed to updated to that issue so will monitor it. It does look like its an issue with Core

@fboundy
Copy link
Owner

fboundy commented Apr 8, 2024

A number of issues are now documented in home-assistant/core#115236.

I'm not sure which, if any, relate to issues with the Solis inverter. If you are able to debug log the issue and submit it then that would be helpful but the guy who looks after this on HA is somewhat lacking in social skills so be warned!

@spetrie13
Copy link

spetrie13 commented Apr 8, 2024 via email

@Richardvdw01
Copy link

My modbus problems still persist after Bump pymodbus v3.6.7 #115279
Looking at the logs, it seems that the modbus connection keeps getting lost. This makes several entities unavailable at the frontend.
When rolling back to 2024.3.3 everything works flawless.
Here is the latest log when upgrading to 2024.5.3:

Pymodbus fail.docx

@nilremgithub
Copy link
Author

I am not experiencing any issues. However I added the following to the top of the solis.yaml file under the port setting to address the original concern and haven't removed it.

delay: 5

message_wait_milliseconds: 100
timeout: 5

@Richardvdw01
Copy link

Thank you @ nilremgithub, Adding the delay resolved the issue. It looks like the new Pymodbus is too fast for the serial connection.

@fboundy
Copy link
Owner

fboundy commented May 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants