MatterVN / ModbusTCP2MQTT

Sungrow & SMA Solar Inverter addon for Home Assistant using mobusTCP
MIT License
69 stars 52 forks source link

SG5K-D missing smart meter entities #71

Open nvx opened 11 months ago

nvx commented 11 months ago

The mqtt data contains smart meter data, but there are no entities for it.

device_type_code: SG5K-D
run_state: 'ON'
protocol_number: 1095905280
protocol_version: 16781824
arm_software_version: 0
dsp_software_version: 0
serial_number: 16690
nominal_active_power: 5
output_type: 2P
daily_power_yields: 13.7
total_power_yields: 29074.1
total_running_time: 25566
internal_temperature: 61.6
total_apparent_power: 0
mppt_1_voltage: 220.2
mppt_1_current: 9.6
mppt_2_voltage: 349.9
mppt_2_current: 8.8
mppt_3_voltage: 0
mppt_3_current: 0
total_dc_power: 5221
phase_a_voltage: 250.7
phase_b_voltage: 0
phase_c_voltage: 0
phase_a_current: 20
phase_b_current: 0
phase_c_current: 0
total_active_power: 5013
total_reactive_power: 214
power_factor: 1
grid_frequency: 50.02
work_state_1: Run
alarm_code_1: 0
nominal_reactive_power: 1.5
array_insulation_resistance: 1089
active_power_regulation_setpoint: 0
reactive_power_regulation_setpoint: 0
work_state_2: Stop
meter_power: -3784
meter_a_phase_power: 0
meter_b_phase_power: 0
meter_c_phase_power: 0
load_power: 1229
daily_export_energy: 9.1
total_export_energy: 22945
daily_import_energy: 4.9
total_import_energy: 9949.2
daily_direct_energy_consumption: 4.6
total_direct_energy_consumption: 6129.1
daily_running_time: 675
mppt_4_voltage: 0
mppt_4_current: 0
mppt_5_voltage: 0
mppt_5_current: 0
mppt_6_voltage: 0
mppt_6_current: 0
mppt_7_voltage: 0
mppt_7_current: 0
mppt_8_voltage: 0
mppt_8_current: 0
monthly_power_yields: 0
mppt_9_voltage: 0
mppt_9_current: 0
mppt_10_voltage: 0
mppt_10_current: 0
mppt_11_voltage: 0
mppt_11_current: 0
mppt_12_voltage: 0
mppt_12_current: 0
negative_voltage_to_the_ground: 0
bus_voltage: 0
pid_work_state: 0
pid_alarm_code: 0
export_power: 0
power_meter: 0
pv_power_of_today: 5
daily_pv_energy_yields: 30.9
monthly_pv_energy_yields: 883
yearly_pv_energy_yields: 1310.4
direct_power_consumption_today_pv: 0
start_stop: Start
power_limitation_switch: Enable
power_limitation_setting: 100
export_power_limitation: Disable
export_power_limitation_value: 500
current_transformer_output_current: 0
current_transformer_range: 0
current_transformer: 0
export_power_limitation_percentage: 100
installed_pv_power: 0
power_factor_setting: 1
night_svg_switch: 0
reactive_power_adjustment_mode: 'Off'
reactive_power_percentage_setting: 0
power_limitation_adjustment: 0
reactive_power_adjustment: 0
pid_recovery: 0
anti_pid: 0
fullday_pid_suppression: 0
export_to_grid: 3784

For example there is no entity with the total_export_energy or total_import_energy. The only energy entity is the inverter daily generation entity.

Using the HassOS Addon