egguy / grott-home-assistant-add-on

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

SOC sensor always at 0% - SPH5000 #55

Closed Neflardio closed 12 months ago

Neflardio commented 1 year ago

Please see below for mqtt message showing SOC at 0% and the associated growatt original data

edit: I now realise that I posted the wrong data from the log.

image

MQTT jsonmsg: {"device": "NTCDXXXXXX", "time": "2023-10-01T21:22:50", "buffered": "no", "values": {"datalogserial": "NACXXXXXX", "pvserial": "NTCDXXXXXX", "pvstatus": 6, "pvpowerin": 5, "pv1voltage": 118, "pv1current": 1, "pv1watt": 1, "pv2voltage": 112, "pv2current": 4, "pv2watt": 4, "pvpowerout": 3369, "pvfrequentie": 5005, "pvgridvoltage": 2416, "pvgridcurrent": 18, "pvgridpower": 3276, "pvgridvoltage2": 0, "pvgridcurrent2": 0, "pvgridpower2": 0, "pvgridvoltage3": 0, "pvgridcurrent3": 0, "pvgridpower3": 0, "totworktime": 213893653, "eactoday": 319, "pvenergytoday": 319, "eactotal": 297748, "epvtotal": 328977, "epv1today": 182, "epv1total": 162078, "epv2today": 182, "epv2total": 166899, "pvtemperature": 261, "pvipmtemperature": 250, "pvboosttemp": 243, "bat_dsp": 534, "eacharge_today": 0, "eacharge_total": 0, "batterytype": 1, "uwsysworkmode": 6, "systemfaultword0": 0, "systemfaultword1": 0, "systemfaultword2": 1536, "systemfaultword3": 0, "systemfaultword4": 32, "systemfaultword5": 0, "systemfaultword6": 0, "systemfaultword7": 0, "pdischarge1": 4870, "p1charge1": 0, "vbat": 5646, "SOC": 0, "pactouserr": 14090246, "pactousertot": 1447, "pactogridr": 0, "pactogridtot": 0, "plocaloadr": 5646, "plocaloadtot": 5646, "spdspstatus": 6, "spbusvolt": 2995, "etouser_tod": 11, "etouser_tot": 94426, "etogrid_tod": 247, "etogrid_tot": 137165, "edischarge1_tod": 48, "edischarge1_tot": 99584, "eharge1_tod": 63, "eharge1_tot": 98561, "elocalload_tod": 75, "elocalload_tot": 789566}}

 - Growatt original Data:
     \x00\xdf\x00\x05\x00\x99\x50\x29\x09\x33\x2c\x42\x58\x45\x43\x73\x4a\x5b\x3a
     \x38\x37\x43\x7e\x43\x58\x43\x59\x40\x3a\x13\x31\x2b\x4e\x53\x4c\x44\x77\x41
     \x62\xda\x61\x70\x74\x46\x43\x6f\x72\x61\x75\x45\x47\x74\x6f\x75\x52\x46\x74
     \x4f\x72\x65\x3a\x38\x37\x43\x7e\x43\x58\x43\x59\x40\x74\x4e\x72\x6e\x47\x61
     \x7e\x74\x46\x42\x6f\x7a\x61\x76\x45\x77\x72\x7b\x77\x69\x33\x20\x14\x25\x5f
     \x47\x51\x44\x74\x52\x72\x68\x46\x4f\x44\x5a\x76\x5c\x5a\x77\x77\x74\x70\x11
     \x43\x41\x47\x61\x6f\x74\x46\x44\x6f\x6b\x61\x75\x44\x47\x6c\x6f\x72\x26\x39
     \x20\x6c\x4a\x6f\x68\x61\x67\x46\x77\x40\x5c\x5a\x50\x44\x59\x77\x43\x4f\x45
     \x50\x4e\x46\x75\x48\x5c\x4f\x00\x43
 - Grott automatic protocol detection
 - Grott data record length 161
 - layout   :  T055029SPH
 - no matching record layout found, try generic
 - Record layout used :  T055029SPH
 - Growatt data decrypted V2
 - Grott Growatt data decrypted
 - Growatt plain data:
     00df0005009950294e4143353931373438344d5943373931373438344e5443443932383030330
     dad000400013100050001310006000233320008000a4d5943373931373438340009000130000a
     000130000d0002313000140008475453573030303000150007312e302e312e350016000456312
     e30001b000136001c000130001e0005474d542b38001f0013323032332d31302d30312032313a
     32323a33386137
Neflardio commented 12 months ago

Turns out the layout that is used by my inverter reads SOC from the wrong part of the data string. Nothing to do with this addon. Closing issue