remco-k / domoticz-goodwe-modbusudp-plugin

A Domoticz plugin that connects to GoodWe inverters over LAN or WLAN via UDP that supports Modbus.
4 stars 1 forks source link

ET inverter: success but some parameters missing #3

Closed JanCeuleers closed 1 year ago

JanCeuleers commented 1 year ago

A Goodwe GW10K-ET was installed here yesterday. I have added your MODBUS-over-UDP plugin to Domoticz and would like to report partial success. Only partial in that some parameters are missing.

What is reported is as follows:

I'm not totally sure which parameters are missing (in part because my installer hasn't provided me with SEMS Portal login credentials yet), but I would expect the following parameters also to be available somehow:

In respect of the last of the above points: maybe I'm incorrect in expecting those parameters to be reported or even exist, because it depends on the inverter's architecture. That is: if there is a relay inside the inverter that connects the backup output to the grid input while on-grid then of course these parameters are the same and they would not be reportable separately.

Please let me know how I can help to improve your plugin.

JanCeuleers commented 1 year ago

With Mode5 set to Extra, this is what is logged:

2022-12-16 19:35:41.761 Goodwe: (Goodwe) ups_load: Ups Load = 10 % 2022-12-16 19:35:41.761 Goodwe: (Goodwe) temperature_air: Inverter Temperature (Air) = 23.4 C 2022-12-16 19:35:41.761 Goodwe: (Goodwe) temperature_module: Inverter Temperature (Module) = 0.0 C 2022-12-16 19:35:41.761 Goodwe: (Goodwe) temperature: Inverter Temperature (Radiator) = 21.1 C 2022-12-16 19:35:41.761 Goodwe: (Goodwe) function_bit: Function Bit = 16416 2022-12-16 19:35:41.761 Goodwe: (Goodwe) bus_voltage: Bus Voltage = 654.1 V 2022-12-16 19:35:41.761 Goodwe: (Goodwe) nbus_voltage: NBus Voltage = 322.5 V 2022-12-16 19:35:41.761 Goodwe: (Goodwe) vbattery1: Battery Voltage = 393.6 V 2022-12-16 19:35:41.761 Goodwe: (Goodwe) ibattery1: Battery Current = 0.0 A 2022-12-16 19:35:41.761 Goodwe: (Goodwe) pbattery1: Battery Power = 0 W 2022-12-16 19:35:41.761 Goodwe: (Goodwe) battery_mode: Battery Mode code = 1 2022-12-16 19:35:41.761 Goodwe: (Goodwe) battery_mode_label: Battery Mode = Standby 2022-12-16 19:35:41.761 Goodwe: (Goodwe) warning_code: Warning code = 0 2022-12-16 19:35:41.761 Goodwe: (Goodwe) safety_country: Safety Country code = 6 2022-12-16 19:35:41.761 Goodwe: (Goodwe) safety_country_label: Safety Country = Belgium 2022-12-16 19:35:41.762 Goodwe: (Goodwe) work_mode: Work Mode code = 1 2022-12-16 19:35:41.762 Goodwe: (Goodwe) work_mode_label: Work Mode = Normal (On-Grid) 2022-12-16 19:35:41.762 Goodwe: (Goodwe) operation_mode: Operation Mode code = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) error_codes: Error Codes = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) errors: Errors = 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_total: Total PV Generation = 10.6 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_day: Today's PV Generation = 2.6 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_total_exp: Total Energy (export) = 50.6 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) h_total: Hours Total = 101 h 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_day_exp: Today Energy (export) = 11.9 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_total_imp: Total Energy (import) = 34.9 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_day_imp: Today Energy (import) = 7.6 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_load_total: Total Load = 89.7 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_load_day: Today Load = 17.9 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_bat_charge_total: Total Battery Charge = 32.3 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_bat_charge_day: Today Battery Charge = 7.1 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_bat_discharge_total: Total Battery Discharge = 39.8 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) e_bat_discharge_day: Today Battery Discharge = 9.3 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) diagnose_result: Diag Status Code = 34079106 2022-12-16 19:35:41.762 Goodwe: (Goodwe) diagnose_result_label: Diag Status = Battery SOC low, BMS: Discharge current low, APP: Discharge current too low, Self-use off, PF value set 2022-12-16 19:35:41.762 Goodwe: (Goodwe) house_consumption: House Consumption = 843 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_bms: Battery BMS = 255 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_index: Battery Index = 257 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_status: Battery Status = 1 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_temperature: Battery Temperature = 24.0 C 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_charge_limit: Battery Charge Limit = 18 A 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_discharge_limit: Battery Discharge Limit = 18 A 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_error_l: Battery Error L = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_soc: Battery State of Charge = 30 % 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_soh: Battery State of Health = 100 % 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_modules: Battery Modules = 8 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_warning_l: Battery Warning L = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_protocol: Battery Protocol = 257 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_error_h: Battery Error H = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_error: Battery Error = 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_warning_h: Battery Warning H = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_warning: Battery Error = 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_sw_version: Battery Software Version = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_hw_version: Battery Hardware Version = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_max_cell_temp_id: Battery Max Cell Temperature ID = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_min_cell_temp_id: Battery Min Cell Temperature ID = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_max_cell_voltage_id: Battery Max Cell Voltage ID = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_min_cell_voltage_id: Battery Min Cell Voltage ID = 0 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_max_cell_temp: Battery Max Cell Temperature = 0.0 C 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_min_cell_temp: Battery Min Cell Temperature = 0.0 C 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_max_cell_voltage: Battery Max Cell Voltage = 0.0 V 2022-12-16 19:35:41.762 Goodwe: (Goodwe) battery_min_cell_voltage: Battery Min Cell Voltage = 0.0 V 2022-12-16 19:35:41.762 Goodwe: (Goodwe) commode: Commode = 1 2022-12-16 19:35:41.762 Goodwe: (Goodwe) rssi: RSSI = 100 2022-12-16 19:35:41.762 Goodwe: (Goodwe) manufacture_code: Manufacture Code = 10 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_test_status: Meter Test Status = 273 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_comm_status: Meter Communication Status = 1 2022-12-16 19:35:41.762 Goodwe: (Goodwe) active_power1: Active Power L1 = -133 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) active_power2: Active Power L2 = -463 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) active_power3: Active Power L3 = -246 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) active_power_total: Active Power Total = -843 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) reactive_power_total: Reactive Power Total = 412 var 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_power_factor1: Meter Power Factor L1 = -0.432 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_power_factor2: Meter Power Factor L2 = -0.84 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_power_factor3: Meter Power Factor L3 = -0.772 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_power_factor: Meter Power Factor = -0.713 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_freq: Meter Frequency = 50.01 Hz 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_e_total_exp: Meter Total Energy (export) = 0.654 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_e_total_imp: Meter Total Energy (import) = 75.359 kWh 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_active_power1: Meter Active Power L1 = -133 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_active_power2: Meter Active Power L2 = -463 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_active_power3: Meter Active Power L3 = -246 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_active_power_total: Meter Active Power Total = -843 W 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_reactive_power1: Meter Reactive Power L1 = 229 var 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_reactive_power2: Meter Reactive Power L2 = 122 var 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_reactive_power3: Meter Reactive Power L2 = 60 var 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_reactive_power_total: Meter Reactive Power Total = 412 var 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_apparent_power1: Meter Apparent Power L1 = -312 VA 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_apparent_power2: Meter Apparent Power L2 = -551 VA 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_apparent_power3: Meter Apparent Power L3 = -318 VA 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_apparent_power_total: Meter Apparent Power Total = -1181 VA 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_type: Meter Type = 255 2022-12-16 19:35:41.762 Goodwe: (Goodwe) meter_sw_version: Meter Software Version = 2 2022-12-16 19:35:41.773 Goodwe: (Goodwe) Updated 8 values out of 24

JanCeuleers commented 1 year ago

I'll see if I can propose a patch.

JanCeuleers commented 1 year ago

The next bunch of log entries, 5 seconds after the above set, contains more information.

