cdpuk / givenergy-local

Home Assistant integration for local access to GivEnergy inverter and battery systems
MIT License
53 stars 14 forks source link

Modbus Error and ReadHoldingRegistersResponse != ReadInputRegistersResponse after upgrade to 1.8.0 #56

Closed capsel22 closed 1 year ago

capsel22 commented 1 year ago

Hi,

I'm seeing a lot of errors in Home Assistant Core log in System -> Logs. I haven't seen these errors before. Not sure what to include, apologies. Happy to supply anything given instructions.

I'm using GIV-AC3.0 inverter

image

Logger: givenergy_modbus Source: custom_components/givenergy_local/coordinator.py:69 Integration: GivEnergy Local (documentation, issues) First occurred: 20 May 2023 at 14:43:29 (61 occurrences) Last logged: 07:39:43

Returned base register (60) does not match that from request (180).
Returned base register (60) does not match that from request (0).
Did not receive expected response type: ReadInputRegistersResponse != ErrorResponse
Did not receive expected response type: ReadInputRegistersResponse != ModbusIOException
Returned base register (0) does not match that from request (60).

Logger: givenergy_modbus Source: custom_components/givenergy_local/coordinator.py:64 Integration: GivEnergy Local (documentation, issues) First occurred: 20 May 2023 at 16:04:36 (21 occurrences) Last logged: 07:32:47

Did not receive expected response type: ReadHoldingRegistersResponse != ReadInputRegistersResponse
Returned base register (0) does not match that from request (180).
Returned base register (60) does not match that from request (180).
Did not receive expected response type: ReadHoldingRegistersResponse != ErrorResponse
Did not receive expected response type: ReadInputRegistersResponse != ModbusIOException

Logger: givenergy_modbus Source: /usr/local/lib/python3.10/site-packages/givenergy_modbus/modbus.py:52 First occurred: 20 May 2023 at 15:28:37 (14 occurrences) Last logged: 07:32:47

Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 164 bytes (44 received)

NoneType: None

cdpuk commented 1 year ago

As per the "Limitations" section on the README these errors are from the givenergy_modbus library rather than directly from the integration. This is likely to improve with some improvements being made, however a new version is not yet available.

Unfortunately the upgrade to 1.8.0 is almost certainly unrelated. It's more likely to be something to do with system or network load as the modbus connection seems very sensitive to these.