egguy / addon-grott

A HA addon for grott
6 stars 3 forks source link

Missing Values on MOD 7000TL3-XH with Battery #85

Open schlidda83 opened 2 months ago

schlidda83 commented 2 months ago

Hi @egguy

i´ve already created issues with Johann and Chris. Seems both are unable to help. here: https://github.com/johanmeijer/grott/issues/587 and https://github.com/muppet3000/homeassistant-grott/issues/98#issuecomment-2333318576

No Matter what i do enter in the config... i do not get the battrery values unless i enter "MIN" but that is obviously wrong as i have a MOD one.

at the moment i have this set up I have not entered the Serial of the inverter because i will only receive wrong values then image

therefore the log is saying `

`

System HomeAssistant on a Synology as docker grott via HACS grott custom components from muppet (https://github.com/muppet3000/homeassistant-grott)

do you need any more info?

typxxi commented 2 months ago

even though I think that I had read somewhere that the parameters for the inverter mapping should be uppercase I suggest to give "tl-3" a try and then to setup a real grott installation in parallel on a pi 3 or what soever.

You then have to reconfigure the datalogger stick to the ip of the pi 3 with grott (Pi OS) And then you should be able to get the sensor data from that machine and we would need to compare the logs if the behaviour is still the same or not.

I am expecting the same behaviour cause afaik egguy is not dealing with the decoding template or however they are called. He is simply converting GROTT into an HA Addon and he is not developing his own templates.

If you can show that the grott installation would behave the same then it would be Johans job to look a bit closer. RIght now the ball has been played to egguy but I guess you would get a faster solution with a basic GROTT setup cause then Johan would support you.

VM or another PC or a small pi is enough to run grott, even Pi 2 should be capable if I remember right my beginnings with grott a year ago.

typxxi commented 2 months ago

I have called a friend of mine who has had such issues last year before the next grott stable release had been released and when a lot of templates were missing like min 4600 or so.

He said that he got that running with a grott setup from scratch on an old Pi 2 or so. Back then he had been guided by Johan Meier and everything was fine within hours or so. Many months later and when I had already migrated to HA he finally migrated to egguys AddOn too in may or june.

egguy commented 2 months ago

I will generate a new build with the new JSON layout. I will keep you updated.

Sorry for the delayed response I'm in vacation

typxxi commented 2 months ago

Thanks and enjoy the holidays - as we can offer rain and sunshine, wind, clouds and temps from 15 to 30° changing from day to day.

typxxi commented 2 months ago

Could you let us more about what went wrong or why it is different (or the same) compared to grott standalone ?

What does new json layout mean, a developement by you or simply upgrading what JOhan had called a template or so ?

thanks

egguy commented 2 months ago

The difference is mostly a size optimisation, there is no difference between the code of grott standalone and the addon version.

I was only copying the original source code without the extra in the container to make it smaller (the .py files).

Grott has the ability to load extra inverter layout (mapping of content of packet to values) from JSON files, but I wasn't including it as my assumption all the layouts were already included in the python code.

Some inverters now, like the MOD, are supported by layout defined in the JSON files, e.g https://github.com/johanmeijer/grott/commit/3fa7ef970a48d29d477898d4a6041c9e948eda40

I just need to include the file during the build process

schlidda83 commented 2 months ago

alright, thanks @egguy please let us know when we can test it :)

typxxi commented 2 months ago

Grott has the ability to load extra inverter layout (mapping of content of packet to values) from JSON files, but I wasn't including it as my assumption all the layouts were already included in the python code.

Some inverters now, like the MOD, are supported by layout defined in the JSON files, e.g johanmeijer/grott@3fa7ef9

ah, and that was a very long ahhhhhh that I can understand the mystery which also could have been found out by setting up - as I had recommanded - a dedicated pi grott server to solve the question if that is caused by grott or grott ha addon.

Thanks a lot for solving and explaining the details. I have not yet read johan meiers layout defined json files topic but I guess it becomes more important and could be good to know as I have so many and also different models, just got another SPH4000 and SPH 4600, both used for a few months.

Thanks

typxxi commented 2 months ago

Some inverters now, like the MOD, are supported by layout defined in the JSON files, e.g johanmeijer/grott@3fa7ef9

I just need to include the file during the build process

OK, I have looked for the file , which was in the root directory for whatever reason, while a lot of others can be found here under examples and then Record Layout

I assume that these "inverter model layout" config files listed here are required by grott and that the missing MOD file or maybe the latest version of the MOD file was missing.

I do not have that mod or TL3 inverter, but for sure good to know how things work together cause I had seen different of these layouts in the log which can look very different in the look based on the functioniality of the inverter.

Let me know if I am wrong - and yes , I have not forgotten to help you in 2025 with the documentation parts. That's why I am asking cause still grott can be a big guess work at least for me for example when I had lost one inverter after the other in the past 3 weeks simply due to maintenance during daylight which then "calls the Growatt Cloud back into action" and overwrote my IP adresses again, but only 1 inverter at a time, not all or just some. So far I had only seen that I lost 1 after reboot and usually a different one than before, therefore my assumptions that the growatt cloud empire strikes back. Screenshot of the other layour records.

image

Final question: where is grott addon HA stored on a HA OS system ? I can not find the grott.ini file or the one that is used cause those I had found were grott.ini with a size of 0 They were empty. But I did not find anything , no grott directory with files.

egguy commented 1 month ago

Hi @schlidda83 I have finally released the add-on with layout on the edge branch: https://github.com/egguy/ha-addons-edge/

You can add the edge repository, stop the stable release, copy your config over to test, and start the edge version.

In case of success, you should see in the log the mention of :

If you could confirm me everything is working as intented. I will promote this to the stable release

egguy commented 1 month ago

Final question: where is grott addon HA stored on a HA OS system ?

If i'm not mistaken, the add-on run in its container. You don't have direct access. I think you can have a better overview by using the portainer add-on

The docker container then mount a custom folder : https://developers.home-assistant.io/docs/add-ons/configuration#add-on-configuration to store the addon configuration. This is where I store the grott.ini (empty by default) you can modify.

I assume that these "inverter model layout" config files listed here are required by grott and that the missing MOD file or maybe the latest version of the MOD file was missing.

Yes and not. Some layouts are defined in the code (like the TL3, see grottconf.py: https://github.com/johanmeijer/grott/blob/Master/grottconf.py#L1007) so they are already included. Other like the MOD are not defined in the code, they are loaded from the JSON files at the start if they are present in the current directy where grott run.

schlidda83 commented 1 month ago

@egguy first thanks for your support! It seems to be working,

what is missing: State of charge Export to grid today

Log: `- Grott MQTT topic used : energy/growatt

log2 ` - ibb : 3.0

image image

image

image

is the config good enough?

egguy commented 1 month ago

The config should be good enough.

One weird thing is the packet you show as an example is shorter than expected, this makes grott use the generic layout instead of the specific one. The returned value seems to make sense.

github-actions[bot] commented 3 weeks 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!

schlidda83 commented 3 weeks ago

Hi @egguy i have seen that the standard growatt server addon is receiving a lot of more information. how can that be?

egguy commented 2 weeks ago

Hi @schlidda83, what is the do you mean by the growatt server add-on?

I need to take a look if the MOD series is not part of the new beta branch of grott. This could explain why it is only giving a limited set of informations.

schlidda83 commented 2 weeks ago

Hi @egguy

https://www.home-assistant.io/integrations/growatt_server

it is the "official plugin" which provides data from the inverter approx every 15min.

image

image

image