MatterVN / ModbusTCP2MQTT

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

Incorrect sensor data? #29

Closed mattkerrison closed 2 years ago

mattkerrison commented 2 years ago

The addon pulls through all the data which is great, however my SG8k with either the config for the 5kw or 8kw version reports no data to the sensors:

IMG_0146

These are the entity attributes:

state_class: total_increasing inverter_size: 8 daily_power_yield: 100 total_power_yield: 0 inverter_power_on_hours: 2 internal_temp: 39.1 pv1_voltage: 0 pv1_current: 0 pv2_voltage: 0 pv2_current: 0 total_pv_power: 0 grid_voltage: 235.8 inverter_current: 0 total_active_power: 0 grid_frequency: 50.1 export_power: 493 export_power_indicator: 0 power_meter: 493 daily_export_energy: 0 total_export_energy: 0 daily_import_energy: 4200 total_import_energy: 4.2 daily_energy_consumption: 100 total_energy_consumption: 0.1 timestamp: 2022-03-17T19:41:14 unit_of_measurement: kWh device_class: energy icon: mdi:solar-power friendly_name: Inverter Daily Energy Import

I can see the power generation in the app, anyone having the same issues? I can't select any other attributes for the HA energy component so it'd be good to get a fix for the addon

IMG_0145

mattkerrison commented 2 years ago

Edit: I can see the addon is getting all the correct data in the logs but constantly getting this error in Mosquitto broker:

1647560585: New client connected from 172.30.33.5 as ModbusTCP (p2, c1, k60, u'addons'). 1647560607: Socket error on client ModbusTCP, disconnecting.

I've seen in other issues that a restart fixes it but I've tried restarting both the Addon, Mosquitto & HA itself multiple times and no fix

mattkerrison commented 2 years ago

I've got this working now