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
344 stars 92 forks source link

Suddenly error with code swap(word) #142

Closed jove01 closed 1 year ago

jove01 commented 1 year ago

The integration works fine till yesterday. After restart of the system (I had problems with a mqtt device) I get this error, when I check the configuration again: Invalid config for [modbus]: Error in sensor Sungrow device type code swap(word) not possible due to the registers count: 1, needed: 2 @ data['modbus'][1]['sensors'][0]. Got {'name': 'Sungrow device type code', 'unique_id': 'sg_dev_code', 'slave': 1, 'address': 4999, 'input_type': 'input', 'count': 1, 'data_type': 'uint16', 'swap': 'word', 'scan_interval': 600}. (See ?, line ?).

Then I copied the first line of the new file and checked again with this error.

My sungrow-IP is the IP of the HA, because I installed the "modbus-proxy".

The addon "SVCC" works fine without this error.

What is to do?

Thank you Jürgen

mkaiser commented 1 year ago

fixed in 5af1945325eefc5d360cf219a03ef6b981e3ed3e

jove01 commented 1 year ago

Thank you