2022-12-16 19:35:46.767 Goodwe: (Goodwe) backup_p3: Back-up L3 Power = 231 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) load_p1: Load L1 = 12 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) load_p2: Load L2 = 5 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) load_p3: Load L3 = 10 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) backup_ptotal: Back-up Load = 850 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) load_ptotal: Load = 27 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) ups_load: Ups Load = 10 % 2022-12-16 19:35:46.767 Goodwe: (Goodwe) temperature_air: Inverter Temperature (Air) = 23.4 C 2022-12-16 19:35:46.767 Goodwe: (Goodwe) temperature_module: Inverter Temperature (Module) = 0.0 C 2022-12-16 19:35:46.767 Goodwe: (Goodwe) temperature: Inverter Temperature (Radiator) = 21.1 C 2022-12-16 19:35:46.767 Goodwe: (Goodwe) function_bit: Function Bit = 16416 2022-12-16 19:35:46.767 Goodwe: (Goodwe) bus_voltage: Bus Voltage = 654.5 V 2022-12-16 19:35:46.767 Goodwe: (Goodwe) nbus_voltage: NBus Voltage = 323.2 V 2022-12-16 19:35:46.767 Goodwe: (Goodwe) vbattery1: Battery Voltage = 393.6 V 2022-12-16 19:35:46.767 Goodwe: (Goodwe) ibattery1: Battery Current = 0.0 A 2022-12-16 19:35:46.767 Goodwe: (Goodwe) pbattery1: Battery Power = 0 W 2022-12-16 19:35:46.767 Goodwe: (Goodwe) battery_mode: Battery Mode code = 1 2022-12-16 19:35:46.767 Goodwe: (Goodwe) battery_mode_label: Battery Mode = Standby 2022-12-16 19:35:46.767 Goodwe: (Goodwe) warning_code: Warning code = 0 2022-12-16 19:35:46.767 Goodwe: (Goodwe) safety_country: Safety Country code = 6 2022-12-16 19:35:46.768 Goodwe: (Goodwe) safety_country_label: Safety Country = Belgium 2022-12-16 19:35:46.768 Goodwe: (Goodwe) work_mode: Work Mode code = 1 2022-12-16 19:35:46.768 Goodwe: (Goodwe) work_mode_label: Work Mode = Normal (On-Grid) 2022-12-16 19:35:46.768 Goodwe: (Goodwe) operation_mode: Operation Mode code = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) error_codes: Error Codes = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) errors: Errors = 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_total: Total PV Generation = 10.6 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_day: Today's PV Generation = 2.6 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_total_exp: Total Energy (export) = 50.6 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) h_total: Hours Total = 101 h 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_day_exp: Today Energy (export) = 11.9 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_total_imp: Total Energy (import) = 34.9 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_day_imp: Today Energy (import) = 7.6 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_load_total: Total Load = 89.7 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_load_day: Today Load = 17.9 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_bat_charge_total: Total Battery Charge = 32.3 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_bat_charge_day: Today Battery Charge = 7.1 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_bat_discharge_total: Total Battery Discharge = 39.8 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) e_bat_discharge_day: Today Battery Discharge = 9.3 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) diagnose_result: Diag Status Code = 34079106 2022-12-16 19:35:46.768 Goodwe: (Goodwe) diagnose_result_label: Diag Status = Battery SOC low, BMS: Discharge current low, APP: Discharge current too low, Self-use off, PF value set 2022-12-16 19:35:46.768 Goodwe: (Goodwe) house_consumption: House Consumption = 844 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_bms: Battery BMS = 255 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_index: Battery Index = 257 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_status: Battery Status = 1 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_temperature: Battery Temperature = 24.0 C 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_charge_limit: Battery Charge Limit = 18 A 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_discharge_limit: Battery Discharge Limit = 18 A 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_error_l: Battery Error L = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_soc: Battery State of Charge = 30 % 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_soh: Battery State of Health = 100 % 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_modules: Battery Modules = 8 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_warning_l: Battery Warning L = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_protocol: Battery Protocol = 257 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_error_h: Battery Error H = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_error: Battery Error = 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_warning_h: Battery Warning H = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_warning: Battery Error = 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_sw_version: Battery Software Version = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_hw_version: Battery Hardware Version = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_max_cell_temp_id: Battery Max Cell Temperature ID = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_min_cell_temp_id: Battery Min Cell Temperature ID = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_max_cell_voltage_id: Battery Max Cell Voltage ID = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_min_cell_voltage_id: Battery Min Cell Voltage ID = 0 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_max_cell_temp: Battery Max Cell Temperature = 0.0 C 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_min_cell_temp: Battery Min Cell Temperature = 0.0 C 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_max_cell_voltage: Battery Max Cell Voltage = 0.0 V 2022-12-16 19:35:46.768 Goodwe: (Goodwe) battery_min_cell_voltage: Battery Min Cell Voltage = 0.0 V 2022-12-16 19:35:46.768 Goodwe: (Goodwe) commode: Commode = 1 2022-12-16 19:35:46.768 Goodwe: (Goodwe) rssi: RSSI = 100 2022-12-16 19:35:46.768 Goodwe: (Goodwe) manufacture_code: Manufacture Code = 10 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_test_status: Meter Test Status = 273 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_comm_status: Meter Communication Status = 1 2022-12-16 19:35:46.768 Goodwe: (Goodwe) active_power1: Active Power L1 = -135 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) active_power2: Active Power L2 = -475 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) active_power3: Active Power L3 = -243 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) active_power_total: Active Power Total = -854 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) reactive_power_total: Reactive Power Total = 417 var 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_power_factor1: Meter Power Factor L1 = -0.433 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_power_factor2: Meter Power Factor L2 = -0.847 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_power_factor3: Meter Power Factor L3 = -0.779 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_power_factor: Meter Power Factor = -0.719 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_freq: Meter Frequency = 50.01 Hz 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_e_total_exp: Meter Total Energy (export) = 0.654 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_e_total_imp: Meter Total Energy (import) = 75.359 kWh 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_active_power1: Meter Active Power L1 = -135 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_active_power2: Meter Active Power L2 = -475 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_active_power3: Meter Active Power L3 = -243 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_active_power_total: Meter Active Power Total = -854 W 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_reactive_power1: Meter Reactive Power L1 = 231 var 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_reactive_power2: Meter Reactive Power L2 = 124 var 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_reactive_power3: Meter Reactive Power L2 = 61 var 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_reactive_power_total: Meter Reactive Power Total = 417 var 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_apparent_power1: Meter Apparent Power L1 = -317 VA 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_apparent_power2: Meter Apparent Power L2 = -559 VA 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_apparent_power3: Meter Apparent Power L3 = -317 VA 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_apparent_power_total: Meter Apparent Power Total = -1193 VA 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_type: Meter Type = 255 2022-12-16 19:35:46.768 Goodwe: (Goodwe) meter_sw_version: Meter Software Version = 2 2022-12-16 19:35:46.778 Goodwe: (Goodwe) Updated 7 values out of 24

JanCeuleers commented 1 year ago

I am currently testing a patch, which essentially consists of adding the missing entries to the INVERTER_PARAMS list.

Problem: once that list exceeds a certain number of entries Domoticz ceases being able to load the plugin: it fails with a NameError without specifying a line number. So whereas I have created all of the entries that correspond with the data made available by the inverter, I have had to comment a lot of them out in order to remain below the limit (which appears to be around 64 entries). Any hints?

JanCeuleers commented 1 year ago

Update: I am running with a patch as described above, but am unable to understand why I can't enable more than 64 devices without the plugin failing to start with mysterious name errors. I haven't received much help on the Domoticz forum on that point.

kuerten69 commented 1 year ago

Hi I have the same problem with goodwe 8et. it shows only 24 data, without phase 1. In the domoticz logs I have all correct data. Is there any solution? Regards

JanCeuleers commented 1 year ago

I am happy to privately share my patch, but:

JanCeuleers commented 1 year ago

Actually it seems hard to communicate privately with other github users, so let me paste my patched version of the plugin here. plugin.py.zip

remco-k commented 1 year ago

@JanCeuleers I did have had a look to the code in december 2022, but couldn't see why you would miss things from the INVERTER_PARAMS list in Domoticz. So from there, there was nothing I could do.

But now you've sent your version I have something to work with. 2 questions:

  1. I assume you now see all the values you need correctly in Domoticz?
  2. I see that you've changed the singlephase or 3phase model detection code. Is this still needed, or is this a left over from earlier tests that is obsolete now and original code can be restored? I ask this because I need to know for when I create a update for this plugin I need to change something in the original detection code. Or not. Any change can break something else for someone else, so thats why I'm asking if this change is really needed.

Furthermore I am not aware of some limitation of a limit for the number of values per device, which seems to be clipping at 24 values (according to your log file). I'm a Domoticz newbie as well, so I might be wrong.

... after some searching the internet...:

I just read here https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin/issues/325 that older versions of Domoticz have a limitation of 255 devices in total. You would be going over that pretty quickly if you have that version or older. So please check if you don't have that limit in Domoticz. Otherwise: update it.

Next to the above I'm seeing something else that is quite strange and I can't make out why this happens. Your log states:

Updated 7 values out of 24

It states 24 directly after it logged way more than 24 values. The loop that logs all of those rows contains a simple counter:

device_count += 1

And its that counter that is logged using this piece of code:

Domoticz.Log("Updated {} values out of {}".format(updated, device_count))

