You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data on the Network looks fine according to Wireshark. This Issue seems to sit deep in the parser before the debug output.
Even if such packets were to be sent from a TCP client, they should be discarded because of the mismatch in the slave address.
I tried to dig in the Modbus Parser Code, but Several layers with Asynchronous execution are a little overwhelming for me at the moment. But I am happily providing as much info as neccessary.
What version of Home Assistant Core has the issue?
core-2024.11.2
What was the last working version of Home Assistant Core?
I was able to stop the peaks from showing up by messing with the timing and mode on the TCP Server device.
I still think there are issues with the Sequence numbering and Responses with slave address mismatch should get discarded and retried.
If you can come up with a reliable way to reproduce the issue, I'd recommend opening an issue with pymodbus as it seems based on the report that the problem lies there.
The problem
When polling Holding Registers, response values get Randomly assigned to another slave entity of the same Modbus Client.

The Sensor is always sending 0, the Peaks in the graph are exactly the numbers previously read from another slave.
Note the right sequence number but with wrong slave address and data in the Debug output:
Data on the Network looks fine according to Wireshark. This Issue seems to sit deep in the parser before the debug output.
Even if such packets were to be sent from a TCP client, they should be discarded because of the mismatch in the slave address.
I tried to dig in the Modbus Parser Code, but Several layers with Asynchronous execution are a little overwhelming for me at the moment. But I am happily providing as much info as neccessary.
What version of Home Assistant Core has the issue?
core-2024.11.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
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
Anything in the logs that might be useful for us?
Additional information
Possibly related to several previous unsolved Modbus outlier issues such as
#119649
mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant#299
binsentsu/home-assistant-solaredge-modbus#126
#87876
The text was updated successfully, but these errors were encountered: