slipx06 / Sunsynk-Home-Assistant-Dash

Home Assistant Dashboard to display Inverter information. ESPHome configuration to collect inverter sensor data via modbus
66 stars 18 forks source link

Modbus entities incorrect when solar exceeds 5kwh #10

Closed Supermanenvysme closed 2 months ago

Supermanenvysme commented 3 months ago

I have recently started using the modbus (RS485 with esphome) integration (Sunsynk 1p from your code). When the solar exceeds 5kwh, numerous entities go excessively high, as per below. I have rechecked my yaml a number of times and the problem still presents. It is an 8kwh inverter with 6kwh combined solar panels.

image

slipx06 commented 3 months ago

Hi You need to check your sensor data as some of these numbers look incorrect etc. Is this an 8kW sunsynk inverter?

Please post your full card config and some output from your sensors. e.g.

day_battery_charge_70: sensor.sunsynk_day_battery_charge day_battery_discharge_71: sensor.sunsynk_day_battery_discharge day_pv_energy_108: sensor.sunsynk_day_pv_energy day_grid_import_76: sensor.sunsynk_day_grid_import

image image

Supermanenvysme commented 3 months ago

Thanks for the prompt response.

Yes its an 8kw inverter. The problem appears to only happen when the solar is close to or exceeds 5kw, with load.

Below is the yaml, I have only used what I needed and not your entire yaml. I have also tweaked the naming conventions for my own references. When compared directly on the inverter panel, the values appear to be correct, however on this integration it throws excessively high values, however when the solar is below 5kw the values match with the inverter.

uart: id: mod_bus tx_pin: 17 rx_pin: 16 baud_rate: 9600 stop_bits: 1

modbus: id: sunsynk_modbus flow_control_pin: 4

modbus_controller:

sensor:

text_sensor:

slipx06 commented 3 months ago

I've never seen that before. Have you looked at the ESPHome log when it crosses this threshold for any errors? What firmware are you running on the inverter? What do your history graphs show?

image

Supermanenvysme commented 3 months ago

I have enabled the logger on the esp as debugger. Will review the logs when the issue arises again.

The history graphs does indeed reflect the large spikes.

image

software version M6.0.1.4/S 1.7.2.4/C E 4.2.4

Supermanenvysme commented 2 months ago

Found the issue causing the problem.

I had connected the RSD to a buck converter (LM317T) to reduce the voltage to 5v. The power appeared to be sufficient, however when the solar exceeded 4.8kw, something happened to the buck converter.

I have temporarily replaced with a 5v power supply and it appears to be fine. Will look at alternative ways to power it.

Now I just need to fix all the incorrect entries into the Energy Dashboard.

Thanks for the assistance, I think its resolved now