egguy / grott-home-assistant-add-on

Grott Home Assistant add-on - Native MQTT plugin
33 stars 11 forks source link

Amount of solar generated today is only reading from pv1 #36

Closed DanielB0nd closed 1 year ago

DanielB0nd commented 1 year ago

I had a look at the MQTT data to try to confirm this and these are my findings, image This is the energy generated by pv1

This is what the supposibly combined generation is for pv1 and pv2 image

And this is what pv2 generated image

{"datalogserial": "*******", "pvserial": "*******", "pvstatus": 6, "pvpowerin": 0, "pv1voltage": 108, "pv1current": 0, "pv1watt": 1, "pv2voltage": 0, "pv2current": 0, "pv2watt": 0, "pvpowerout": 401, "pvfrequentie": 5015, "pvgridvoltage": 2351, "pvgridcurrent": 9, "pvgridpower": 427, "pvgridvoltage2": 0, "pvgridcurrent2": 0, "pvgridpower2": 0, "pvgridvoltage3": 0, "pvgridcurrent3": 0, "pvgridpower3": 0, "totworktime": 9529278, "eactoday": 53, "pvenergytoday": 53, "eactotal": 11140, "epvtotal": 12372, "epv1today": 53, "epv1total": 6841, "epv2today": 28, "epv2total": 5512, "pvtemperature": 322, "pvipmtemperature": 307, "pvboosttemp": 299, "bat_dsp": 531, "eacharge_today": 1, "eacharge_total": 75, "batterytype": 1, "uwsysworkmode": 6, "systemfaultword0": 0, "systemfaultword1": 0, "systemfaultword2": 0, "systemfaultword3": 0, "systemfaultword4": 32, "systemfaultword5": 0, "systemfaultword6": 0, "systemfaultword7": 0, "pdischarge1": 1200, "p1charge1": 0, "vbat": 531, "SOC": 94, "pactouserr": 0, "pactousertot": 0, "pactogridr": 246, "pactogridtot": 246, "plocaloadr": 1000, "plocaloadtot": 1000, "spdspstatus": 6, "spbusvolt": 3009, "etouser_tod": 29, "etouser_tot": 953, "etogrid_tod": 12, "etogrid_tot": 7987, "edischarge1_tod": 34, "edischarge1_tot": 2148, "eharge1_tod": 48, "eharge1_tot": 1906, "elocalload_tod": 84, "elocalload_tot": 5580, "grott_last_push": "2023-07-31T21:01:38.714977+00:00"}

As seen in the data taken from MQTT epv1today is 53 which is converted to 5.3kWh by the sensors added also stored in mqtt. However there is also pvenergytoday which matches pv1 at 53. epv2today is 28 (2.8kWh) so pvenergytoday should in theory be 81 (8.1kWh)

I dont know if this is an issue with GROTT as a whole or just the HA addon, so if I am misunderstanding something, or this is better suited to be posted on the GROTT page let me know and I will make an appropriate post on that page.

I am using the following version: Home Assistant 2023.7.3 Supervisor 2023.07.1 Operating System 10.3 Grott edge edge-5353307094 Growatt Shine LAN-X Home assistant is also running as a VM (incase this matters)

chesterflaps commented 1 year ago

Thanks for that.

did you manage to get PV1 and 2 on the total for the day? I am having the same issue.

this is the code I used for it

 sensor:
    - name: power_solar_total_today
      unique_id: "power_solar_total_today"
      state: "{{ states('sensor.be04070***_generated_energy_today') |int(0) + states('sensor.be04070***_generated_energy_today') |int(0) }}"
      unit_of_measurement: "kWh"
      device_class: energy
      state_class: total_increasing
DanielB0nd commented 1 year ago

this would work, https://pastebin.com/2Xnxq8qU, using the PV1 Generated and PV2 generated from two inverters

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!