Open Neflardio opened 9 months ago
I've spent some time trying to figure out what my issue is.
Anyway I've managed to find my SOC value by brute force cutting the growatt plain data at 930. Not sure why my SPH5000 is different from other SPH5000 inverters where the "T05NNNNXSPH" layout specifies that SOC value is at 742. The value at 742 for returns 0 for me.
I now realise that the above log dump was an irrelevant part of the log, so here's a dump of the relevant part:
- Growatt original Data:
\x00\x4e\x00\x05\x02\x19\x50\x04\x09\x33\x2c\x42\x58\x45\x43\x73\x4a\x5b\x39
\x35\x37\x30\x7e\x40\x57\x47\x51\x47\x74\x47\x72\x6f\x77\x61\x76\x74\x47\x72
\x13\x77\x67\x74\x74\x47\x77\x6f\x18\x61\x75\x74\x47\x72\x6e\x77\x0c\x74\x70
\x47\x72\x6f\x73\x61\x75\x36\xe7\x7b\xc6\x70\xb7\x7c\xe9\x47\x72\x6f\x77\x61
\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f
\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x79\x51\x54
\xf9\x66\x0e\x61\x66\x74\x47\x7f\x78\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74
\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\xbd\x72\x6b\xf8
\x94\x78\xb8\xfb\x32\x6f\x77\x61\xcd\x74\x45\x09\xaa\x77\x61\x74\xc8\x47\x70
\xe1\xdd\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74
\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61
\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x64\x7e\x1b\x47\x93\x6f
\xa3\x61\xb9\x74\x47\x70\x79\x78\x59\x7b\x21\x47\x72\x6f\x77\x61\x74\x74\x47
\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74
\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x60\x74\x74\x47\x72\x6f\x77
\x61\x74\x74\x47\x71\x87\x73\x05\x74\x72\x47\x72\x6f\x77\x61\x74\x74\x47\x72
\x4f\x77\x61\x74\x74\x47\x72\x6f\x77\x73\x5b\x74\x47\x72\x6f\x75\x73\x74\x2a
\x47\x72\x6e\x3c\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x46\x39\x6f\x77\x61
\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x65\xfb\x72\x6f
\x77\x61\x74\x74\x47\x72\x6f\x77\x70\xc8\x74\x47\x72\xd0\x77\x67\x7f\xc7\x05
\x1a\x6f\x77\x61\x5e\x74\x46\x03\xc5\x77\x61\x74\xbe\x47\x70\x75\xfa\x61\x74
\x74\x56\x72\x6e\xf1\x00\x74\x74\x47\x04\x6f\x76\xe3\x21\x74\x47\x72\x5f\x77
\x6d\x63\xbb\x47\x72\x46\xf0\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72
\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x74\x47\x72\x6f\x77\x61\x74\x77
\xaf\x72\x6f\x76\x02\x74\x74\x47\x72\x6f\x29\x75\xc0\x89\x61\x72\x7c\x45\x61
\x2e\xb0\x1e\x38\x6f\x31\x61\x76\x77\x1d\x72\x0b\x61\x51\x74\x74\x47\x72\x6f
\x77\x61\x32\x74\x47\x72\x6f\x77\x61\x35\x24\x06\x22\x6f\x77\x6d\x84\x78\xb7
\x7e\x9e\x7b\x90\x78\x84\x4b\x83\x63\x87\x6d\x85\x78\xb6\x7e\x9e\x7b\x90\x78
\x84\x4b\x83\x63\x86\x6d\x84\x78\xb6\x72\x6f\x65\x6a
- Grott automatic protocol detection
- Grott data record length 545
- layout : T055004XSPH
- no matching record layout found, try generic
- Record layout used : T05NNNNXSPH
- Growatt data decrypted V2
- Grott Growatt data decrypted
- Growatt plain data:
004e0005021950044e4143353931373438344e544344393238303033000000000000020000007
c000600000005006f000100000001006d000400000004000142a009a907d6089d000000000000
000000000000000000000000000000000000000000000000000000000000000000000d25138b0
979001200000d1700000000000000000000000000000000000000000000000000fa00048ff50c
ccbc40000000b900027bc5000000bc00028eaa000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000050a6f00e100d400cd
000002160f380f550000000000000000000000000000000000000000000000000000000000000
00000000000000000010000000000000000000003e80464000600000000000000000020000000
0000000000122f000000000212005e0000014b00000000000000000000014b000000000000000
00000000000000000000011bc0000000000000000000011bc000000bf00060bb342680000002a
000171aa000000ca00021a8d0000001100018661000000760001825500000030000c17cf00002
98700000000000000000000000000000000000000000000000000000000000003e80000016300
000000005e14b4fd26001332005ac4594a00460002035a0064163000000000000000460000000
000004150415000000cf00cf00cf10cf10cf00cf10cf00cf10cf10cf10cf10cf00cf10cf10cf0
0cf10000120b
- Growatt new layout processing
- decrypt : True
- offset : 6
- record layout : T05NNNNXSPH
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.
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}}