(And I'm also missing all of the Domoticz.Debug("Update value = {}".format(sValue)) logs as well in your log file, for some reason), but lets ignore that for now to keep things as simple as possible.

I simply cannot explain why device_count hasn't got a number that is higher than 24. It should have. But it hasn't. Maybe you edited your log file before posting, maybe other things are going bad. Don't know. But any kind of insight of why these numbers don't add up would be helpful for me to try and find a generic solution for the both of you. (@JanCeuleers and @kuerten69)

@kuerten69 Can you please set Log level to Extra and post the log here as well? And can you also check if you have a Domoticz version that can handle enough devices (>255).

Depending on both your information I might be able to pinpoint the source of this issue, so please try to find out as much as you can.

Thx,

kuerten69 commented 1 year ago

2023-02-10 22:04:16.528 Goodwe: vgrid3: On-grid L3 Voltage = 229.8 V 2023-02-10 22:04:16.528 Goodwe: igrid3: On-grid L3 Current = 0.0 A 2023-02-10 22:04:16.528 Goodwe: fgrid3: On-grid L3 Frequency = 49.93 Hz 2023-02-10 22:04:16.528 Goodwe: pgrid3: On-grid L3 Power = -1 W 2023-02-10 22:04:16.528 Goodwe: grid_mode: Grid Mode code = 1 2023-02-10 22:04:16.528 Goodwe: grid_mode_label: Grid Mode = Connected to grid 2023-02-10 22:04:16.528 Goodwe: total_inverter_power: Total Power = -2 W 2023-02-10 22:04:16.528 Goodwe: active_power: Active Power = -752 W 2023-02-10 22:04:16.529 Goodwe: grid_in_out: On-grid Mode code = 2 2023-02-10 22:04:16.529 Goodwe: grid_in_out_label: On-grid Mode = Importing 2023-02-10 22:04:16.529 Goodwe: reactive_power: Reactive Power = 0 var 2023-02-10 22:04:16.529 Goodwe: apparent_power: Apparent Power = 0 VA 2023-02-10 22:04:16.529 Goodwe: backup_v1: Back-up L1 Voltage = 235.8 V 2023-02-10 22:04:16.529 Goodwe: backup_i1: Back-up L1 Current = 0.2 A 2023-02-10 22:04:16.529 Goodwe: backup_f1: Back-up L1 Frequency = 49.9 Hz 2023-02-10 22:04:16.529 Goodwe: load_mode1: Load Mode L1 = 1 2023-02-10 22:04:16.529 Goodwe: backup_p1: Back-up L1 Power = 0 W 2023-02-10 22:04:16.529 Goodwe: backup_v2: Back-up L2 Voltage = 231.2 V 2023-02-10 22:04:16.529 Goodwe: backup_i2: Back-up L2 Current = 0.1 A 2023-02-10 22:04:16.529 Goodwe: backup_f2: Back-up L2 Frequency = 49.89 Hz 2023-02-10 22:04:16.529 Goodwe: load_mode2: Load Mode L2 = 1 2023-02-10 22:04:16.529 Goodwe: backup_p2: Back-up L2 Power = 0 W 2023-02-10 22:04:16.530 Goodwe: backup_v3: Back-up L3 Voltage = 230.0 V 2023-02-10 22:04:16.530 Goodwe: backup_i3: Back-up L3 Current = 0.1 A 2023-02-10 22:04:16.530 Goodwe: backup_f3: Back-up L3 Frequency = 49.86 Hz 2023-02-10 22:04:16.530 Goodwe: load_mode3: Load Mode L3 = 1 2023-02-10 22:04:16.530 Goodwe: backup_p3: Back-up L3 Power = 0 W 2023-02-10 22:04:16.530 Goodwe: load_p1: Load L1 = 137 W 2023-02-10 22:04:16.530 Goodwe: load_p2: Load L2 = 554 W 2023-02-10 22:04:16.530 Goodwe: load_p3: Load L3 = 57 W 2023-02-10 22:04:16.530 Goodwe: backup_ptotal: Back-up Load = 0 W 2023-02-10 22:04:16.530 Goodwe: load_ptotal: Load = 750 W 2023-02-10 22:04:16.530 Goodwe: ups_load: Ups Load = 1 % 2023-02-10 22:04:16.530 Goodwe: temperature_air: Inverter Temperature (Air) = 21.0 C 2023-02-10 22:04:16.531 Goodwe: temperature_module: Inverter Temperature (Module) = 0.0 C 2023-02-10 22:04:16.531 Goodwe: temperature: Inverter Temperature (Radiator) = 19.5 C 2023-02-10 22:04:16.531 Goodwe: function_bit: Function Bit = 16416 2023-02-10 22:04:16.531 Goodwe: bus_voltage: Bus Voltage = 525.8 V 2023-02-10 22:04:16.531 Goodwe: nbus_voltage: NBus Voltage = 262.7 V 2023-02-10 22:04:16.531 Goodwe: vbattery1: Battery Voltage = 0.0 V 2023-02-10 22:04:16.531 Goodwe: ibattery1: Battery Current = 0.0 A 2023-02-10 22:04:16.531 Goodwe: pbattery1: Battery Power = 0 W 2023-02-10 22:04:16.531 Goodwe: battery_mode: Battery Mode code = 0 2023-02-10 22:04:16.531 Goodwe: battery_mode_label: Battery Mode = No battery 2023-02-10 22:04:16.531 Goodwe: warning_code: Warning code = 132 2023-02-10 22:04:16.531 Goodwe: safety_country: Safety Country code = 13 2023-02-10 22:04:16.531 Goodwe: safety_country_label: Safety Country = Poland 2023-02-10 22:04:16.531 Goodwe: work_mode: Work Mode code = 0 2023-02-10 22:04:16.532 Goodwe: work_mode_label: Work Mode = Wait Mode 2023-02-10 22:04:16.532 Goodwe: operation_mode: Operation Mode code = 0 2023-02-10 22:04:16.532 Goodwe: error_codes: Error Codes = 0 2023-02-10 22:04:16.532 Goodwe: errors: Errors = 2023-02-10 22:04:16.532 Goodwe: e_total: Total PV Generation = 304.7 kWh 2023-02-10 22:04:16.532 Goodwe: e_day: Today's PV Generation = 13.8 kWh 2023-02-10 22:04:16.532 Goodwe: e_total_exp: Total Energy (export) = 313.9 kWh 2023-02-10 22:04:16.532 Goodwe: h_total: Hours Total = 452 h 2023-02-10 22:04:16.532 Goodwe: e_day_exp: Today Energy (export) = 13.6 kWh 2023-02-10 22:04:16.532 Goodwe: e_total_imp: Total Energy (import) = 3.7 kWh 2023-02-10 22:04:16.532 Goodwe: e_day_imp: Today Energy (import) = 0.0 kWh 2023-02-10 22:04:16.532 Goodwe: e_load_total: Total Load = 1334.8 kWh 2023-02-10 22:04:16.532 Goodwe: e_load_day: Today Load = 14.4 kWh 2023-02-10 22:04:16.533 Goodwe: e_bat_charge_total: Total Battery Charge = 0.0 kWh 2023-02-10 22:04:16.533 Goodwe: e_bat_charge_day: Today Battery Charge = 0.0 kWh 2023-02-10 22:04:16.533 Goodwe: e_bat_discharge_total: Total Battery Discharge = 0.0 kWh 2023-02-10 22:04:16.533 Goodwe: e_bat_discharge_day: Today Battery Discharge = 0.0 kWh 2023-02-10 22:04:16.533 Goodwe: diagnose_result: Diag Status Code = 34095310 2023-02-10 22:04:16.533 Goodwe: diagnose_result_label: Diag Status = Battery SOC low, Battery SOC in back, BMS: Discharge disabled, Discharge Driver On, BMS: Discharge current low, Battery Disconnected, Self-use off, PF value set 2023-02-10 22:04:16.533 Goodwe: house_consumption: House Consumption = 752 W 2023-02-10 22:04:16.533 Goodwe: commode: Commode = 1 2023-02-10 22:04:16.533 Goodwe: rssi: RSSI = 100 2023-02-10 22:04:16.533 Goodwe: manufacture_code: Manufacture Code = 10 2023-02-10 22:04:16.533 Goodwe: meter_test_status: Meter Test Status = 0 2023-02-10 22:04:16.534 Goodwe: meter_comm_status: Meter Communication Status = 1 2023-02-10 22:04:16.534 Goodwe: active_power1: Active Power L1 = -138 W 2023-02-10 22:04:16.534 Goodwe: active_power2: Active Power L2 = -555 W 2023-02-10 22:04:16.534 Goodwe: active_power3: Active Power L3 = -58 W 2023-02-10 22:04:16.534 Goodwe: active_power_total: Active Power Total = -752 W 2023-02-10 22:04:16.534 Goodwe: reactive_power_total: Reactive Power Total = 630 var 2023-02-10 22:04:16.534 Goodwe: meter_power_factor1: Meter Power Factor L1 = -0.428 2023-02-10 22:04:16.534 Goodwe: meter_power_factor2: Meter Power Factor L2 = -0.861 2023-02-10 22:04:16.534 Goodwe: meter_power_factor3: Meter Power Factor L3 = -0.222 2023-02-10 22:04:16.534 Goodwe: meter_power_factor: Meter Power Factor = -0.612 2023-02-10 22:04:16.534 Goodwe: meter_freq: Meter Frequency = 49.94 Hz 2023-02-10 22:04:16.534 Goodwe: meter_e_total_exp: Meter Total Energy (export) = 151.243 kWh 2023-02-10 22:04:16.534 Goodwe: meter_e_total_imp: Meter Total Energy (import) = 1221.998 kWh 2023-02-10 22:04:16.535 Goodwe: meter_active_power1: Meter Active Power L1 = -138 W 2023-02-10 22:04:16.535 Goodwe: meter_active_power2: Meter Active Power L2 = -555 W 2023-02-10 22:04:16.535 Goodwe: meter_active_power3: Meter Active Power L3 = -58 W 2023-02-10 22:04:16.535 Goodwe: meter_active_power_total: Meter Active Power Total = -752 W 2023-02-10 22:04:16.535 Goodwe: meter_reactive_power1: Meter Reactive Power L1 = 245 var 2023-02-10 22:04:16.535 Goodwe: meter_reactive_power2: Meter Reactive Power L2 = 132 var 2023-02-10 22:04:16.535 Goodwe: meter_reactive_power3: Meter Reactive Power L2 = 252 var 2023-02-10 22:04:16.535 Goodwe: meter_reactive_power_total: Meter Reactive Power Total = 630 var 2023-02-10 22:04:16.535 Goodwe: meter_apparent_power1: Meter Apparent Power L1 = -324 VA 2023-02-10 22:04:16.535 Goodwe: meter_apparent_power2: Meter Apparent Power L2 = -647 VA 2023-02-10 22:04:16.535 Goodwe: meter_apparent_power3: Meter Apparent Power L3 = -265 VA 2023-02-10 22:04:16.535 Goodwe: meter_apparent_power_total: Meter Apparent Power Total = -1237 VA 2023-02-10 22:04:16.535 Goodwe: meter_type: Meter Type = 255 2023-02-10 22:04:16.535 Goodwe: meter_sw_version: Meter Software Version = 2312

kuerten69 commented 1 year ago

I have 452 devices in my Domoticz.

JanCeuleers commented 1 year ago

On 10/02/2023 19:33, remco-k wrote:

@JanCeuleers https://github.com/JanCeuleers I did have had a look to the code in december 2022, but couldn't see why you would miss things from the INVERTER_PARAMS list in Domoticz. So from there, there was nothing I could do.

But now you've sent your version I have something to work with. 2 questions:

  1. I assume you now see all the values you need correctly in Domoticz?

Yes, with my patch I see all the values I strictly need (but I'd prefer being able to uncomment all the others as well)

  1. I see that you've changed the singlephase or 3phase model detection code. Is this still needed, or is this a left over from earlier tests that is obsolete now and original code can be restored? I ask this because I need to know for when I create a update for this plugin I need to change something in the original detection code. Or not. Any change can break something else for someone else, so thats why I'm asking if this change is really needed.

Yes, it is needed. I submit that my method is more robust, in that it regards the inverter as 3-phase if any data element is seen on the MODBUS interface that corresponds with phase 2 or phase 3, rather than only looking at vgrid2.

For example (and I'm not about to test whether this actually happens in practice) during a grid outage it may well be that the inverter doesn't send the vgrid* parameters at all, so if the plugin happens to start at such a time it would assume that the inverter is a single-phase model until it gets restarted.

I also think that my method should not pose portability issues to other inverter types (but of course I can't prove that because I only have the one inverter).

But what is certain (and which is demonstrated by the differences between the 1st and the 2nd log extract I sent) is that the inverter doesn't send all the same data elements in every MODBUS cycle. One has to look at multiple cycles to get them all. So the method for determining whether the inverter is single-phase or 3-phase, which looks at only one MODBUS cycle, is still theoretically vulnerable to misidentifying the inverter capabilities. But I submit that my method is already better in this regard.

However the same issue afflicts the creation of devices: data elements that are missing from the first MODBUS cycle seen by the plugin upon its activation don't get their device created if needed. I have not yet attempted to resolve that aspect.

A way to resolve that would be to move the device creation logic from plugin initialisation to the main loop that processes each MODBUS cycle, and for that main loop to iterate over the MODBUS data rather than iterating over the INVERTER_PARAMS table. This way it would notice having received data from the inverter for which there is no corresponding device.

Furthermore I am not aware of some limitation of a limit for the number of values per device, which seems to be clipping at 24 values (according to your log file). I'm a Domoticz newbie as well, so I might be wrong.

... after some searching the internet...:

I just read here stas-demydiuk/domoticz-zigbee2mqtt-plugin#325 https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin/issues/325 that older versions of Domoticz have a limitation of 255 devices in total. You would be going over that pretty quickly if you have that version or older. So please check if you don't have that limit in Domoticz. Otherwise: update it.

I am running Domoticz version 2021.1, which is now indeed somewhat old, and having read some of the discussion at the above link I can see that this problem may indeed have been addressed in more recent versions of Domoticz.

The reason why I'm still on that version is that in the past I've been bitten by the Domoticz team plowing forward with upping their dependencies beyond what my distro has available, which left me with a critical outage without the ability to roll back. My server runs Ubuntu 20.04, and I can't upgrade the OS without considerable planning due to impact on all of the other things it runs.

Anyway: that is just an explanation for the status quo here; I can't expect you trying to accommodate that.

Next to the above I'm seeing something else that is quite strange and I can't make out why this happens. Your log states:

|Updated 7 values out of 24 |

It states 24 directly after it logged way more than 24 values. The loop that logs all of those rows contains a simple counter:

|device_count += 1 |

And its that counter that is logged using this piece of code:

|Domoticz.Log("Updated {} values out of {}".format(updated, device_count)) |

/(And I'm also missing all of the |Domoticz.Debug("Update value = {}".format(sValue))| logs as well in your log file, for some reason), but lets ignore that for now to keep things as simple as possible./

I simply cannot explain why |device_count| hasn't got a number that is higher than 24. It should have. But it hasn't. Mayby you edited your log file, maybe other things are going bad. Don't know. But any kind of insight of why these numbers don't add up would be helpful for me to try and find a generic solution for the both of you. @.*** https://github.com/JanCeuleers and @kuerten69 https://github.com/kuerten69)

Now that you know that I have an old Domoticz version I invite you to ignore any weirdness you see in my logs that you don't also spot in @kuerten69's.

Cheers, Jan

kuerten69 commented 1 year ago

I have Domoticz Version: 2022.2

JanCeuleers commented 1 year ago

Embarrassingly, I just spotted a bug in my modified code: one instance of runtime_data is misspelled as runtime_date. Sorry about that.

remco-k commented 1 year ago

^^ no problem. I make bugs all the time. As long as people don't die from them, its fine. ;)

@kuerten69 Can you please post your log which includes the log row that looks like:

Goodwe: (Goodwe) Updated 7 values out of 24

Log level Info should be enabled. And at the log level setting at the bottom the value must be set to Extra.

Not sure why I named those 2 exactly the same (Log level), I'll note that to change in the future.

Edit: You can ignore this. Changes I have made today significantly changes things. So you dont have to bother about sending the logs, unless you still have issues with the version from the post below.

remco-k commented 1 year ago

I have done some changes today. Fixed some bugs and added @JanCeuleers extra inverter params and 3-phase detection. Next to that I have done some more work, one of them is switching to 3 phase if a certain series (ET,BT,DT) is detected, instead of looking at the modbus data. (All of the models in those series are 3 phase, according to what I found on the GoodWe website)

I pushed todays changes to a seperate branch, so master is unaffected while we are trying to sort this issue out. Please download or clone from this branch: https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/tree/issue3-parameters-missing To see all changes: https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/compare/master...issue3-parameters-missing

A quick help for you if you did a git clone to your Domoticz system, type these commands:

git pull
git checkout issue3-parameters-missing

If you want to go back to the master branch:

git checkout master

@JanCeuleers I have added all of your inverter params and modified some (to 3-phase only and fixed some typo's) where needed. If you can't have all those devices in your Domoticz you should remark a selection again as you did earlier.

I would like to hear from you if things work out for you.

JanCeuleers commented 1 year ago

On 11/02/2023 15:06, remco-k wrote:

I have done some changes today. Fixed some bugs and added @JanCeuleers https://github.com/JanCeuleers extra inverter params and 3-phase detection. Next to that I have done some more work, one of them is switching to 3 phase if a certain series (ET,BT,DT) is detected, instead of looking at the modbus data. (All of the models in those series are 3 phase, according to what I found on the GoodWe website)

I pushed todays changes to a seperate branch, so |master| is unaffected while we are trying to sort this issue out. Please download or clone from this branch: https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/tree/issue3-parameters-missing To see all changes: master...issue3-parameters-missing https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/compare/master...issue3-parameters-missing

@JanCeuleers https://github.com/JanCeuleers I have added all of your inverter params and modified some (to 3-phase only and fixed some typo's) where needed. If you can't have all those devices in your Domoticz you should remark a selection again as you did earlier.

I would like to hear from you if things work out for you.

I have upgraded Domoticz to 2022.2, after testing on another Ubuntu 20.04 machine that it works with that distro version. I have then adopted your patched plugin, with all parameters enabled, and it loads OK.

Thank you very much.

remco-k commented 1 year ago

You're welcome!

I'll wait on what @kuerten69 results are and then we let some time pass as a test period before I merge these changes to the master branch for everyone to use.

kuerten69 commented 1 year ago

These are the logs with the new plugin. It seems to me that during the production of energy more data was updated. Now there are 4. I still only have 24 items in Domoticz. No phase 1.

2023-02-11 18:46:36.609 Goodweee: meter_type: Meter Type = 255 2023-02-11 18:46:36.609 Goodweee: meter_sw_version: Meter Software Version = 2312 2023-02-11 18:46:36.676 Goodweee: Updated 3 values out of 24 2023-02-11 18:46:41.556 Goodweee: vgrid3: On-grid L3 Voltage = 231.0 V 2023-02-11 18:46:41.556 Goodweee: igrid3: On-grid L3 Current = 0.0 A 2023-02-11 18:46:41.556 Goodweee: fgrid3: On-grid L3 Frequency = 49.99 Hz 2023-02-11 18:46:41.557 Goodweee: pgrid3: On-grid L3 Power = -2 W 2023-02-11 18:46:41.557 Goodweee: grid_mode: Grid Mode code = 1 2023-02-11 18:46:41.557 Goodweee: grid_mode_label: Grid Mode = Connected to grid 2023-02-11 18:46:41.557 Goodweee: total_inverter_power: Total Power = -3 W 2023-02-11 18:46:41.557 Goodweee: active_power: Active Power = -833 W 2023-02-11 18:46:41.557 Goodweee: grid_in_out: On-grid Mode code = 2 2023-02-11 18:46:41.557 Goodweee: grid_in_out_label: On-grid Mode = Importing 2023-02-11 18:46:41.557 Goodweee: reactive_power: Reactive Power = 0 var 2023-02-11 18:46:41.557 Goodweee: apparent_power: Apparent Power = 0 VA 2023-02-11 18:46:41.557 Goodweee: backup_v1: Back-up L1 Voltage = 224.5 V 2023-02-11 18:46:41.557 Goodweee: backup_i1: Back-up L1 Current = 0.1 A 2023-02-11 18:46:41.557 Goodweee: backup_f1: Back-up L1 Frequency = 49.83 Hz 2023-02-11 18:46:41.557 Goodweee: load_mode1: Load Mode L1 = 1 2023-02-11 18:46:41.557 Goodweee: backup_p1: Back-up L1 Power = 0 W 2023-02-11 18:46:41.557 Goodweee: backup_v2: Back-up L2 Voltage = 239.0 V 2023-02-11 18:46:41.557 Goodweee: backup_i2: Back-up L2 Current = 0.2 A 2023-02-11 18:46:41.557 Goodweee: backup_f2: Back-up L2 Frequency = 49.83 Hz 2023-02-11 18:46:41.557 Goodweee: load_mode2: Load Mode L2 = 1 2023-02-11 18:46:41.557 Goodweee: backup_p2: Back-up L2 Power = 0 W 2023-02-11 18:46:41.557 Goodweee: backup_v3: Back-up L3 Voltage = 230.9 V 2023-02-11 18:46:41.557 Goodweee: backup_i3: Back-up L3 Current = 0.1 A 2023-02-11 18:46:41.557 Goodweee: backup_f3: Back-up L3 Frequency = 49.82 Hz 2023-02-11 18:46:41.557 Goodweee: load_mode3: Load Mode L3 = 1 2023-02-11 18:46:41.557 Goodweee: backup_p3: Back-up L3 Power = 0 W 2023-02-11 18:46:41.558 Goodweee: load_p1: Load L1 = 126 W 2023-02-11 18:46:41.558 Goodweee: load_p2: Load L2 = 646 W 2023-02-11 18:46:41.558 Goodweee: load_p3: Load L3 = 55 W 2023-02-11 18:46:41.558 Goodweee: backup_ptotal: Back-up Load = 0 W 2023-02-11 18:46:41.558 Goodweee: load_ptotal: Load = 830 W 2023-02-11 18:46:41.558 Goodweee: ups_load: Ups Load = 1 % 2023-02-11 18:46:41.558 Goodweee: temperature_air: Inverter Temperature (Air) = 23.4 C 2023-02-11 18:46:41.558 Goodweee: temperature_module: Inverter Temperature (Module) = 0.0 C 2023-02-11 18:46:41.558 Goodweee: temperature: Inverter Temperature (Radiator) = 20.3 C 2023-02-11 18:46:41.558 Goodweee: function_bit: Function Bit = 16416 2023-02-11 18:46:41.558 Goodweee: bus_voltage: Bus Voltage = 518.7 V 2023-02-11 18:46:41.558 Goodweee: nbus_voltage: NBus Voltage = 259.1 V 2023-02-11 18:46:41.558 Goodweee: vbattery1: Battery Voltage = 0.0 V 2023-02-11 18:46:41.558 Goodweee: ibattery1: Battery Current = 0.0 A 2023-02-11 18:46:41.558 Goodweee: pbattery1: Battery Power = 0 W 2023-02-11 18:46:41.558 Goodweee: battery_mode: Battery Mode code = 0 2023-02-11 18:46:41.558 Goodweee: battery_mode_label: Battery Mode = No battery 2023-02-11 18:46:41.558 Goodweee: warning_code: Warning code = 132 2023-02-11 18:46:41.558 Goodweee: safety_country: Safety Country code = 13 2023-02-11 18:46:41.558 Goodweee: safety_country_label: Safety Country = Poland 2023-02-11 18:46:41.558 Goodweee: work_mode: Work Mode code = 0 2023-02-11 18:46:41.558 Goodweee: work_mode_label: Work Mode = Wait Mode 2023-02-11 18:46:41.558 Goodweee: operation_mode: Operation Mode code = 0 2023-02-11 18:46:41.558 Goodweee: error_codes: Error Codes = 0 2023-02-11 18:46:41.558 Goodweee: errors: Errors = 2023-02-11 18:46:41.558 Goodweee: e_total: Total PV Generation = 312.2 kWh 2023-02-11 18:46:41.558 Goodweee: e_day: Today's PV Generation = 7.5 kWh 2023-02-11 18:46:41.559 Goodweee: e_total_exp: Total Energy (export) = 321.5 kWh 2023-02-11 18:46:41.559 Goodweee: h_total: Hours Total = 460 h 2023-02-11 18:46:41.559 Goodweee: e_day_exp: Today Energy (export) = 7.6 kWh 2023-02-11 18:46:41.559 Goodweee: e_total_imp: Total Energy (import) = 3.8 kWh 2023-02-11 18:46:41.559 Goodweee: e_day_imp: Today Energy (import) = 0.1 kWh 2023-02-11 18:46:41.559 Goodweee: e_load_total: Total Load = 1351.7 kWh 2023-02-11 18:46:41.559 Goodweee: e_load_day: Today Load = 15.7 kWh 2023-02-11 18:46:41.559 Goodweee: e_bat_charge_total: Total Battery Charge = 0.0 kWh 2023-02-11 18:46:41.559 Goodweee: e_bat_charge_day: Today Battery Charge = 0.0 kWh 2023-02-11 18:46:41.559 Goodweee: e_bat_discharge_total: Total Battery Discharge = 0.0 kWh 2023-02-11 18:46:41.559 Goodweee: e_bat_discharge_day: Today Battery Discharge = 0.0 kWh 2023-02-11 18:46:41.559 Goodweee: diagnose_result: Diag Status Code = 34095310 2023-02-11 18:46:41.559 Goodweee: diagnose_result_label: Diag Status = Battery SOC low, Battery SOC in back, BMS: Discharge disabled, Discharge Driver On, BMS: Discharge current low, Battery Disconnected, Self-use off, PF value set 2023-02-11 18:46:41.559 Goodweee: house_consumption: House Consumption = 833 W 2023-02-11 18:46:41.559 Goodweee: commode: Commode = 1 2023-02-11 18:46:41.559 Goodweee: rssi: RSSI = 100 2023-02-11 18:46:41.559 Goodweee: manufacture_code: Manufacture Code = 10 2023-02-11 18:46:41.559 Goodweee: meter_test_status: Meter Test Status = 0 2023-02-11 18:46:41.559 Goodweee: meter_comm_status: Meter Communication Status = 1 2023-02-11 18:46:41.559 Goodweee: active_power1: Active Power L1 = -126 W 2023-02-11 18:46:41.559 Goodweee: active_power2: Active Power L2 = -665 W 2023-02-11 18:46:41.559 Goodweee: active_power3: Active Power L3 = -56 W 2023-02-11 18:46:41.559 Goodweee: active_power_total: Active Power Total = -847 W 2023-02-11 18:46:41.559 Goodweee: reactive_power_total: Reactive Power Total = 783 var 2023-02-11 18:46:41.559 Goodweee: meter_power_factor1: Meter Power Factor L1 = -0.421 2023-02-11 18:46:41.559 Goodweee: meter_power_factor2: Meter Power Factor L2 = -0.843 2023-02-11 18:46:41.559 Goodweee: meter_power_factor3: Meter Power Factor L3 = -0.211 2023-02-11 18:46:41.560 Goodweee: meter_power_factor: Meter Power Factor = -0.626 2023-02-11 18:46:41.560 Goodweee: meter_freq: Meter Frequency = 49.99 Hz 2023-02-11 18:46:41.560 Goodweee: meter_e_total_exp: Meter Total Energy (export) = 153.542 kWh 2023-02-11 18:46:41.560 Goodweee: meter_e_total_imp: Meter Total Energy (import) = 1233.669 kWh 2023-02-11 18:46:41.560 Goodweee: meter_active_power1: Meter Active Power L1 = -126 W 2023-02-11 18:46:41.560 Goodweee: meter_active_power2: Meter Active Power L2 = -665 W 2023-02-11 18:46:41.560 Goodweee: meter_active_power3: Meter Active Power L3 = -56 W 2023-02-11 18:46:41.560 Goodweee: meter_active_power_total: Meter Active Power Total = -847 W 2023-02-11 18:46:41.560 Goodweee: meter_reactive_power1: Meter Reactive Power L1 = 225 var 2023-02-11 18:46:41.560 Goodweee: meter_reactive_power2: Meter Reactive Power L2 = 305 var 2023-02-11 18:46:41.560 Goodweee: meter_reactive_power3: Meter Reactive Power L2 = 252 var 2023-02-11 18:46:41.560 Goodweee: meter_reactive_power_total: Meter Reactive Power Total = 783 var 2023-02-11 18:46:41.560 Goodweee: meter_apparent_power1: Meter Apparent Power L1 = -301 VA 2023-02-11 18:46:41.560 Goodweee: meter_apparent_power2: Meter Apparent Power L2 = -795 VA 2023-02-11 18:46:41.560 Goodweee: meter_apparent_power3: Meter Apparent Power L3 = -265 VA 2023-02-11 18:46:41.560 Goodweee: meter_apparent_power_total: Meter Apparent Power Total = -1363 VA 2023-02-11 18:46:41.560 Goodweee: meter_type: Meter Type = 255 2023-02-11 18:46:41.560 Goodweee: meter_sw_version: Meter Software Version = 2312 2023-02-11 18:46:41.669 Goodweee: Updated 4 values out of 24 2023-02-11 18:46:46.541 Goodweee: vgrid3: On-grid L3 Voltage = 231.8 V 2023-02-11 18:46:46.541 Goodweee: igrid3: On-grid L3 Current = 0.0 A 2023-02-11 18:46:46.541 Goodweee: fgrid3: On-grid L3 Frequency = 49.99 Hz 2023-02-11 18:46:46.541 Goodweee: pgrid3: On-grid L3 Power = -2 W 2023-02-11 18:46:46.541 Goodweee: grid_mode: Grid Mode code = 1 2023-02-11 18:46:46.541 Goodweee: grid_mode_label: Grid Mode = Connected to grid 2023-02-11 18:46:46.541 Goodweee: total_inverter_power: Total Power = -3 W 2023-02-11 18:46:46.541 Goodweee: active_power: Active Power = -816 W 2023-02-11 18:46:46.541 Goodweee: grid_in_out: On-grid Mode code = 2 2023-02-11 18:46:46.541 Goodweee: grid_in_out_label: On-grid Mode = Importing 2023-02-11 18:46:46.541 Goodweee: reactive_power: Reactive Power = 0 var 2023-02-11 18:46:46.541 Goodweee: apparent_power: Apparent Power = 0 VA 2023-02-11 18:46:46.541 Goodweee: backup_v1: Back-up L1 Voltage = 224.3 V 2023-02-11 18:46:46.541 Goodweee: backup_i1: Back-up L1 Current = 0.1 A 2023-02-11 18:46:46.541 Goodweee: backup_f1: Back-up L1 Frequency = 49.83 Hz 2023-02-11 18:46:46.541 Goodweee: load_mode1: Load Mode L1 = 1 2023-02-11 18:46:46.541 Goodweee: backup_p1: Back-up L1 Power = 0 W 2023-02-11 18:46:46.541 Goodweee: backup_v2: Back-up L2 Voltage = 237.6 V 2023-02-11 18:46:46.542 Goodweee: backup_i2: Back-up L2 Current = 0.1 A 2023-02-11 18:46:46.542 Goodweee: backup_f2: Back-up L2 Frequency = 49.83 Hz 2023-02-11 18:46:46.542 Goodweee: load_mode2: Load Mode L2 = 1 2023-02-11 18:46:46.542 Goodweee: backup_p2: Back-up L2 Power = 0 W 2023-02-11 18:46:46.542 Goodweee: backup_v3: Back-up L3 Voltage = 232.1 V 2023-02-11 18:46:46.542 Goodweee: backup_i3: Back-up L3 Current = 0.1 A 2023-02-11 18:46:46.542 Goodweee: backup_f3: Back-up L3 Frequency = 49.82 Hz 2023-02-11 18:46:46.542 Goodweee: load_mode3: Load Mode L3 = 1 2023-02-11 18:46:46.542 Goodweee: backup_p3: Back-up L3 Power = 0 W 2023-02-11 18:46:46.542 Goodweee: load_p1: Load L1 = 124 W 2023-02-11 18:46:46.542 Goodweee: load_p2: Load L2 = 631 W 2023-02-11 18:46:46.542 Goodweee: load_p3: Load L3 = 53 W 2023-02-11 18:46:46.542 Goodweee: backup_ptotal: Back-up Load = 0 W 2023-02-11 18:46:46.542 Goodweee: load_ptotal: Load = 813 W 2023-02-11 18:46:46.542 Goodweee: ups_load: Ups Load = 0 % 2023-02-11 18:46:46.542 Goodweee: temperature_air: Inverter Temperature (Air) = 23.4 C 2023-02-11 18:46:46.542 Goodweee: temperature_module: Inverter Temperature (Module) = 0.0 C 2023-02-11 18:46:46.542 Goodweee: temperature: Inverter Temperature (Radiator) = 20.3 C 2023-02-11 18:46:46.542 Goodweee: function_bit: Function Bit = 16416 2023-02-11 18:46:46.542 Goodweee: bus_voltage: Bus Voltage = 519.5 V 2023-02-11 18:46:46.542 Goodweee: nbus_voltage: NBus Voltage = 259.5 V 2023-02-11 18:46:46.542 Goodweee: vbattery1: Battery Voltage = 0.0 V 2023-02-11 18:46:46.542 Goodweee: ibattery1: Battery Current = 0.0 A 2023-02-11 18:46:46.542 Goodweee: pbattery1: Battery Power = 0 W 2023-02-11 18:46:46.542 Goodweee: battery_mode: Battery Mode code = 0 2023-02-11 18:46:46.542 Goodweee: battery_mode_label: Battery Mode = No battery 2023-02-11 18:46:46.542 Goodweee: warning_code: Warning code = 132 2023-02-11 18:46:46.542 Goodweee: safety_country: Safety Country code = 13 2023-02-11 18:46:46.542 Goodweee: safety_country_label: Safety Country = Poland 2023-02-11 18:46:46.542 Goodweee: work_mode: Work Mode code = 0 2023-02-11 18:46:46.542 Goodweee: work_mode_label: Work Mode = Wait Mode 2023-02-11 18:46:46.543 Goodweee: operation_mode: Operation Mode code = 0 2023-02-11 18:46:46.543 Goodweee: error_codes: Error Codes = 0 2023-02-11 18:46:46.543 Goodweee: errors: Errors = 2023-02-11 18:46:46.543 Goodweee: e_total: Total PV Generation = 312.2 kWh 2023-02-11 18:46:46.543 Goodweee: e_day: Today's PV Generation = 7.5 kWh 2023-02-11 18:46:46.543 Goodweee: e_total_exp: Total Energy (export) = 321.5 kWh 2023-02-11 18:46:46.543 Goodweee: h_total: Hours Total = 460 h 2023-02-11 18:46:46.543 Goodweee: e_day_exp: Today Energy (export) = 7.6 kWh 2023-02-11 18:46:46.543 Goodweee: e_total_imp: Total Energy (import) = 3.8 kWh 2023-02-11 18:46:46.543 Goodweee: e_day_imp: Today Energy (import) = 0.1 kWh 2023-02-11 18:46:46.543 Goodweee: e_load_total: Total Load = 1351.7 kWh 2023-02-11 18:46:46.543 Goodweee: e_load_day: Today Load = 15.7 kWh 2023-02-11 18:46:46.543 Goodweee: e_bat_charge_total: Total Battery Charge = 0.0 kWh 2023-02-11 18:46:46.543 Goodweee: e_bat_charge_day: Today Battery Charge = 0.0 kWh 2023-02-11 18:46:46.543 Goodweee: e_bat_discharge_total: Total Battery Discharge = 0.0 kWh 2023-02-11 18:46:46.543 Goodweee: e_bat_discharge_day: Today Battery Discharge = 0.0 kWh 2023-02-11 18:46:46.543 Goodweee: diagnose_result: Diag Status Code = 34095310 2023-02-11 18:46:46.543 Goodweee: diagnose_result_label: Diag Status = Battery SOC low, Battery SOC in back, BMS: Discharge disabled, Discharge Driver On, BMS: Discharge current low, Battery Disconnected, Self-use off, PF value set 2023-02-11 18:46:46.543 Goodweee: house_consumption: House Consumption = 816 W 2023-02-11 18:46:46.543 Goodweee: commode: Commode = 1 2023-02-11 18:46:46.543 Goodweee: rssi: RSSI = 100 2023-02-11 18:46:46.543 Goodweee: manufacture_code: Manufacture Code = 10 2023-02-11 18:46:46.543 Goodweee: meter_test_status: Meter Test Status = 0 2023-02-11 18:46:46.543 Goodweee: meter_comm_status: Meter Communication Status = 1 2023-02-11 18:46:46.543 Goodweee: active_power1: Active Power L1 = -126 W 2023-02-11 18:46:46.543 Goodweee: active_power2: Active Power L2 = -633 W 2023-02-11 18:46:46.543 Goodweee: active_power3: Active Power L3 = -55 W 2023-02-11 18:46:46.543 Goodweee: active_power_total: Active Power Total = -816 W 2023-02-11 18:46:46.543 Goodweee: reactive_power_total: Reactive Power Total = 787 var 2023-02-11 18:46:46.543 Goodweee: meter_power_factor1: Meter Power Factor L1 = -0.416 2023-02-11 18:46:46.543 Goodweee: meter_power_factor2: Meter Power Factor L2 = -0.846 2023-02-11 18:46:46.544 Goodweee: meter_power_factor3: Meter Power Factor L3 = -0.212 2023-02-11 18:46:46.544 Goodweee: meter_power_factor: Meter Power Factor = -0.625 2023-02-11 18:46:46.544 Goodweee: meter_freq: Meter Frequency = 49.99 Hz 2023-02-11 18:46:46.544 Goodweee: meter_e_total_exp: Meter Total Energy (export) = 153.542 kWh 2023-02-11 18:46:46.544 Goodweee: meter_e_total_imp: Meter Total Energy (import) = 1233.669 kWh 2023-02-11 18:46:46.544 Goodweee: meter_active_power1: Meter Active Power L1 = -126 W 2023-02-11 18:46:46.544 Goodweee: meter_active_power2: Meter Active Power L2 = -633 W 2023-02-11 18:46:46.544 Goodweee: meter_active_power3: Meter Active Power L3 = -55 W 2023-02-11 18:46:46.544 Goodweee: meter_active_power_total: Meter Active Power Total = -816 W 2023-02-11 18:46:46.544 Goodweee: meter_reactive_power1: Meter Reactive Power L1 = 226 var 2023-02-11 18:46:46.544 Goodweee: meter_reactive_power2: Meter Reactive Power L2 = 306 var 2023-02-11 18:46:46.544 Goodweee: meter_reactive_power3: Meter Reactive Power L2 = 254 var 2023-02-11 18:46:46.544 Goodweee: meter_reactive_power_total: Meter Reactive Power Total = 787 var 2023-02-11 18:46:46.544 Goodweee: meter_apparent_power1: Meter Apparent Power L1 = -303 VA 2023-02-11 18:46:46.544 Goodweee: meter_apparent_power2: Meter Apparent Power L2 = -768 VA 2023-02-11 18:46:46.544 Goodweee: meter_apparent_power3: Meter Apparent Power L3 = -266 VA 2023-02-11 18:46:46.544 Goodweee: meter_apparent_power_total: Meter Apparent Power Total = -1338 VA 2023-02-11 18:46:46.544 Goodweee: meter_type: Meter Type = 255 2023-02-11 18:46:46.544 Goodweee: meter_sw_version: Meter Software Version = 2312

kuerten69 commented 1 year ago

https://ibb.co/SJZb845 Domoticz list of goodwe parameters.

remco-k commented 1 year ago

Your log file doesn't contain the prefix text Modbus sensor that I added today. So you're not using today's version (which is 0.0.4). Please verify, open the plugin.py file, locate row 11, it should contain a attribute version="0.0.4". Anything else is the wrong version.

remco-k commented 1 year ago

Also keep in mind that you'll need to restart the plugin or Domoticz after you update the .py file. Otherwise nothing will change.

kuerten69 commented 1 year ago

You're right. I reloaded the old plugin. The new plugin shows 80 data. They look ok. Below are the logs and a photo from domoticz.

https://ibb.co/6FPv4s2 https://ibb.co/mvxrjJM https://ibb.co/9GQH53f

2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'vgrid3': On-grid L3 Voltage = 242.7 V 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'igrid3': On-grid L3 Current = 0.0 A 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'fgrid3': On-grid L3 Frequency = 50.01 Hz 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'pgrid3': On-grid L3 Power = -2 W 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'grid_mode': Grid Mode code = 1 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'grid_mode_label': Grid Mode = Connected to grid 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'total_inverter_power': Total Power = -3 W 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'active_power': Active Power = -886 W 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'grid_in_out': On-grid Mode code = 2 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'grid_in_out_label': On-grid Mode = Importing 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'reactive_power': Reactive Power = 0 var 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'apparent_power': Apparent Power = 0 VA 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'backup_v1': Back-up L1 Voltage = 230.3 V 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'backup_i1': Back-up L1 Current = 0.1 A 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'backup_f1': Back-up L1 Frequency = 49.83 Hz 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'load_mode1': Load Mode L1 = 1 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'backup_p1': Back-up L1 Power = 0 W 2023-02-11 19:50:54.534 Goodweee: Modbus sensor 'backup_v2': Back-up L2 Voltage = 223.5 V 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_i2': Back-up L2 Current = 0.1 A 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_f2': Back-up L2 Frequency = 49.83 Hz 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'load_mode2': Load Mode L2 = 1 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_p2': Back-up L2 Power = 0 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_v3': Back-up L3 Voltage = 242.1 V 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_i3': Back-up L3 Current = 0.1 A 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_f3': Back-up L3 Frequency = 49.82 Hz 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'load_mode3': Load Mode L3 = 1 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_p3': Back-up L3 Power = 0 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'load_p1': Load L1 = 126 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'load_p2': Load L2 = 695 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'load_p3': Load L3 = 58 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'backup_ptotal': Back-up Load = 0 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'load_ptotal': Load = 883 W 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'ups_load': Ups Load = 0 % 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'temperature_air': Inverter Temperature (Air) = 22.5 C 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'temperature_module': Inverter Temperature (Module) = 0.0 C 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'temperature': Inverter Temperature (Radiator) = 20.0 C 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'function_bit': Function Bit = 16416 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'bus_voltage': Bus Voltage = 522.4 V 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'nbus_voltage': NBus Voltage = 261.0 V 2023-02-11 19:50:54.535 Goodweee: Modbus sensor 'vbattery1': Battery Voltage = 0.0 V 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'ibattery1': Battery Current = 0.0 A 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'pbattery1': Battery Power = 0 W 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'battery_mode': Battery Mode code = 0 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'battery_mode_label': Battery Mode = No battery 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'warning_code': Warning code = 132 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'safety_country': Safety Country code = 13 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'safety_country_label': Safety Country = Poland 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'work_mode': Work Mode code = 0 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'work_mode_label': Work Mode = Wait Mode 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'operation_mode': Operation Mode code = 0 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'error_codes': Error Codes = 0 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'errors': Errors = 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_total': Total PV Generation = 312.2 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_day': Today's PV Generation = 7.5 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_total_exp': Total Energy (export) = 321.5 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'h_total': Hours Total = 460 h 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_day_exp': Today Energy (export) = 7.6 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_total_imp': Total Energy (import) = 3.8 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_day_imp': Today Energy (import) = 0.1 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_load_total': Total Load = 1352.8 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_load_day': Today Load = 16.8 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_bat_charge_total': Total Battery Charge = 0.0 kWh 2023-02-11 19:50:54.536 Goodweee: Modbus sensor 'e_bat_charge_day': Today Battery Charge = 0.0 kWh 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'e_bat_discharge_total': Total Battery Discharge = 0.0 kWh 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'e_bat_discharge_day': Today Battery Discharge = 0.0 kWh 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'diagnose_result': Diag Status Code = 34095310 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'diagnose_result_label': Diag Status = Battery SOC low, Battery SOC in back, BMS: Discharge disabled, Discharge Driver On, BMS: Discharge current low, Battery Disconnected, Self-use off, PF value set 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'house_consumption': House Consumption = 886 W 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'commode': Commode = 1 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'rssi': RSSI = 100 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'manufacture_code': Manufacture Code = 10 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_test_status': Meter Test Status = 0 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_comm_status': Meter Communication Status = 1 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'active_power1': Active Power L1 = -128 W 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'active_power2': Active Power L2 = -697 W 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'active_power3': Active Power L3 = -60 W 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'active_power_total': Active Power Total = -886 W 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'reactive_power_total': Reactive Power Total = 763 var 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_power_factor1': Meter Power Factor L1 = -0.41 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_power_factor2': Meter Power Factor L2 = -0.844 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_power_factor3': Meter Power Factor L3 = -0.212 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_power_factor': Meter Power Factor = -0.621 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_freq': Meter Frequency = 50.0 Hz 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_e_total_exp': Meter Total Energy (export) = 153.542 kWh 2023-02-11 19:50:54.537 Goodweee: Modbus sensor 'meter_e_total_imp': Meter Total Energy (import) = 1234.781 kWh 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_active_power1': Meter Active Power L1 = -128 W 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_active_power2': Meter Active Power L2 = -697 W 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_active_power3': Meter Active Power L3 = -60 W 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_active_power_total': Meter Active Power Total = -886 W 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_reactive_power1': Meter Reactive Power L1 = 232 var 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_reactive_power2': Meter Reactive Power L2 = 256 var 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_reactive_power3': Meter Reactive Power L2 = 274 var 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_reactive_power_total': Meter Reactive Power Total = 763 var 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_apparent_power1': Meter Apparent Power L1 = -311 VA 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_apparent_power2': Meter Apparent Power L2 = -826 VA 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_apparent_power3': Meter Apparent Power L3 = -288 VA 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_apparent_power_total': Meter Apparent Power Total = -1426 VA 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_type': Meter Type = 255 2023-02-11 19:50:54.538 Goodweee: Modbus sensor 'meter_sw_version': Meter Software Version = 2312 2023-02-11 19:50:55.546 Goodweee: Updated 33 values out of 80

remco-k commented 1 year ago

Does this work okay for you now or are you still missing parameters?

If so, please do a small test: try disabling the current device that you named Goodweee and add a new device with a temporary name, select type GoodWe ModbusUDP, set its IP address, inverter family, set add missing devices to Yes, make sure its enabled and press add. A list of new devices will be added, please check if these are complete.

kuerten69 commented 1 year ago

I added Goodwe Inverter again. I was waiting for a new day and the moment when energy production would start. After adding daily energy import and export, it does not show data in domoticz. You can see them in the logs but not in domoticz.

https://postimg.cc/HJ5NhK1y https://postimg.cc/Xr5xjC1M

2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'igrid3': On-grid L3 Current = 1.0 A 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'fgrid3': On-grid L3 Frequency = 49.97 Hz 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'pgrid3': On-grid L3 Power = 162 W 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'grid_mode': Grid Mode code = 1 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'grid_mode_label': Grid Mode = Connected to grid 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'total_inverter_power': Total Power = 485 W 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'active_power': Active Power = -1678 W 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'grid_in_out': On-grid Mode code = 2 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'grid_in_out_label': On-grid Mode = Importing 2023-02-12 09:56:22.530 Goodwe: Modbus sensor 'reactive_power': Reactive Power = 0 var 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'apparent_power': Apparent Power = 0 VA 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_v1': Back-up L1 Voltage = 233.1 V 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_i1': Back-up L1 Current = 0.1 A 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_f1': Back-up L1 Frequency = 49.97 Hz 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_mode1': Load Mode L1 = 1 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_p1': Back-up L1 Power = 3 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_v2': Back-up L2 Voltage = 229.8 V 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_i2': Back-up L2 Current = 0.2 A 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_f2': Back-up L2 Frequency = 49.96 Hz 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_mode2': Load Mode L2 = 1 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_p2': Back-up L2 Power = 11 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_v3': Back-up L3 Voltage = 237.0 V 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_i3': Back-up L3 Current = 0.2 A 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_f3': Back-up L3 Frequency = 49.97 Hz 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_mode3': Load Mode L3 = 1 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_p3': Back-up L3 Power = 3 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_p1': Load L1 = 516 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_p2': Load L2 = 421 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_p3': Load L3 = 1206 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'backup_ptotal': Back-up Load = 16 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'load_ptotal': Load = 2147 W 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'ups_load': Ups Load = 1 % 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'temperature_air': Inverter Temperature (Air) = 24.8 C 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'temperature_module': Inverter Temperature (Module) = 0.0 C 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'temperature': Inverter Temperature (Radiator) = 22.2 C 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'function_bit': Function Bit = 16416 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'bus_voltage': Bus Voltage = 654.0 V 2023-02-12 09:56:22.531 Goodwe: Modbus sensor 'nbus_voltage': NBus Voltage = 323.2 V 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'vbattery1': Battery Voltage = 0.0 V 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'ibattery1': Battery Current = 0.0 A 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'pbattery1': Battery Power = 0 W 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'battery_mode': Battery Mode code = 0 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'battery_mode_label': Battery Mode = No battery 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'warning_code': Warning code = 0 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'safety_country': Safety Country code = 13 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'safety_country_label': Safety Country = Poland 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'work_mode': Work Mode code = 1 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'work_mode_label': Work Mode = Normal (On-Grid) 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'operation_mode': Operation Mode code = 0 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'error_codes': Error Codes = 0 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'errors': Errors = 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_total': Total PV Generation = 312.8 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_day': Today's PV Generation = 0.6 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_total_exp': Total Energy (export) = 322.1 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'h_total': Hours Total = 461 h 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_day_exp': Today Energy (export) = 0.6 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_total_imp': Total Energy (import) = 3.8 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_day_imp': Today Energy (import) = 0.0 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_load_total': Total Load = 1363.8 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_load_day': Today Load = 8.5 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_bat_charge_total': Total Battery Charge = 0.0 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_bat_charge_day': Today Battery Charge = 0.0 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_bat_discharge_total': Total Battery Discharge = 0.0 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'e_bat_discharge_day': Today Battery Discharge = 0.0 kWh 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'diagnose_result': Diag Status Code = 34095311 2023-02-12 09:56:22.532 Goodwe: Modbus sensor 'diagnose_result_label': Diag Status = Battery voltage low, Battery SOC low, Battery SOC in back, BMS: Discharge disabled, Discharge Driver On, BMS: Discharge current low, Battery Disconnected, Self-use off, PF value set 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'house_consumption': House Consumption = 2124 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'commode': Commode = 1 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'rssi': RSSI = 100 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'manufacture_code': Manufacture Code = 10 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_test_status': Meter Test Status = 0 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_comm_status': Meter Communication Status = 1 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'active_power1': Active Power L1 = -366 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'active_power2': Active Power L2 = -277 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'active_power3': Active Power L3 = -1051 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'active_power_total': Active Power Total = -1695 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'reactive_power_total': Reactive Power Total = 667 var 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_power_factor1': Meter Power Factor L1 = -0.744 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_power_factor2': Meter Power Factor L2 = -0.609 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_power_factor3': Meter Power Factor L3 = -0.981 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_power_factor': Meter Power Factor = -0.84 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_freq': Meter Frequency = 50.0 Hz 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_e_total_exp': Meter Total Energy (export) = 153.542 kWh 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_e_total_imp': Meter Total Energy (import) = 1245.141 kWh 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_active_power1': Meter Active Power L1 = -366 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_active_power2': Meter Active Power L2 = -277 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_active_power3': Meter Active Power L3 = -1051 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_active_power_total': Meter Active Power Total = -1695 W 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_reactive_power1': Meter Reactive Power L1 = 288 var 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_reactive_power2': Meter Reactive Power L2 = 185 var 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_reactive_power3': Meter Reactive Power L2 = 193 var 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_reactive_power_total': Meter Reactive Power Total = 667 var 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_apparent_power1': Meter Apparent Power L1 = -484 VA 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_apparent_power2': Meter Apparent Power L2 = -451 VA 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_apparent_power3': Meter Apparent Power L3 = -1072 VA 2023-02-12 09:56:22.533 Goodwe: Modbus sensor 'meter_apparent_power_total': Meter Apparent Power Total = -2008 VA 2023-02-12 09:56:22.534 Goodwe: Modbus sensor 'meter_type': Meter Type = 255 2023-02-12 09:56:22.534 Goodwe: Modbus sensor 'meter_sw_version': Meter Software Version = 2312 2023-02-12 09:56:23.049 Goodwe: Updated 44 values out of 80

remco-k commented 1 year ago

Your second screenshot shows that devices are present in Domoticz and have values that you've circled. So that is a good thing, it proves the plugin does its job correctly.

The same devices not showing up elsewhere in Domoticz (Dashboard?) isn't a plugin issue or this specific Github issue. It is Domoticz configuration work, so you'll need to sort that out by other means. (Maybe see the Domoticz Utility's tab and star (Add to dashboard) the devices you want to see on your Dashboard. Or, find some help about that elsewhere).

remco-k commented 1 year ago

Merged the changes to master.

elxsi commented 11 months ago

Hi,

I'm experiencing the same problem with a Goodwe GW10K-ET. The corresponding devices for L1 (Voltage, Current, Power and Frequency) are not created. I've checked the changes of the plugin.py but I'm unable to find your merge of the patch to the master branch.

Did this merge really occur? Additionally, the link for the other branch (https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/tree/issue3-parameters-missing) does not seem to exist anymore.

root@domoticz:/home/domoticz/plugins/domoticz-goodwe-modbusudp-plugin# git status On branch master Your branch is up to date with 'origin/master'. root@domoticz:/home/domoticz/plugins/domoticz-goodwe-modbusudp-plugin# git pull Already up to date.

Thank you for your help!

remco-k commented 11 months ago

Yes, the merge to master really did occur. I think I deleted the original branch after the merge, so thats the reason why it doesn't exist anymore.

The commits are to be found here: https://github.com/remco-k/domoticz-goodwe-modbusudp-plugin/commits/master (All dated Feb 11, 2023)

You have some things you can check. Please read back this issue on what those things are. The most important ones: Domoticz version and verify if you are running this plugin version 0.0.4 or newer.