-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
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 connects too soon after reloading yaml and doesnt evaluate the connection call when it fails #129940
Comments
I have a similar issue, but looking at the logs i havent seen this detail, but it sounds similar. I have connected my heatpump with modbus to HA, but for some reason, whenever I restart HA do to any config changes, unrelated to the modbus entities, they go unavailable for several hours. Also, I have not just been reloading yaml, but rather done the full restart.
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
The modbus integration has an established connection with a tcp peer.
When reloading HA yaml files it terminates the connection, establishes a new one.
The new connection fails but Modbus keeps trying to read values.
Reloading the yaml files once again then succeeds.
It would help when
Logs:
Clicking on 'reload yaml config'
Upon inspecting the above logs you can see that even after 'Connect call failed' modbus thinks that the communciation is open and attempts to read values.
My config:
What version of Home Assistant Core has the issue?
core-2024.10.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Modbus
Link to integration documentation on our website
https://www.home-assistant.io/integrations/modbus/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: