-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant get ShineWiFi-X to send data to MQTT on home assistant #45
Comments
Update - managed to get the following in the grott logs, so MQTT must be working. Now to work out why its not displaying as a device/entity
|
So how are you running grott? As a standlone process? You need to remove the 'grott_ha.py' file and completely ignore that. This integration works by consuming the data from MQTT. Have you installed this integration via HACS into Home Assistant? Also - Your message above says:
Which implies that MQTT isn't available for grott to publish to. |
I have installed "Grott - HA extension" and I can see what was posted above in the log file. So the data is making its way into the grott HA extension logfile. Though HACS i have added the repo https://github.com/johanmeijer/grott However my terminal is telling me that docker & pip3 are not found |
I'm sorry but in that scenario I don't think there's anything I can do to help. |
It is installed as per the instructions here: https://github.com/muppet3000/homeassistant-grott See attached screenshots showing that the data is getting into the grott logs, but not showing as a device/entity. What am I doing wrong? Ive tried following all the documentation to the best of my ability. Everything is installed on home assistant on my raspberry pi |
Yeah that explains it. Glad you got it sorted. I think I need to do a better overview of how to set it up with the @egguy addon and my integration working together. |
Thankyou for your support! |
@muppet3000 I'm the maintainer of the extension in grott. The extension was already a part of grott for at least 6+ months, just in a folder called example. I didn't push the change to core until I weeded out the last bug. I do the packaging of the HA addon to make is easier to set up the extension. The big difference with my extension is there is no intelligence, it basically translates the raw JSON to the MQTT sensor format for HA. |
Hi, Well, I'm quite the newby when it comes to Home Assistant internals. I did have the Growatt integration installed, but as that stopped working, I'm now trying the Grott stuff. I've installed Grott into Home Assistant, but thats where I got stuck. How do I know it's "running" in any way? I did configure the data logger to point to the HA machine (which is running 'core' or whatever it's called, boots HA automatically, no real access to all files/config etc), but then nothing showed up in the Growatt app/website anymore. Any points? |
Have you installed grott-edge? |
No idea what that is ;) I tried following the instructions here > https://github.com/muppet3000/homeassistant-grott/ |
https://github.com/egguy/grott-home-assistant-add-on Follow these instructions and get the grott edge service running. Worked a charm for me |
Hi, thank you for pointing me to that. When I tried to install the grott add-on from the store, it returned: Next I tried the edge version, it installed fine. Couldn't get the serial-to-type mapping working with the syntax provider, so instead I entered "sph" in the inverter-type box. Started the add-on, according to the log it's receiving data. After a few minutes, the HA devices displayed the data as well. Thanks @lexo12345 Now I have to figure out how to get these back into the Energy dashboard and in my other cards/charts, as all sensors have changed names. Is it possible to create an alias for a sensor? |
Ahhh, that makes more sense, so this: https://github.com/egguy/grott-home-assistant-add-on is just a friendly packaged version of this: https://github.com/johanmeijer/grott/tree/master/examples/Home%20Assistent ? I definitely think we could work together to improve the documentation around this :) |
That's where my integration, the one that this issue is logged in can help. The edge repo that you're running just pushes data in raw into HA. If you make the following changes when you install it, it'll just push the data to MQTT and then you can use my integration to visualise the data and also create template sensors that re-create your old values (more detail below).
As for retaining all of your old sensors, I wrote an example/template file here that you can use: https://github.com/muppet3000/homeassistant-grott/blob/main/examples/templates/template_configuration.yaml |
Hm, first things first. Not all sensors seem to come through... The inverter has 2 PV strings, I'm receiving data for both for the actual wattage, but the 'energy today' for string 2 stays at 0. |
Yesterday you said all the values were coming through. |
Yes, I did say that -- what I meant was in the log, all data appeared to be forwarded. PV1 (string 1) wattage is taken correctly. PV2 (string 2) wattage as well. In the Energy Dashboard, I had "energy production PV1 today", which seemed to be reset during the night, so that failed. I use "energy product PV1 total" for the stats now, that works. However, "energy production PV2 today" and "energy production Pv2 total" stays at 0. While the current wattage is correct (different sensor). The Growatt dashboard on the Growatt website shows the values correctly, but does not list a separate string 1 and string 2 total. Does this help? PS: I did not create any templates for this yet nor did I install anything else but Mosquito and the edge-Grott (as far as I remember). Using the sensors as they appear from the MQTT thingy. |
Thanks for the detail, so it looks like one of the sensors isn't correct. Please could you share some of your logs from Grott like I showed above, that way I can look at what Grott thinks the values should be and establish if my integration is misinterpreting them. |
I enabled debug logging for the MQTT serivce, here's a snippet: 2023-10-07 22:09:08.033 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/grott/xxx/state (qos=0): b'{"datalogserial": "xxx", "pvserial": "xxx", "pvstatus": 0, "pvpowerin": 0, "pv1voltage": 564, "pv1current": 0, "pv1watt": 0, "pv2voltage": 561, "pv2current": 0, "pv2watt": 0, "pvpowerout": 0, "pvfrequentie": 0, "pvgridvoltage": 2297, "pvgridcurrent": 0, "pvgridpower": 0, "pvgridvoltage2": 0, "pvgridcurrent2": 0, "pvgridpower2": 0, "pvgridvoltage3": 0, "pvgridcurrent3": 259, "pvgridpower3": 2564620288, "totworktime": 9048, "eactoday": 20365, "pvenergytoday": 20365, "eactotal": 35, "epvtotal": 5898240, "epv1today": 52, "epv1total": 11317, "epv2today": 0, "epv2total": 0, "pvtemperature": 252, "pvipmtemperature": 0, "pvboosttemp": 0, "bat_dsp": 241, "eacharge_today": 0, "eacharge_total": 30, "batterytype": 0, "uwsysworkmode": 0, "systemfaultword0": 0, "systemfaultword1": 0, "systemfaultword2": 0, "systemfaultword3": 0, "systemfaultword4": 0, "systemfaultword5": 0, "systemfaultword6": 0, "systemfaultword7": 0, "pdischarge1": 0, "p1charge1": 0, "vbat": 0, "SOC": 0, "pactouserr": 0, "pactousertot": 0, "pactogridr": 0, "pactogridtot": 0, "plocaloadr": 0, "plocaloadtot": 0, "spdspstatus": 0, "spbusvolt": 0, "etouser_tod": 0, "etouser_tot": 0, "etogrid_tod": 0, "etogrid_tot": 0, "edischarge1_tod": 0, "edischarge1_tot": 0, "eharge1_tod": 0, "eharge1_tot": 0, "elocalload_tod": 0, "elocalload_tot": 0, "grott_last_push": "2023-10-07T20:09:08.024539+00:00"}' The "incoming payload" has 0 for the value of the PV2 totals... so apparently, the datalogger doesn't send this data like this and the previous integration (the one that pulled the data from the Growatt server) created this data in another manner? |
@muppet3000 definitely interested in collaborating together to improve the documentation. |
@johanmeijer I've looked through the Growatt data in HA and the epv2 data is incorrect. Could this be a record decoding issue? eactotal: 1 Also, the total energy generated seems to be different from the Growatt Dashboard total pvenergytoday: 20462 // pvenergy-to-day? Dashboard shows 1975.6 total kWh Any clues? |
This isn't the place to log bugs against core grott, you should do that over here: https://github.com/johanmeijer/grott/issues |
Please see grott issue #443 (johanmeijer/grott#443). |
I have Mosquito broker & Grott installed, I have tried setting the IP via wifi hotspot to my home assistant PI's IP address but it kept reverting back to default.
After reading some documentation here: https://github.com/muppet3000/homeassistant-grott/issues/5#issuecomment-1545710398 I noticed that its possible to set via the growatt server. I have set it, but still no data visible on the mosquito log file.
Any idea what I'm doing wrong? Is there a way to check that the datalogger is accepting the IP change after setting via growatt server?
Anything I need to check/any way to be able to test my mosquito MQTT setup?
Any help is much appreciated!
The text was updated successfully, but these errors were encountered: