mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
310 stars 80 forks source link

Modbus error in log files: Received 2 bytes, unpack error unpack requires a buffer of 4 bytes #52

Closed mkaiser closed 1 year ago

mkaiser commented 1 year ago

I received many errors in the log since the last updates last week.

2023-01-29 00:34:49.352 ERROR (MainThread) [homeassistant.components.modbus.base_platform] Received 2 bytes, unpack error unpack requires a buffer of 4 bytes
2023-01-29 00:34:49.372 ERROR (MainThread) [homeassistant.components.modbus.base_platform] Received 2 bytes, unpack error unpack requires a buffer of 4 bytes

needs more investigation. On the first view it looks like a register of 2byte / 16 Bit is read, but 4 bytes / 32 bit are expected.

--> successivly comment registers with 32 bit and check the log....

Help would be much appreciated - I am short on time the next weeks

mkaiser commented 1 year ago

fixed in dabc6ec27d4b34e00458998232f03732f5523786