wlcrs / huawei_solar

Home Assistant integration for Huawei Solar inverters via Modbus
GNU Affero General Public License v3.0
517 stars 80 forks source link

[Bug]: WriteSingleRegisterResponse error on sending commands #280

Closed CommanderROR9 closed 1 year ago

CommanderROR9 commented 1 year ago

Describe the issue

Hi,

Since updating to 1.2.2 version of this integration I can no longer send commands to the inverter (for example to turn on grid Charge) since it always returns the error WriteSingleRegisterResponse

Bescribe your Huawei Solar Setup

Inverter Type: Sun2000 8TKL M1 Inverter Firmware version: 150 SDongle present: yes Power meter present: three phase Battery: LUNA2000 10kWh Battery Firmware version: 116

How do you connect to the inverter?

Over serial, with a serial-to-USB stick

Upload your Diagnostics File

"home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.1.7", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.7", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "5.15.84-v8", "supervisor": "2023.01.1", "host_os": "Home Assistant OS 9.5", "docker_version": "20.10.22", "chassis": "embedded", "run_as_root": true }, "custom_components": { "nordpool_diff": { "version": "0.2.2", "requirements": [] }, "better_thermostat": { "version": "1.0.0", "requirements": [] }, "reolink_dev": { "version": "0.61", "requirements": [ "reolink==0.0.64", "aiosmtpd>=1.4.2" ] }, "hacs": { "version": "1.30.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "mass": { "version": "2022.12.1", "requirements": [ "music-assistant==1.8.7.2", "git+https://github.com/music-assistant/databases@fix-breaking-sqlalchemy-cursor-changes#databases==0.6.3" ] }, "nordpool": { "version": "0.0.10", "requirements": [ "nordpool>=0.2" ] }, "homematicip_local": { "version": "1.27.2", "requirements": [ "hahomematic==2023.1.7" ] }, "smart_thermostat": { "version": "2021.11.1", "requirements": [] }, "solcast_solar": { "version": "3.0.32", "requirements": [ "aiohttp>=3.6.2", "datetime>=4.3", "isodate>=0.6.0" ] }, "energyscore": { "version": "1.1.3", "requirements": [] }, "tesla_custom": { "version": "3.9.1", "requirements": [ "teslajsonpy==3.7.1" ] }, "ev_smart_charging": { "version": "v1.6.0", "requirements": [] }, "tibber_data": { "version": "0.6.0", "requirements": [ "pyTibber>=0.25.2" ] }, "entsoe": { "version": "0.0.1", "requirements": [ "entsoe-py==0.5.8" ] }, "nordpool_planner": { "version": "0.1.4", "requirements": [] }, "thermal_comfort": { "version": "2.0.1", "requirements": [] }, "climate_group": { "version": "0.4.2", "requirements": [] }, "priceanalyzer": { "version": "1.2", "requirements": [ "nordpool>=0.2" ] }, "govee": { "version": "0.2.2", "requirements": [ "govee-api-laggat==0.2.2", "dacite==1.6.0" ] }, "huawei_solar": { "version": "1.2.2", "requirements": [ "huawei-solar==2.2.2" ] }, "nodered": { "version": "1.1.2", "requirements": [] }, "reolink_discovery": { "version": "1.1.1", "requirements": [] } }, "integration_manifest": { "domain": "huawei_solar", "name": "Huawei Solar", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/huawei_solar", "issue_tracker": "https://github.com/wlcrs/huawei_solar/issues", "requirements": [ "huawei-solar==2.2.2" ], "codeowners": [ "@wlcrs" ], "iot_class": "local_polling", "version": "1.2.2", "loggers": [ "huawei_solar", "pymodbus" ], "is_built_in": false }, "data": { "config_entry_data": { "host": "192.168.178.153", "port": 502, "slave_ids": [ 1 ], "enable_parameter_configuration": true, "username": null, "password": null }, "slave_0": { "model_name": "SUN2000-8KTL-M1\u000001074300-002", "pv_string_count": 2, "has_optimizers": 0, "battery_type": 2, "battery_1_type": 2, "battery_2_type": 0, "power_meter_type": 1, "supports_capacity_control": true }, "slave_0_data": { "input_power": [ 0, "W" ], "line_voltage_A_B": [ 413.3, "V" ], "line_voltage_B_C": [ 417.9, "V" ], "line_voltage_C_A": [ 415.4, "V" ], "phase_A_voltage": [ 238.6, "V" ], "phase_B_voltage": [ 239.4, "V" ], "phase_C_voltage": [ 241.7, "V" ], "phase_A_current": [ 0.343, "A" ], "phase_B_current": [ 0.339, "A" ], "phase_C_current": [ 0.356, "A" ], "day_active_power_peak": [ 3748, "W" ], "active_power": [ 176, "W" ], "reactive_power": [ -1, "VA" ], "power_factor": [ 1.0, null ], "grid_frequency": [ 50.02, "Hz" ], "efficiency": [ 100.0, "%" ], "internal_temperature": [ 40.5, "\u00b0C" ], "insulation_resistance": [ 30.0, "MOhm" ], "device_status": [ "On-grid", null ], "fault_code": [ 0, null ], "startup_time": [ "2023-01-30T07:58:48+00:00", null ], "shutdown_time": [ null, null ], "accumulated_yield_energy": [ 399.69, "kWh" ], "daily_yield_energy": [ 3.45, "kWh" ], "state_1": [ [ "Grid-Connected", "Grid-Connected normally" ], null ], "state_2": [ [ "Unlocked", "PV connected", "DSP data collection" ], null ], "state_3": [ [ "On-grid", "Off-grid switch disabled" ], null ], "alarm_1": [ [], null ], "alarm_2": [ [], null ], "alarm_3": [ [], null ], "pv_01_voltage": [ 227.1, "V" ], "pv_01_current": [ 0.0, "A" ], "pv_02_voltage": [ 137.0, "V" ], "pv_02_current": [ 0.0, "A" ], "grid_A_voltage": [ 240.6, "V" ], "grid_B_voltage": [ 240.5, "V" ], "grid_C_voltage": [ 241.3, "V" ], "active_grid_A_current": [ 0.47, "I" ], "active_grid_B_current": [ -0.7, "I" ], "active_grid_C_current": [ 0.61, "I" ], "power_meter_active_power": [ 5, "W" ], "power_meter_reactive_power": [ 267, "Var" ], "active_grid_power_factor": [ 0.0, null ], "active_grid_frequency": [ 50.0, "Hz" ], "grid_exported_energy": [ 53.54, "kWh" ], "grid_accumulated_energy": [ 617.91, "kWh" ], "grid_accumulated_reactive_power": [ 0.0, "kVarh" ], "meter_type": [ 1, null ], "active_grid_A_B_voltage": [ 416.6, "V" ], "active_grid_B_C_voltage": [ 417.2, "V" ], "active_grid_C_A_voltage": [ 417.3, "V" ], "active_grid_A_power": [ 14, "W" ], "active_grid_B_power": [ -46, "W" ], "active_grid_C_power": [ 38, "W" ], "storage_state_of_capacity": [ 69.0, "%" ], "storage_running_status": [ 2, null ], "storage_bus_voltage": [ 766.8, "V" ], "storage_bus_current": [ -0.3, "A" ], "storage_charge_discharge_power": [ -178, "W" ], "storage_total_charge": [ 281.7, "kWh" ], "storage_total_discharge": [ 270.16, "kWh" ], "storage_current_day_charge_capacity": [ 5.98, "kWh" ], "storage_current_day_discharge_capacity": [ 3.54, "kWh" ] }, "slave_0_config_data": { "storage_maximum_charging_power": [ 5000, "W" ], "storage_maximum_discharging_power": [ 5000, "W" ], "storage_charging_cutoff_capacity": [ 100.0, "%" ], "storage_discharging_cutoff_capacity": [ 5.0, "%" ], "storage_working_mode_settings": [ 2, null ], "storage_charge_from_grid_function": [ true, null ], "storage_grid_charge_cutoff_state_of_charge": [ 100.0, "%" ], "storage_fixed_charging_and_discharging_periods": [ [], null ], "storage_power_of_charge_from_grid": [ 8800, "W" ], "storage_maximum_power_of_charge_from_grid": [ 8800, "W" ], "storage_time_of_use_charging_and_discharging_periods": [

Upload your relevant debug logs

2023-01-30 17:06:42.988 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xcc 0x0 0x0 0x0 0x6b 0x1 0x3 0x68 0x0 0x0 0x0 0x0 0x10 0x28 0x10 0x56 0x10 0x3c 0x9 0x54 0x9 0x5c 0x9 0x72 0x0 0x0 0x1 0x58 0x0 0x0 0x1 0x54 0x0 0x0 0x1 0x66 0x0 0x0 0xe 0xa4 0x0 0x0 0x0 0xb2 0xff 0xff 0xff 0xff 0x3 0xe8 0x13 0x8a 0x27 0x10 0x1 0x96 0xb 0xb8 0x2 0x0 0x0 0x0 0x63 0xd7 0x86 0xc8 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xb4 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x45 0xbd 0x0 0x0 0x9c 0x21 0x0 0x0 0x9a 0xfe 0x63 0xd7 0xf9 0x19 0x0 0x0 0x0 0x2 0x0 0x0 0x1 0x59
2023-01-30 17:06:42.988 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xcc 0x0 0x0 0x0 0x6b 0x1 0x3 0x68 0x0 0x0 0x0 0x0 0x10 0x28 0x10 0x56 0x10 0x3c 0x9 0x54 0x9 0x5c 0x9 0x72 0x0 0x0 0x1 0x58 0x0 0x0 0x1 0x54 0x0 0x0 0x1 0x66 0x0 0x0 0xe 0xa4 0x0 0x0 0x0 0xb2 0xff 0xff 0xff 0xff 0x3 0xe8 0x13 0x8a 0x27 0x10 0x1 0x96 0xb 0xb8 0x2 0x0 0x0 0x0 0x63 0xd7 0x86 0xc8 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xb4 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x45 0xbd 0x0 0x0 0x9c 0x21 0x0 0x0 0x9a 0xfe 0x63 0xd7 0xf9 0x19 0x0 0x0 0x0 0x2 0x0 0x0 0x1 0x59
2023-01-30 17:06:42.988 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:42.989 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 204
2023-01-30 17:06:43.040 DEBUG (MainThread) [pymodbus.payload] [0, 0, 4136, 4182, 4156, 2388, 2396, 2418, 0, 344, 0, 340, 0, 358, 0, 3748, 0, 178, 65535, 65535, 1000, 5002, 10000, 406, 3000, 512, 0, 25559, 34504, 65535, 65535, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 17853, 0, 39969, 0, 39678, 25559, 63769, 0, 2, 0, 345]
2023-01-30 17:06:43.040 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:06:43.040 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01X']
2023-01-30 17:06:43.040 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01T']
2023-01-30 17:06:43.041 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01f']
2023-01-30 17:06:43.041 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x0e\xa4']
2023-01-30 17:06:43.041 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\xb2']
2023-01-30 17:06:43.041 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xff']
2023-01-30 17:06:43.041 DEBUG (MainThread) [pymodbus.payload] [b'c\xd7', b'\x86\xc8']
2023-01-30 17:06:43.042 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xff']
2023-01-30 17:06:43.042 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x9c!']
2023-01-30 17:06:43.042 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01Y']
2023-01-30 17:06:43.043 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 32000
2023-01-30 17:06:43.043 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xcd 0x0 0x0 0x0 0x6 0x1 0x3 0x7d 0x0 0x0 0x14
2023-01-30 17:06:43.043 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 205
2023-01-30 17:06:44.538 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xcd 0x0 0x0 0x0 0x2b 0x1 0x3 0x28 0x0 0x6 0x0 0x0 0x0 0x7 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xdb 0x12 0x8 0xec 0x0 0x0 0x5 0x5a 0x0 0x0
2023-01-30 17:06:44.538 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xcd 0x0 0x0 0x0 0x2b 0x1 0x3 0x28 0x0 0x6 0x0 0x0 0x0 0x7 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xdb 0x12 0x8 0xec 0x0 0x0 0x5 0x5a 0x0 0x0
2023-01-30 17:06:44.538 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:44.539 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 205
2023-01-30 17:06:44.590 DEBUG (MainThread) [pymodbus.payload] [6, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56082, 2284, 0, 1370, 0]
2023-01-30 17:06:44.591 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:06:44.591 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 37101
2023-01-30 17:06:44.592 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xce 0x0 0x0 0x0 0x6 0x1 0x3 0x90 0xed 0x0 0x25
2023-01-30 17:06:44.597 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 206
2023-01-30 17:06:45.091 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xce 0x0 0x0 0x0 0x4d 0x1 0x3 0x4a 0x0 0x0 0x9 0x65 0x0 0x0 0x9 0x66 0x0 0x0 0x9 0x6d 0x0 0x0 0x0 0x30 0xff 0xff 0xff 0xb9 0x0 0x0 0x0 0x3d 0xff 0xff 0xff 0xfd 0x0 0x0 0x1 0x1d 0xff 0xff 0x13 0x8a 0x0 0x0 0x14 0xea 0x0 0x0 0xf1 0x5f 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x10 0x47 0x0 0x0 0x10 0x4f 0x0 0x0 0x10 0x4c 0x0 0x0 0x0 0x8 0xff 0xff 0xff 0xcf 0x0 0x0 0x0 0x25
2023-01-30 17:06:45.091 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xce 0x0 0x0 0x0 0x4d 0x1 0x3 0x4a 0x0 0x0 0x9 0x65 0x0 0x0 0x9 0x66 0x0 0x0 0x9 0x6d 0x0 0x0 0x0 0x30 0xff 0xff 0xff 0xb9 0x0 0x0 0x0 0x3d 0xff 0xff 0xff 0xfd 0x0 0x0 0x1 0x1d 0xff 0xff 0x13 0x8a 0x0 0x0 0x14 0xea 0x0 0x0 0xf1 0x5f 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x10 0x47 0x0 0x0 0x10 0x4f 0x0 0x0 0x10 0x4c 0x0 0x0 0x0 0x8 0xff 0xff 0xff 0xcf 0x0 0x0 0x0 0x25
2023-01-30 17:06:45.091 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:45.091 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 206
2023-01-30 17:06:45.144 DEBUG (MainThread) [pymodbus.payload] [0, 2405, 0, 2406, 0, 2413, 0, 48, 65535, 65465, 0, 61, 65535, 65533, 0, 285, 65535, 5002, 0, 5354, 0, 61791, 0, 0, 1, 0, 4167, 0, 4175, 0, 4172, 0, 8, 65535, 65487, 0, 37]
2023-01-30 17:06:45.145 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\te']
2023-01-30 17:06:45.145 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\tf']
2023-01-30 17:06:45.145 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\tm']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x000']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xb9']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00=']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xfd']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01\x1d']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x14\xea']
2023-01-30 17:06:45.146 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\xf1_']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10G']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10O']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10L']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x08']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xcf']
2023-01-30 17:06:45.147 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00%']
2023-01-30 17:06:45.148 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 37760
2023-01-30 17:06:45.148 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xcf 0x0 0x0 0x0 0x6 0x1 0x3 0x93 0x80 0x0 0x1c
2023-01-30 17:06:45.150 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 207
2023-01-30 17:06:45.807 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xcf 0x0 0x0 0x0 0x3b 0x1 0x3 0x38 0x2 0xb2 0x0 0x0 0x0 0x2 0x1d 0xf5 0xff 0xfd 0xff 0xff 0xff 0x4e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x6e 0xa 0x0 0x0 0x69 0x88 0x0 0x0 0x2 0x56 0x0 0x0 0x1 0x62
2023-01-30 17:06:45.807 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xcf 0x0 0x0 0x0 0x3b 0x1 0x3 0x38 0x2 0xb2 0x0 0x0 0x0 0x2 0x1d 0xf5 0xff 0xfd 0xff 0xff 0xff 0x4e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x6e 0xa 0x0 0x0 0x69 0x88 0x0 0x0 0x2 0x56 0x0 0x0 0x1 0x62
2023-01-30 17:06:45.808 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:45.808 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 207
2023-01-30 17:06:45.860 DEBUG (MainThread) [pymodbus.payload] [690, 0, 2, 7669, 65533, 65535, 65358, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28170, 0, 27016, 0, 598, 0, 354]
2023-01-30 17:06:45.860 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xffN']
2023-01-30 17:06:45.861 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'n\n']
2023-01-30 17:06:45.861 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'i\x88']
2023-01-30 17:06:45.861 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x02V']
2023-01-30 17:06:45.861 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01b']
2023-01-30 17:06:53.023 DEBUG (MainThread) [pymodbus.payload] [0]
2023-01-30 17:06:53.024 DEBUG (MainThread) [pymodbus.payload] [0]
2023-01-30 17:06:53.024 DEBUG (MainThread) [huawei_solar.huawei_solar] Writing to 47100: [0]
2023-01-30 17:06:53.024 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd0 0x0 0x0 0x0 0x6 0x1 0x6 0xb7 0xfc 0x0 0x0
2023-01-30 17:06:53.026 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 208
2023-01-30 17:06:54.072 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd0 0x0 0x0 0x0 0x6 0x1 0x6 0xb7 0xfc 0x0 0x0
2023-01-30 17:06:54.073 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd0 0x0 0x0 0x0 0x6 0x1 0x6 0xb7 0xfc 0x0 0x0
2023-01-30 17:06:54.073 DEBUG (MainThread) [pymodbus.factory] Factory Response[WriteSingleRegisterResponse': 6]
2023-01-30 17:06:54.073 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 208
2023-01-30 17:06:54.075 ERROR (MainThread) [homeassistant.components.script.grid_charge_off] Grid Charge Off: Error executing script. Unexpected error for call_service at pos 1: 'WriteSingleRegisterResponse' object has no attribute 'count'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/huawei_solar/services.py", line 297, in stop_forcible_charge
    await bridge.set(
  File "/usr/local/lib/python3.10/site-packages/huawei_solar/bridge.py", line 331, in set
    return await self.client.set(name, value, slave=self.slave_id)
  File "/usr/local/lib/python3.10/site-packages/huawei_solar/huawei_solar.py", line 447, in set
    result = await _do_set()
  File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/huawei_solar/huawei_solar.py", line 444, in _do_set
    return response.address == reg.register and response.count == reg.length
AttributeError: 'WriteSingleRegisterResponse' object has no attribute 'count'
2023-01-30 17:06:54.091 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547892024160] 'WriteSingleRegisterResponse' object has no attribute 'count'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 473, in _service_handler
    await self.async_turn_on(variables=service.data, context=service.context)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 432, in async_turn_on
    await coro
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 462, in _async_run
    return await self.script.async_run(script_vars, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1524, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 409, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 453, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 476, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/huawei_solar/services.py", line 297, in stop_forcible_charge
    await bridge.set(
  File "/usr/local/lib/python3.10/site-packages/huawei_solar/bridge.py", line 331, in set
    return await self.client.set(name, value, slave=self.slave_id)
  File "/usr/local/lib/python3.10/site-packages/huawei_solar/huawei_solar.py", line 447, in set
    result = await _do_set()
  File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/huawei_solar/huawei_solar.py", line 444, in _do_set
    return response.address == reg.register and response.count == reg.length
AttributeError: 'WriteSingleRegisterResponse' object has no attribute 'count'
2023-01-30 17:06:55.916 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 32064
2023-01-30 17:06:55.916 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd1 0x0 0x0 0x0 0x6 0x1 0x3 0x7d 0x40 0x0 0x34
2023-01-30 17:06:55.917 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 209
2023-01-30 17:06:56.428 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd1 0x0 0x0 0x0 0x6b 0x1 0x3 0x68 0x0 0x0 0x0 0x0 0x10 0x25 0x10 0x53 0x10 0x3a 0x9 0x52 0x9 0x5a 0x9 0x71 0x0 0x0 0x1 0x57 0x0 0x0 0x1 0x53 0x0 0x0 0x1 0x64 0x0 0x0 0xe 0xa4 0x0 0x0 0x0 0xb0 0xff 0xff 0xff 0xff 0x3 0xe8 0x13 0x8a 0x27 0x10 0x1 0x95 0xb 0xb8 0x2 0x0 0x0 0x0 0x63 0xd7 0x86 0xc8 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xb3 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x45 0xbd 0x0 0x0 0x9c 0x21 0x0 0x0 0x9a 0xfe 0x63 0xd7 0xf9 0x29 0x0 0x0 0x0 0x2 0x0 0x0 0x1 0x59
2023-01-30 17:06:56.428 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd1 0x0 0x0 0x0 0x6b 0x1 0x3 0x68 0x0 0x0 0x0 0x0 0x10 0x25 0x10 0x53 0x10 0x3a 0x9 0x52 0x9 0x5a 0x9 0x71 0x0 0x0 0x1 0x57 0x0 0x0 0x1 0x53 0x0 0x0 0x1 0x64 0x0 0x0 0xe 0xa4 0x0 0x0 0x0 0xb0 0xff 0xff 0xff 0xff 0x3 0xe8 0x13 0x8a 0x27 0x10 0x1 0x95 0xb 0xb8 0x2 0x0 0x0 0x0 0x63 0xd7 0x86 0xc8 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xb3 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x45 0xbd 0x0 0x0 0x9c 0x21 0x0 0x0 0x9a 0xfe 0x63 0xd7 0xf9 0x29 0x0 0x0 0x0 0x2 0x0 0x0 0x1 0x59
2023-01-30 17:06:56.428 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:56.429 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 209
2023-01-30 17:06:56.480 DEBUG (MainThread) [pymodbus.payload] [0, 0, 4133, 4179, 4154, 2386, 2394, 2417, 0, 343, 0, 339, 0, 356, 0, 3748, 0, 176, 65535, 65535, 1000, 5002, 10000, 405, 3000, 512, 0, 25559, 34504, 65535, 65535, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 17853, 0, 39969, 0, 39678, 25559, 63785, 0, 2, 0, 345]
2023-01-30 17:06:56.480 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:06:56.480 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01W']
2023-01-30 17:06:56.480 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01S']
2023-01-30 17:06:56.480 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01d']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x0e\xa4']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\xb0']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xff']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'c\xd7', b'\x86\xc8']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xff']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x9c!']
2023-01-30 17:06:56.481 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01Y']
2023-01-30 17:06:56.482 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 32000
2023-01-30 17:06:56.482 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd2 0x0 0x0 0x0 0x6 0x1 0x3 0x7d 0x0 0x0 0x14
2023-01-30 17:06:56.484 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 210
2023-01-30 17:06:57.496 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd2 0x0 0x0 0x0 0x2b 0x1 0x3 0x28 0x0 0x6 0x0 0x0 0x0 0x7 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xdb 0x12 0x8 0xdf 0x0 0x0 0x5 0x5a 0x0 0x0
2023-01-30 17:06:57.497 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd2 0x0 0x0 0x0 0x2b 0x1 0x3 0x28 0x0 0x6 0x0 0x0 0x0 0x7 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xdb 0x12 0x8 0xdf 0x0 0x0 0x5 0x5a 0x0 0x0
2023-01-30 17:06:57.497 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:57.497 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 210
2023-01-30 17:06:57.548 DEBUG (MainThread) [pymodbus.payload] [6, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56082, 2271, 0, 1370, 0]
2023-01-30 17:06:57.549 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:06:57.549 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 37101
2023-01-30 17:06:57.550 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd3 0x0 0x0 0x0 0x6 0x1 0x3 0x90 0xed 0x0 0x25
2023-01-30 17:06:57.551 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 211
2023-01-30 17:06:58.308 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd3 0x0 0x0 0x0 0x4d 0x1 0x3 0x4a 0x0 0x0 0x9 0x66 0x0 0x0 0x9 0x65 0x0 0x0 0x9 0x6d 0x0 0x0 0x0 0x2f 0xff 0xff 0xff 0xba 0x0 0x0 0x0 0x3d 0x0 0x0 0x0 0x5 0x0 0x0 0x1 0xb 0x0 0x0 0x13 0x88 0x0 0x0 0x14 0xea 0x0 0x0 0xf1 0x5f 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x10 0x46 0x0 0x0 0x10 0x4c 0x0 0x0 0x10 0x4d 0x0 0x0 0x0 0xe 0xff 0xff 0xff 0xd2 0x0 0x0 0x0 0x26
2023-01-30 17:06:58.309 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd3 0x0 0x0 0x0 0x4d 0x1 0x3 0x4a 0x0 0x0 0x9 0x66 0x0 0x0 0x9 0x65 0x0 0x0 0x9 0x6d 0x0 0x0 0x0 0x2f 0xff 0xff 0xff 0xba 0x0 0x0 0x0 0x3d 0x0 0x0 0x0 0x5 0x0 0x0 0x1 0xb 0x0 0x0 0x13 0x88 0x0 0x0 0x14 0xea 0x0 0x0 0xf1 0x5f 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x10 0x46 0x0 0x0 0x10 0x4c 0x0 0x0 0x10 0x4d 0x0 0x0 0x0 0xe 0xff 0xff 0xff 0xd2 0x0 0x0 0x0 0x26
2023-01-30 17:06:58.309 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:58.309 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 211
2023-01-30 17:06:58.364 DEBUG (MainThread) [pymodbus.payload] [0, 2406, 0, 2405, 0, 2413, 0, 47, 65535, 65466, 0, 61, 0, 5, 0, 267, 0, 5000, 0, 5354, 0, 61791, 0, 0, 1, 0, 4166, 0, 4172, 0, 4173, 0, 14, 65535, 65490, 0, 38]
2023-01-30 17:06:58.364 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\tf']
2023-01-30 17:06:58.364 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\te']
2023-01-30 17:06:58.364 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\tm']
2023-01-30 17:06:58.364 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00/']
2023-01-30 17:06:58.364 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xba']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00=']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x05']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01\x0b']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x14\xea']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\xf1_']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10F']
2023-01-30 17:06:58.365 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10L']
2023-01-30 17:06:58.366 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10M']
2023-01-30 17:06:58.366 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x0e']
2023-01-30 17:06:58.366 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xd2']
2023-01-30 17:06:58.366 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00&']
2023-01-30 17:06:58.367 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 37760
2023-01-30 17:06:58.367 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd4 0x0 0x0 0x0 0x6 0x1 0x3 0x93 0x80 0x0 0x1c
2023-01-30 17:06:58.380 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 212
2023-01-30 17:06:59.514 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd4 0x0 0x0 0x0 0x3b 0x1 0x3 0x38 0x2 0xb2 0x0 0x0 0x0 0x2 0x1d 0xf4 0xff 0xfd 0xff 0xff 0xff 0x4e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x6e 0xa 0x0 0x0 0x69 0x88 0x0 0x0 0x2 0x56 0x0 0x0 0x1 0x62
2023-01-30 17:06:59.515 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd4 0x0 0x0 0x0 0x3b 0x1 0x3 0x38 0x2 0xb2 0x0 0x0 0x0 0x2 0x1d 0xf4 0xff 0xfd 0xff 0xff 0xff 0x4e 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x6e 0xa 0x0 0x0 0x69 0x88 0x0 0x0 0x2 0x56 0x0 0x0 0x1 0x62
2023-01-30 17:06:59.515 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:06:59.515 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 212
2023-01-30 17:06:59.567 DEBUG (MainThread) [pymodbus.payload] [690, 0, 2, 7668, 65533, 65535, 65358, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28170, 0, 27016, 0, 598, 0, 354]
2023-01-30 17:06:59.568 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xffN']
2023-01-30 17:06:59.568 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'n\n']
2023-01-30 17:06:59.568 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'i\x88']
2023-01-30 17:06:59.569 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x02V']
2023-01-30 17:06:59.569 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01b']
2023-01-30 17:07:09.624 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 32064
2023-01-30 17:07:09.624 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd5 0x0 0x0 0x0 0x6 0x1 0x3 0x7d 0x40 0x0 0x34
2023-01-30 17:07:09.625 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 213
2023-01-30 17:07:10.402 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd5 0x0 0x0 0x0 0x6b 0x1 0x3 0x68 0x0 0x0 0x0 0x0 0x10 0x2a 0x10 0x57 0x10 0x3f 0x9 0x56 0x9 0x5d 0x9 0x73 0x0 0x0 0x1 0x4c 0x0 0x0 0x1 0x48 0x0 0x0 0x1 0x5a 0x0 0x0 0xe 0xa4 0x0 0x0 0x0 0xae 0x0 0x0 0x0 0x1 0x3 0xe8 0x13 0x8a 0x27 0x10 0x1 0x95 0xb 0xb8 0x2 0x0 0x0 0x0 0x63 0xd7 0x86 0xc8 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xaf 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x45 0xbd 0x0 0x0 0x9c 0x21 0x0 0x0 0x9a 0xfe 0x63 0xd7 0xf9 0x39 0x0 0x0 0x0 0x2 0x0 0x0 0x1 0x59
2023-01-30 17:07:10.403 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd5 0x0 0x0 0x0 0x6b 0x1 0x3 0x68 0x0 0x0 0x0 0x0 0x10 0x2a 0x10 0x57 0x10 0x3f 0x9 0x56 0x9 0x5d 0x9 0x73 0x0 0x0 0x1 0x4c 0x0 0x0 0x1 0x48 0x0 0x0 0x1 0x5a 0x0 0x0 0xe 0xa4 0x0 0x0 0x0 0xae 0x0 0x0 0x0 0x1 0x3 0xe8 0x13 0x8a 0x27 0x10 0x1 0x95 0xb 0xb8 0x2 0x0 0x0 0x0 0x63 0xd7 0x86 0xc8 0xff 0xff 0xff 0xff 0x0 0x0 0x0 0xaf 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x45 0xbd 0x0 0x0 0x9c 0x21 0x0 0x0 0x9a 0xfe 0x63 0xd7 0xf9 0x39 0x0 0x0 0x0 0x2 0x0 0x0 0x1 0x59
2023-01-30 17:07:10.403 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:07:10.404 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 213
2023-01-30 17:07:10.456 DEBUG (MainThread) [pymodbus.payload] [0, 0, 4138, 4183, 4159, 2390, 2397, 2419, 0, 332, 0, 328, 0, 346, 0, 3748, 0, 174, 0, 1, 1000, 5002, 10000, 405, 3000, 512, 0, 25559, 34504, 65535, 65535, 0, 175, 0, 0, 0, 0, 0, 0, 0, 0, 17853, 0, 39969, 0, 39678, 25559, 63801, 0, 2, 0, 345]
2023-01-30 17:07:10.457 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:07:10.457 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01L']
2023-01-30 17:07:10.457 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01H']
2023-01-30 17:07:10.457 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01Z']
2023-01-30 17:07:10.457 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x0e\xa4']
2023-01-30 17:07:10.458 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\xae']
2023-01-30 17:07:10.458 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x01']
2023-01-30 17:07:10.458 DEBUG (MainThread) [pymodbus.payload] [b'c\xd7', b'\x86\xc8']
2023-01-30 17:07:10.458 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xff']
2023-01-30 17:07:10.458 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x9c!']
2023-01-30 17:07:10.458 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01Y']
2023-01-30 17:07:10.459 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 32000
2023-01-30 17:07:10.459 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd6 0x0 0x0 0x0 0x6 0x1 0x3 0x7d 0x0 0x0 0x14
2023-01-30 17:07:10.460 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 214
2023-01-30 17:07:11.489 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd6 0x0 0x0 0x0 0x2b 0x1 0x3 0x28 0x0 0x6 0x0 0x0 0x0 0x7 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xdb 0x12 0x8 0xc4 0x0 0x0 0x5 0x5a 0x0 0x0
2023-01-30 17:07:11.489 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd6 0x0 0x0 0x0 0x2b 0x1 0x3 0x28 0x0 0x6 0x0 0x0 0x0 0x7 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xdb 0x12 0x8 0xc4 0x0 0x0 0x5 0x5a 0x0 0x0
2023-01-30 17:07:11.489 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:07:11.490 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 214
2023-01-30 17:07:11.545 DEBUG (MainThread) [pymodbus.payload] [6, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56082, 2244, 0, 1370, 0]
2023-01-30 17:07:11.546 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:07:11.547 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 37101
2023-01-30 17:07:11.547 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd7 0x0 0x0 0x0 0x6 0x1 0x3 0x90 0xed 0x0 0x25
2023-01-30 17:07:11.548 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 215
2023-01-30 17:07:12.072 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd7 0x0 0x0 0x0 0x4d 0x1 0x3 0x4a 0x0 0x0 0x9 0x68 0x0 0x0 0x9 0x66 0x0 0x0 0x9 0x70 0x0 0x0 0x0 0x31 0xff 0xff 0xff 0xb8 0x0 0x0 0x0 0x3e 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0xf 0xff 0xfd 0x13 0x88 0x0 0x0 0x14 0xea 0x0 0x0 0xf1 0x5f 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x10 0x48 0x0 0x0 0x10 0x51 0x0 0x0 0x10 0x51 0x0 0x0 0x0 0xb 0xff 0xff 0xff 0xd1 0x0 0x0 0x0 0x24
2023-01-30 17:07:12.072 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd7 0x0 0x0 0x0 0x4d 0x1 0x3 0x4a 0x0 0x0 0x9 0x68 0x0 0x0 0x9 0x66 0x0 0x0 0x9 0x70 0x0 0x0 0x0 0x31 0xff 0xff 0xff 0xb8 0x0 0x0 0x0 0x3e 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0xf 0xff 0xfd 0x13 0x88 0x0 0x0 0x14 0xea 0x0 0x0 0xf1 0x5f 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x10 0x48 0x0 0x0 0x10 0x51 0x0 0x0 0x10 0x51 0x0 0x0 0x0 0xb 0xff 0xff 0xff 0xd1 0x0 0x0 0x0 0x24
2023-01-30 17:07:12.072 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:07:12.073 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 215
2023-01-30 17:07:12.129 DEBUG (MainThread) [pymodbus.payload] [0, 2408, 0, 2406, 0, 2416, 0, 49, 65535, 65464, 0, 62, 0, 0, 0, 271, 65533, 5000, 0, 5354, 0, 61791, 0, 0, 1, 0, 4168, 0, 4177, 0, 4177, 0, 11, 65535, 65489, 0, 36]
2023-01-30 17:07:12.129 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\th']
2023-01-30 17:07:12.130 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\tf']
2023-01-30 17:07:12.130 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\tp']
2023-01-30 17:07:12.130 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x001']
2023-01-30 17:07:12.130 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xb8']
2023-01-30 17:07:12.131 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00>']
2023-01-30 17:07:12.131 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:07:12.131 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x01\x0f']
2023-01-30 17:07:12.131 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x14\xea']
2023-01-30 17:07:12.132 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\xf1_']
2023-01-30 17:07:12.132 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x00']
2023-01-30 17:07:12.132 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10H']
2023-01-30 17:07:12.132 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10Q']
2023-01-30 17:07:12.133 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x10Q']
2023-01-30 17:07:12.133 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00\x0b']
2023-01-30 17:07:12.133 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xff\xd1']
2023-01-30 17:07:12.133 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x00$']
2023-01-30 17:07:12.134 DEBUG (MainThread) [huawei_solar.huawei_solar] Reading register 37760
2023-01-30 17:07:12.135 DEBUG (MainThread) [pymodbus.client.base] send: 0x0 0xd8 0x0 0x0 0x0 0x6 0x1 0x3 0x93 0x80 0x0 0x1c
2023-01-30 17:07:12.136 DEBUG (MainThread) [pymodbus.transaction] Adding transaction 216
2023-01-30 17:07:12.912 DEBUG (MainThread) [pymodbus.client.base] recv: 0x0 0xd8 0x0 0x0 0x0 0x3b 0x1 0x3 0x38 0x2 0xb2 0x0 0x0 0x0 0x2 0x1d 0xf3 0xff 0xfd 0xff 0xff 0xff 0x53 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x6e 0xa 0x0 0x0 0x69 0x88 0x0 0x0 0x2 0x56 0x0 0x0 0x1 0x62
2023-01-30 17:07:12.913 DEBUG (MainThread) [pymodbus.framer.socket_framer] Processing: 0x0 0xd8 0x0 0x0 0x0 0x3b 0x1 0x3 0x38 0x2 0xb2 0x0 0x0 0x0 0x2 0x1d 0xf3 0xff 0xfd 0xff 0xff 0xff 0x53 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x6e 0xa 0x0 0x0 0x69 0x88 0x0 0x0 0x2 0x56 0x0 0x0 0x1 0x62
2023-01-30 17:07:12.913 DEBUG (MainThread) [pymodbus.factory] Factory Response[ReadHoldingRegistersResponse': 3]
2023-01-30 17:07:12.914 DEBUG (MainThread) [pymodbus.transaction] Getting transaction 216
2023-01-30 17:07:12.965 DEBUG (MainThread) [pymodbus.payload] [690, 0, 2, 7667, 65533, 65535, 65363, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28170, 0, 27016, 0, 598, 0, 354]
2023-01-30 17:07:12.966 DEBUG (MainThread) [pymodbus.payload] [b'\xff\xff', b'\xffS']
2023-01-30 17:07:12.966 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'n\n']
2023-01-30 17:07:12.966 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'i\x88']
2023-01-30 17:07:12.967 DEBUG (MainThread) [pymodbus.payload] [b'\x00\x00', b'\x02V']
2023-01-30 17:07:12.967 DEBUG (MainThread) [pymodbus.payload] [

Please confirm the following:

wlcrs commented 1 year ago

Hi, I greatly appreciate that you went through the effort of properly filling out the bugreport. Fixed in https://github.com/wlcrs/huawei-solar-lib/commit/dc369ca6865b757e3be0a55e85e3338ae591f10e