johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
395 stars 109 forks source link

SPH no export to grid values #321

Open BarmanMaz opened 1 year ago

BarmanMaz commented 1 year ago

Hello , I have just installed the grott integration ( wonderfull job) , I'm using the add-on for ha, so the extension are buil-in into grott_ha.py.

My intallation is with two SPH 8000 inverter and one shine master via LAN

All fine except for some sensors data still report zeros -> Export to grid power and energy.

immagine

immagine

The add-on is working fine, I can see the value updated to growatt web page, where i can also found the return to grid, but on my sensor nothing, still zero's.

immagine

Can someone please give me an hints to how solve it?

Many thanks

BarmanMaz commented 1 year ago

Hi All, I have done more research today. this is what i got:

I found this: "pactogridr": 0, ( power to grid) is zero even if growat web display this

immagine

also, "pactouserr": 0, ( power to user/home) even if i have load at home.

what i'm doing wrong? please help me Many thanks Roberto

johanmeijer commented 1 year ago

Do you the hex record information (growatt original data) for me. Lets see if the information is in the record.

BarmanMaz commented 1 year ago

Thanks for the reply, I'm a newbie, how i can dump the hex? don't know how to. KR

BarmanMaz commented 1 year ago

Hi, Following the hex infos.

I Have another question: why i have this " - Data less then minimum record length, data not processed "

Many thaks for the help

johanmeijer commented 1 year ago

Yes that is the type of information I need, but .....

You send me the information of a SDM630 meter I think. Also interesting, especially why is Grott not processing this one. I like to know your datalogger type (shinewifi, shinelan, shinelink, 4g) while that is also a new one for me (at least number in the record).

What I also need is the information you sent but then with a record that is processed by grott (with decoded mqtt information)

johanmeijer commented 1 year ago

If I proces the record you sent as a SDM630, I see this information:

{"device": "SDM630", "time": "2023-04-03T20:33:17", "buffered": "no", "values": {"datalogserial": "DXD6BJ300P", "active_energy": "28824.68", "reactive_energy": "8513.68", "activePowerL1": "674.2", "activePowerL2": "-441.5", "activePowerL3": "-280.9", "reactivePowerL1": "-153.0", "reactivePowerL2": "-144.3", "reactivePowerL3": "-209.7", "apperentPowerL1": "690.0", "apperentPowerL2": "463.6", "apperentPowerL3": "348.5", "powerFactorL1": "0.9", "powerFactorL2": "-0.9", "powerFactorL3": "-0.7", "voltageL1": "229.3", "voltageL2": "230.9", "voltageL3": "229.7", "currentL1": "3.1", "currentL2": "2.1", "currentL3": "1.8", "power": "-48.9", "active_power": 0, "reverse_active_power": "-48.9", "apparent_power": "509.4", "reactive_power": "-507.0", "power_factor": "-0.0", "frequency": "49.9", "posiActivePower": "21627.0", "reverActivePower": "7197.6", "posiReactivePower": "3637.4", "reverReactivePower": "4876.2", "apparentEnergy": "30055.7", "totalActiveEnergyL1": "3478.7", "totalActiveEnergyL2": "2542.4", "totalActiveEnergyL3": "2492.5", "totalRectiveEnergyL1": "0.0", "totalRectiveEnergyL2": "0.0", "totalRectiveEnergyL3": "0.0", "total_energy": "37338.37", "l1Voltage2": "399.6", "l2Voltage3": "398.4", "l3Voltage1": "399.1", "device": "SDM630"}}

I am not sure if that is in line with what you expect.

I also do not know if this information should be in the SPH record, but lets see what in it if you send me the record.

BarmanMaz commented 1 year ago

Thanks a lot for the support. I'm struggling to have the entire logs, hex plus + parsing datas. I'm using the grott add-on in my hassio HA, there is a way to export the complete log into a file? Can you please tell me how? The data i posted i git it from the log page on HA, don't understand why they look wrong. I have two sph8000 hybrid inverters, 2 battery pack and a Smart Energy Manager SEM-E via LAN (https://www.ginverter.com/products/sem-sem-e-sem-d) What basically is missing are all the value in the sensors related to the grid, import/export. Thanks again. Rob

BarmanMaz commented 1 year ago

Hi,

This is the data logger:

immagine

immagine

The inverter are :

immagine

This is the logs:

grott-log.txt

thanks again for the support really appreciate. Rob

johanmeijer commented 1 year ago

You have a nice configuration ;)

If you have only 1 sph the import / export values are provided in the SPH record (and I think also processed by the HA add on). In your configuration I think growatt (the datalogger in your case the shine master( does not sent the export / import values with the SPH record but with the SDM630 records. Seems logical to me.

Grott can handle these SDM630 but is not able to do this with the shinemaster at this moment. I will change that, that is no a big change but I need some time (little bit busy at work). At the end you will then receive 3 mqtt records 1 for each sph and 1 for the SDM630. We have to see how and of the HA add on can handle this. We need the creater of the add on for this I think.

But first thing first you need the SDM630 record to get the information you need.

BarmanMaz commented 1 year ago

Hi Johan, Thanks, I was awaiting your answer, as, for me, you did the best and clever solution to integrate grovatt into HA. I will wait your update, what about the logs? Do you need more of it? Do you have a "buy me a coffe" link? Thanks

johanmeijer commented 1 year ago

Can you please put the layout file t06221b.json form the examples library in your grott main directory?

See: https://github.com/johanmeijer/grott/blob/Beta-(2.8.x)/examples/Record%20Layout/T06221b.json

If everything works right this will process your SDM630 records and generate MQTT messages for this. Can you very form the log if this what you expected.

I think we have to do some additional work to get this information in HA with the plugin/extension. @egguy can you please help with this?

If you want to buy a coffee the link is at the readme or use this one: https://www.paypal.com/donate?business=RQFS46F9JTESQ&item_name=Grott+&currency_code=EUR

BarmanMaz commented 1 year ago

Hi Johan, thanks, grott main directory you mean the docker ones or the grott directory where grott.ini is located?

johanmeijer commented 1 year ago

Ah docker. Can you put things in your docker container directory your self (or put in a reference to a file outside in the run command?).

I can also create a new image, but that will take a couple of days,

BarmanMaz commented 1 year ago

I "work" all the day starting to fork egguy add-on merging your 2.8.x beta release, beeing able to make "my own add-on" with your new layout profile, just loaded. Stay tuned i'll post the result. Thanks

BarmanMaz commented 1 year ago

Hi Johan, here I am. please see the attached log made with the egguy add-on build with your latest beta 2.8.x , it seems nothing changed. Please let me know if i can do somethings. Many thanks grott log 2.txt

egguy commented 1 year ago

Hello, The extension should handle multiples inverters + the SDM.

The extension works like this: flowchart

The JSON I add to the JSON the last push date to help tracking if the intervention work

As for the SDM630, I didn't fully map the measures to the units. So, it's still treated as text values in HA.

BarmanMaz commented 1 year ago

Hello, thanks a lot for the clear explanation, will you be able to generate a new version with this improvement into?

immagine This is my MQTT grott Devices, should I have to found also the SDM630? Many thanks

BarmanMaz commented 1 year ago

Hello, sorry for pushing, do you have any news of this task? Many thanks