egguy / grott-home-assistant-add-on

Grott Home Assistant add-on - Native MQTT plugin
31 stars 10 forks source link

fails when trying to make it local #6

Closed chirs-51 closed 1 year ago

chirs-51 commented 1 year ago

config gmode: proxy gnomqtt: true ginvtype: default ginvtypemap: "" mqtt: {}

log

Grott proxy mode started


 - Grott - libscrc not installed, no CRC checking only record validation on length!
 **********************************************************************************
self.server.bind((conf.grottip, conf.grottport))

TypeError: 'str' object cannot be interpreted as an integer s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

i think maybe i need libscrc installed but how? :)

egguy commented 1 year ago

Hello, libscrc isn't required at all in proxy mode.

Do you never receive any packet? Or the add-on stop immediately?

chirs-51 commented 1 year ago

sorry my settings in the first massagede is wrong trying to make the local sever run so i can send recuest from home assistant to automate it :)

its stops emedely but its sems like its gets a packet :/ just tried to run the new update and its the same

if using defult setting and its start and runs but with the massagede


 - Grott - libscrc not installed, no CRC checking only record validation on length!

all i can copy from log when i try to start with local ip

settings gmode: proxy gnomqtt: true ginvtype: default ginvtypemap: "" mqtt: {} ggrottport: 1883 ggrottip: 192.168.1.192

{'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'incl': 'yes'}, 'pvserial': {'value': 76, 'length': 10, 'type': 'text'}, 'date': {'value': 136, 'divide': 10}, 'recortype1': {'value': 150, 'length': 2, 'type': 'num', 'incl': 'no'}, 'recortype2': {'value': 154, 'length': 2, 'type': 'num', 'incl': 'no'}, 'pvstatus': {'value': 158, 'length': 2, 'type': 'num'}, 'pvpowerin': {'value': 162, 'length': 4, 'type': 'num', 'divide': 10}, 'pv1voltage': {'value': 170, 'length': 2, 'type': 'num', 'divide': 10}, 'pv1current': {'value': 174, 'length': 2, 'type': 'num', 'divide': 10}, 'pv1watt': {'value': 178, 'length': 4, 'type': 'num', 'divide': 10}, 'pv2voltage': {'value': 186, 'length': 2, 'type': 'num', 'divide': 10}, 'pv2current': {'value': 190, 'length': 2, 'type': 'num', 'divide': 10}, 'pv2watt': {'value': 194, 'length': 4, 'type': 'num', 'divide': 10}, 'pvpowerout': {'value': 298, 'length': 4, 'type': 'numx', 'divide': 10}, 'pvfrequentie': {'value': 306, 'length': 2, 'type': 'num', 'divide': 100}, 'pvgridvoltage': {'value': 310, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent': {'value': 314, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower': {'value': 318, 'length': 4, 'type': 'num', 'divide': 10}, 'pvgridvoltage2': {'value': 326, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent2': {'value': 330, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower2': {'value': 334, 'length': 4, 'type': 'num', 'divide': 10}, 'pvgridvoltage3': {'value': 342, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent3': {'value': 346, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower3': {'value': 350, 'length': 4, 'type': 'num', 'divide': 10}, 'totworktime': {'value': 386, 'length': 4, 'type': 'num', 'divide': 7200}, 'eactoday': {'value': 370, 'length': 4, 'type': 'num', 'divide': 10}, 'pvenergytoday': {'value': 370, 'length': 4, 'type': 'num', 'divide': 10}, 'eactotal': {'value': 378, 'length': 4, 'type': 'num', 'divide': 10}, 'epvtotal': {'value': 522, 'length': 4, 'type': 'num', 'divide': 10}, 'epv1today': {'value': 394, 'length': 4, 'type': 'num', 'divide': 10}, 'epv1total': {'value': 402, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2today': {'value': 410, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2total': {'value': 418, 'length': 4, 'type': 'num', 'divide': 10}, 'pvtemperature': {'value': 530, 'length': 2, 'type': 'num', 'divide': 10}, 'pvipmtemperature': {'value': 534, 'length': 2, 'type': 'num', 'divide': 10}, 'pvboosttemp': {'value': 538, 'length': 2, 'type': 'num', 'divide': 10}, 'bat_dsp': {'value': 546, 'length': 2, 'type': 'num', 'divide': 10}, 'pbusvolt': {'value': 550, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#nbusvolt': {'value': 554, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#ipf': {'value': 558, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#realoppercent': {'value': 562, 'length': 2, 'type': 'num', 'divide': 100, 'incl': 'no'}, '#opfullwatt': {'value': 566, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#deratingmode': {'value': 574, 'length': 2, 'type': 'num', 'divide': 1, 'incl': 'no'}, 'eacharge_today': {'value': 606, 'length': 4, 'type': 'num', 'divide': 10}, 'eacharge_total': {'value': 614, 'length': 4, 'type': 'num', 'divide': 10}, 'batterytype': {'value': 634, 'length': 2, 'type': 'num', 'divide': 1}, 'uwsysworkmode': {'value': 666, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword0': {'value': 670, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword1': {'value': 674, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword2': {'value': 678, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword3': {'value': 682, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword4': {'value': 686, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword5': {'value': 690, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword6': {'value': 694, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword7': {'value': 698, 'length': 2, 'type': 'num', 'divide': 1}, 'pdischarge1': {'value': 702, 'length': 4, 'type': 'num', 'divide': 10}, 'p1charge1': {'value': 710, 'length': 4, 'type': 'num', 'divide': 10}, 'vbat': {'value': 718, 'length': 2, 'type': 'num', 'divide': 10}, 'SOC': {'value': 722, 'length': 2, 'type': 'num', 'divide': 100}, 'pactouserr': {'value': 726, 'length': 4, 'type': 'num', 'divide': 10}, '#pactousers': {'value': 734, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#pactousert': {'value': 742, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pactousertot': {'value': 750, 'length': 4, 'type': 'num', 'divide': 10}, 'pactogridr': {'value': 758, 'length': 4, 'type': 'num', 'divide': 10}, '#pactogrids': {'value': 766, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#pactogridt': {'value': 774, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pactogridtot': {'value': 782, 'length': 4, 'type': 'num', 'divide': 10}, 'plocaloadr': {'value': 790, 'length': 4, 'type': 'num', 'divide': 10}, '#plocaloads': {'value': 798, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#plocaloadt': {'value': 806, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'plocaloadtot': {'value': 814, 'length': 4, 'type': 'num', 'divide': 10}, '#ipm': {'value': 822, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#battemp': {'value': 826, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'spdspstatus': {'value': 830, 'length': 2, 'type': 'num', 'divide': 10}, 'spbusvolt': {'value': 834, 'length': 2, 'type': 'num', 'divide': 10}, 'etouser_tod': {'value': 842, 'length': 4, 'type': 'num', 'divide': 10}, 'etouser_tot': {'value': 850, 'length': 4, 'type': 'num', 'divide': 10}, 'etogrid_tod': {'value': 858, 'length': 4, 'type': 'num', 'divide': 10}, 'etogrid_tot': {'value': 866, 'length': 4, 'type': 'num', 'divide': 10}, 'edischarge1_tod': {'value': 874, 'length': 4, 'type': 'num', 'divide': 10}, 'edischarge1_tot': {'value': 882, 'length': 4, 'type': 'num', 'divide': 10}, 'eharge1_tod': {'value': 890, 'length': 4, 'type': 'num', 'divide': 10}, 'eharge1_tot': {'value': 898, 'length': 4, 'type': 'num', 'divide': 10}, 'elocalload_tod': {'value': 906, 'length': 4, 'type': 'num', 'divide': 10}, 'elocalload_tot': {'value': 914, 'length': 4, 'type': 'num', 'divide': 10}} T05NNNNSPF : {'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'divide': 10, 'incl': 'yes'}, 'pvserial': {'value': 36, 'length': 10, 'type': 'text'}, 'date': {'value': 56, 'divide': 10}, 'recortype1': {'value': 70, 'length': 2, 'type': 'num', 'incl': 'no'}, 'recortype2': {'value': 74, 'length': 2, 'type': 'num', 'incl': 'no'}, 'pvstatus': {'value': 78, 'length': 2, 'type': 'num'}, 'vpv1': {'value': 82, 'length': 2, 'type': 'num', 'divide': 10}, 'vpv2': {'value': 86, 'length': 2, 'type': 'num', 'divide': 10}, 'ppv1': {'value': 90, 'length': 4, 'type': 'num', 'divide': 10}, 'ppv2': {'value': 98, 'length': 4, 'type': 'num', 'divide': 10}, 'buck1curr': {'value': 106, 'length': 2, 'type': 'num', 'divide': 10}, 'buck2curr': {'value': 110, 'length': 2, 'type': 'num', 'divide': 10}, 'op_watt': {'value': 114, 'length': 4, 'type': 'num', 'divide': 10}, 'pvpowerout': {'value': 114, 'length': 4, 'type': 'num', 'divide': 10}, 'op_va': {'value': 122, 'length': 4, 'type': 'num', 'divide': 10}, 'acchr_watt': {'value': 130, 'length': 4, 'type': 'num', 'divide': 10}, 'acchr_VA': {'value': 138, 'length': 4, 'type': 'num', 'divide': 10}, 'bat_Volt': {'value': 146, 'length': 2, 'type': 'num', 'divide': 100}, 'batterySoc': {'value': 150, 'length': 2, 'type': 'num', 'divide': 1}, 'bus_volt': {'value': 154, 'length': 2, 'type': 'num', 'divide': 10}, 'grid_volt': {'value': 158, 'length': 2, 'type': 'num', 'divide': 10}, 'line_freq': {'value': 162, 'length': 2, 'type': 'num', 'divide': 100}, 'outputvolt': {'value': 166, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridvoltage': {'value': 166, 'length': 2, 'type': 'num', 'divide': 10}, 'outputfreq': {'value': 170, 'length': 2, 'type': 'num', 'divide': 100}, 'invtemp': {'value': 178, 'length': 2, 'type': 'num', 'divide': 10}, 'dcdctemp': {'value': 182, 'length': 2, 'type': 'num', 'divide': 10}, 'loadpercent': {'value': 186, 'length': 2, 'type': 'num', 'divide': 10}, 'buck1_ntc': {'value': 206, 'length': 2, 'type': 'num', 'divide': 10}, 'buck2_ntc': {'value': 210, 'length': 2, 'type': 'num', 'divide': 10}, 'OP_Curr': {'value': 214, 'length': 2, 'type': 'num', 'divide': 10}, 'Inv_Curr': {'value': 218, 'length': 2, 'type': 'num', 'divide': 10}, 'AC_InWatt': {'value': 222, 'length': 4, 'type': 'num', 'divide': 10}, 'AC_InVA': {'value': 230, 'length': 4, 'type': 'num', 'divide': 10}, 'faultBit': {'value': 238, 'length': 2, 'type': 'num', 'divide': 1}, 'warningBit': {'value': 242, 'length': 2, 'type': 'num', 'divide': 1}, 'faultValue': {'value': 246, 'length': 2, 'type': 'num', 'divide': 1}, 'warningValue': {'value': 250, 'length': 2, 'type': 'num', 'divide': 1}, 'constantPowerOK': {'value': 266, 'length': 2, 'type': 'num', 'divide': 1}, 'epv1tod': {'value': 270, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'epv1tot': {'value': 278, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'epvToday': {'value': 278, 'length': 4, 'type': 'num', 'divide': 10}, 'pvenergytoday': {'value': 278, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2tod': {'value': 286, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'epvTotal': {'value': 286, 'length': 4, 'type': 'num', 'divide': 10}, 'pvenergytotal': {'value': 286, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2tot': {'value': 294, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'eacCharToday': {'value': 310, 'length': 4, 'type': 'num', 'divide': 10}, 'eacCharTotal': {'value': 318, 'length': 4, 'type': 'num', 'divide': 10}, 'ebatDischarToday': {'value': 326, 'length': 4, 'type': 'num', 'divide': 10}, 'ebatDischarTotal': {'value': 334, 'length': 4, 'type': 'num', 'divide': 10}, 'eacDischarToday': {'value': 342, 'length': 4, 'type': 'num', 'divide': 10}, 'eacDischarTotal': {'value': 350, 'length': 4, 'type': 'num', 'divide': 10}, 'ACCharCurr': {'value': 358, 'length': 2, 'type': 'num', 'divide': 10}, 'ACDischarWatt': {'value': 362, 'length': 4, 'type': 'num', 'divide': 10}, 'ACDischarVA': {'value': 370, 'length': 4, 'type': 'num', 'divide': 10}, 'BatDischarWatt': {'value': 378, 'length': 4, 'type': 'num', 'divide': 10}, 'BatDischarVA': {'value': 386, 'length': 4, 'type': 'num', 'divide': 10}, 'BatWatt': {'value': 394, 'length': 4, 'type': 'numx', 'divide': 10}} T06NNNNSPF : {'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'incl': 'yes'}, 'pvserial': {'value': 76, 'length': 10, 'type': 'text'}, 'date': {'value': 136, 'divide': 10}, 'recortype1': {'value': 150, 'length': 2, 'type': 'num', 'incl': 'no'}, 'recortype2': {'value': 154, 'length': 2, 'type': 'num', 'incl': 'no'}, 'pvstatus': {'value': 158, 'length': 2, 'type': 'num'}, 'vpv1': {'value': 162, 'length': 2, 'type': 'num', 'divide': 10}, 'vpv2': {'value': 166, 'length': 2, 'type': 'num', 'divide': 10}, 'ppv1': {'value': 170, 'length': 4, 'type': 'num', 'divide': 10}, 'ppv2': {'value': 178, 'length': 4, 'type': 'num', 'divide': 10}, 'buck1curr': {'value': 186, 'length': 2, 'type': 'num', 'divide': 10}, 'buck2curr': {'value': 190, 'length': 2, 'type': 'num', 'divide': 10}, 'op_watt': {'value': 194, 'length': 4, 'type': 'num', 'divide': 10}, 'pvpowerout': {'value': 194, 'length': 4, 'type': 'num', 'divide': 10}, 'op_va': {'value': 204, 'length': 4, 'type': 'num', 'divide': 10}, 'acchr_watt': {'value': 210, 'length': 4, 'type': 'num', 'divide': 10}, 'acchr_VA': {'value': 218, 'length': 4, 'type': 'num', 'divide': 10}, 'bat_Volt': {'value': 226, 'length': 2, 'type': 'num', 'divide': 100}, 'batterySoc': {'value': 230, 'length': 2, 'type': 'num', 'divide': 1}, 'bus_volt': {'value': 234, 'length': 2, 'type': 'num', 'divide': 10}, 'grid_volt': {'value': 238, 'length': 2, 'type': 'num', 'divide': 10}, 'line_freq': {'value': 242, 'length': 2, 'type': 'num', 'divide': 100}, 'outputvolt': {'value': 246, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridvoltage': {'value': 246, 'length': 2, 'type': 'num', 'divide': 10}, 'outputfreq': {'value': 250, 'length': 2, 'type': 'num', 'divide': 100}, 'invtemp': {'value': 258, 'length': 2, 'type': 'num', 'divide': 10}, 'dcdctemp': {'value': 262, 'length': 2, 'type': 'num', 'divide': 10}, 'loadpercent': {'value': 266, 'length': 2, 'type': 'num', 'divide': 10}, 'buck1_ntc': {'value': 286, 'length': 2, 'type': 'num', 'divide': 10}, 'buck2_ntc': {'value': 290, 'length': 2, 'type': 'num', 'divide': 10}, 'OP_Curr': {'value': 294, 'length': 2, 'type': 'num', 'divide': 10}, 'Inv_Curr': {'value': 298, 'length': 2, 'type': 'num', 'divide': 10}, 'AC_InWatt': {'value': 302, 'length': 4, 'type': 'num', 'divide': 10}, 'AC_InVA': {'value': 310, 'length': 4, 'type': 'num', 'divide': 10}, 'faultBit': {'value': 318, 'length': 2, 'type': 'num', 'divide': 1}, 'warningBit': {'value': 322, 'length': 2, 'type': 'num', 'divide': 1}, 'faultValue': {'value': 326, 'length': 2, 'type': 'num', 'divide': 1}, 'warningValue': {'value': 330, 'length': 2, 'type': 'num', 'divide': 1}, 'constantPowerOK': {'value': 346, 'length': 2, 'type': 'num', 'divide': 1}, 'epvtoday': {'value': 358, 'length': 4, 'type': 'num', 'divide': 10}, 'pvenergytoday': {'value': 358, 'length': 4, 'type': 'num', 'divide': 10}, 'epvtotal': {'value': 366, 'length': 4, 'type': 'num', 'divide': 10}, 'eacCharToday': {'value': 390, 'length': 4, 'type': 'num', 'divide': 10}, 'eacCharTotal': {'value': 398, 'length': 4, 'type': 'num', 'divide': 10}, 'ebatDischarToday': {'value': 406, 'length': 4, 'type': 'num', 'divide': 10}, 'ebatDischarTotal': {'value': 414, 'length': 4, 'type': 'num', 'divide': 10}, 'eacDischarToday': {'value': 422, 'length': 4, 'type': 'num', 'divide': 10}, 'eacDischarTotal': {'value': 430, 'length': 4, 'type': 'num', 'divide': 10}, 'ACCharCurr': {'value': 438, 'length': 2, 'type': 'num', 'divide': 10}, 'ACDischarWatt': {'value': 442, 'length': 4, 'type': 'num', 'divide': 10}, 'ACDischarVA': {'value': 450, 'length': 4, 'type': 'num', 'divide': 10}, 'BatDischarWatt': {'value': 458, 'length': 4, 'type': 'num', 'divide': 10}, 'BatDischarVA': {'value': 466, 'length': 4, 'type': 'num', 'divide': 10}, 'BatWatt': {'value': 474, 'length': 4, 'type': 'numx', 'divide': 10}} T06NNNNXTL3 : {'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'incl': 'yes'}, 'pvserial': {'value': 76, 'length': 10, 'type': 'text'}, 'date': {'value': 136, 'divide': 10}, 'recortype1': {'value': 150, 'length': 2, 'type': 'num', 'incl': 'no'}, 'recortype2': {'value': 154, 'length': 2, 'type': 'num', 'incl': 'no'}, 'pvstatus': {'value': 158, 'length': 2, 'type': 'num'}, 'pvpowerin': {'value': 162, 'length': 4, 'type': 'num', 'divide': 10}, 'pv1voltage': {'value': 170, 'length': 2, 'type': 'num', 'divide': 10}, 'pv1current': {'value': 174, 'length': 2, 'type': 'num', 'divide': 10}, 'pv1watt': {'value': 178, 'length': 4, 'type': 'num', 'divide': 10}, 'pv2voltage': {'value': 186, 'length': 2, 'type': 'num', 'divide': 10}, 'pv2current': {'value': 190, 'length': 2, 'type': 'num', 'divide': 10}, 'pv2watt': {'value': 194, 'length': 4, 'type': 'num', 'divide': 10}, 'pv3voltage': {'value': 202, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pv3current': {'value': 206, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pv3watt': {'value': 210, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pvpowerout': {'value': 298, 'length': 4, 'type': 'numx', 'divide': 10}, 'pvfrequentie': {'value': 306, 'length': 2, 'type': 'num', 'divide': 100}, 'pvgridvoltage': {'value': 310, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent': {'value': 314, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower': {'value': 318, 'length': 4, 'type': 'num', 'divide': 10}, 'pvgridvoltage2': {'value': 326, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent2': {'value': 330, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower2': {'value': 334, 'length': 4, 'type': 'num', 'divide': 10}, 'pvgridvoltage3': {'value': 342, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent3': {'value': 346, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower3': {'value': 350, 'length': 4, 'type': 'num', 'divide': 10}, 'Vac_RS': {'value': 358, 'length': 2, 'type': 'num', 'divide': 10}, 'Vac_ST': {'value': 362, 'length': 2, 'type': 'num', 'divide': 10}, 'Vac_TR': {'value': 366, 'length': 2, 'type': 'num', 'divide': 10}, 'pvenergytoday': {'value': 370, 'length': 4, 'type': 'num', 'divide': 10}, 'pvenergytotal': {'value': 378, 'length': 4, 'type': 'num', 'divide': 10}, 'totworktime': {'value': 386, 'length': 4, 'type': 'num', 'divide': 7200}, 'epv1today': {'value': 394, 'length': 4, 'type': 'num', 'divide': 10}, 'epv1total': {'value': 402, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2today': {'value': 410, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2total': {'value': 418, 'length': 4, 'type': 'num', 'divide': 10}, 'epvtotal': {'value': 522, 'length': 4, 'type': 'num', 'divide': 10}, 'pvtemperature': {'value': 530, 'length': 2, 'type': 'num', 'divide': 10}, 'pvipmtemperature': {'value': 534, 'length': 2, 'type': 'num', 'divide': 10}, 'pvboottemperature': {'value': 538, 'length': 2, 'type': 'num', 'divide': 10}, 'temp4': {'value': 542, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'uwBatVolt_DSP': {'value': 546, 'length': 2, 'type': 'num', 'divide': 10}, 'pbusvolt': {'value': 550, 'length': 2, 'type': 'num', 'divide': 1}, 'nbusvolt': {'value': 554, 'length': 2, 'type': 'num', 'divide': 1}} T060120 : {'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'incl': 'yes'}, 'pvserial': {'value': 76, 'length': 10, 'type': 'text'}, 'date': {'value': 136, 'divide': 10}, 'voltage_l1': {'value': 160, 'length': 4, 'type': 'num', 'divide': 10}, 'voltage_l2': {'value': 168, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'voltage_l3': {'value': 176, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'Current_l1': {'value': 184, 'length': 4, 'type': 'num', 'divide': 10}, 'Current_l2': {'value': 192, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'Current_l3': {'value': 200, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'act_power_l1': {'value': 208, 'length': 4, 'type': 'numx', 'divide': 10}, 'act_power_l2': {'value': 216, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'act_power_l3': {'value': 224, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'app_power_l1': {'value': 232, 'length': 4, 'type': 'numx', 'divide': 10}, 'app_power_l2': {'value': 240, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'app_power_l3': {'value': 248, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'react_power_l1': {'value': 256, 'length': 4, 'type': 'numx', 'divide': 10}, 'react_power_l2': {'value': 264, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'react_power_l3': {'value': 272, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'powerfactor_l1': {'value': 280, 'length': 4, 'type': 'numx', 'divide': 1000}, 'powerfactor_l2': {'value': 288, 'length': 4, 'type': 'numx', 'divide': 1000, 'incl': 'yes'}, 'powerfactor_l3': {'value': 296, 'length': 4, 'type': 'numx', 'divide': 1000, 'incl': 'yes'}, 'pos_rev_act_power': {'value': 304, 'length': 4, 'type': 'numx', 'divide': 10}, 'pos_act_power': {'value': 304, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'rev_act_power': {'value': 304, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'yes'}, 'app_power': {'value': 312, 'length': 4, 'type': 'numx', 'divide': 10}, 'react_power': {'value': 320, 'length': 4, 'type': 'numx', 'divide': 10}, 'powerfactor': {'value': 328, 'length': 4, 'type': 'numx', 'divide': 1000}, 'frequency': {'value': 336, 'length': 4, 'type': 'num', 'divide': 10}, 'L1-2_voltage': {'value': 344, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'L2-3_voltage': {'value': 352, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'L3-1_voltage': {'value': 360, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'yes'}, 'pos_act_energy': {'value': 368, 'length': 4, 'type': 'numx', 'divide': 10}, 'rev_act_energy': {'value': 376, 'length': 4, 'type': 'numx', 'divide': 10}, 'pos_act_energy_kvar': {'value': 384, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'no'}, 'rev_act_energy_kvar': {'value': 392, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'no'}, 'app_energy_kvar': {'value': 400, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'no'}, 'act_energy_kwh': {'value': 408, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'no'}, 'react_energy_kvar': {'value': 416, 'length': 4, 'type': 'numx', 'divide': 10, 'incl': 'no'}} T06501b : {'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'incl': 'yes'}, 'device': {'value': 'SDM630', 'type': 'def', 'incl': 'no'}, 'logstart': {'value': 96, 'type': 'def', 'incl': 'no'}, 'active_energy': {'pos': 1, 'type': 'log'}, 'reactive_energy': {'pos': 2, 'type': 'log'}, 'activePowerL1': {'pos': 3, 'type': 'log'}, 'activePowerL2': {'pos': 4, 'type': 'log'}, 'activePowerL3': {'pos': 5, 'type': 'log'}, 'reactivePowerL1': {'pos': 6, 'type': 'log'}, 'reactivePowerL2': {'pos': 7, 'type': 'log'}, 'reactivePowerL3': {'pos': 8, 'type': 'log'}, 'apperentPowerL1': {'pos': 9, 'type': 'log'}, 'apperentPowerL2': {'pos': 10, 'type': 'log'}, 'apperentPowerL3': {'pos': 11, 'type': 'log'}, 'powerFactorL1': {'pos': 12, 'type': 'log'}, 'powerFactorL2': {'pos': 13, 'type': 'log'}, 'powerFactorL3': {'pos': 14, 'type': 'log'}, 'voltageL1': {'pos': 15, 'type': 'log'}, 'voltageL2': {'pos': 16, 'type': 'log'}, 'voltageL3': {'pos': 17, 'type': 'log'}, 'currentL1': {'pos': 18, 'type': 'log'}, 'currentL2': {'pos': 19, 'type': 'log'}, 'currentL3': {'pos': 20, 'type': 'log'}, 'power': {'pos': 21, 'type': 'log'}, 'active_power': {'pos': 21, 'type': 'logpos'}, 'reverse_active_power': {'pos': 21, 'type': 'logneg'}, 'apparent_power': {'pos': 22, 'type': 'log'}, 'reactive_power': {'pos': 23, 'type': 'log'}, 'power_factor': {'pos': 24, 'type': 'log'}, 'frequency': {'pos': 25, 'type': 'log'}, 'posiActivePower': {'pos': 26, 'type': 'log'}, 'reverActivePower': {'pos': 27, 'type': 'log'}, 'posiReactivePower': {'pos': 28, 'type': 'log'}, 'reverReactivePower': {'pos': 29, 'type': 'log'}, 'apparentEnergy': {'pos': 30, 'type': 'log'}, 'totalActiveEnergyL1': {'pos': 31, 'type': 'log'}, 'totalActiveEnergyL2': {'pos': 32, 'type': 'log'}, 'totalActiveEnergyL3': {'pos': 33, 'type': 'log'}, 'totalRectiveEnergyL1': {'pos': 34, 'type': 'log'}, 'totalRectiveEnergyL2': {'pos': 35, 'type': 'log'}, 'totalRectiveEnergyL3': {'pos': 36, 'type': 'log'}, 'total_energy': {'pos': 37, 'type': 'log'}, 'l1Voltage2': {'pos': 38, 'type': 'log'}, 'l2Voltage3': {'pos': 39, 'type': 'log'}, 'l3Voltage1': {'pos': 40, 'type': 'log'}, 'pos41': {'pos': 41, 'type': 'log', 'incl': 'no'}, 'pos42': {'pos': 42, 'type': 'log', 'incl': 'no'}, 'pos43': {'pos': 43, 'type': 'log', 'incl': 'no'}, 'pos44': {'pos': 44, 'type': 'log', 'incl': 'no'}, 'pos45': {'pos': 45, 'type': 'log', 'incl': 'no'}, 'pos46': {'pos': 46, 'type': 'log', 'incl': 'no'}, 'pos47': {'pos': 47, 'type': 'log', 'incl': 'no'}, 'pos48': {'pos': 48, 'type': 'log', 'incl': 'no'}, 'pos49': {'pos': 49, 'type': 'log', 'incl': 'no'}, 'pos50': {'pos': 50, 'type': 'log', 'incl': 'no'}, 'pos51': {'pos': 51, 'type': 'log', 'incl': 'no'}, 'pos52': {'pos': 52, 'type': 'log', 'incl': 'no'}, 'pos53': {'pos': 53, 'type': 'log', 'incl': 'no'}, 'pos54': {'pos': 54, 'type': 'log', 'incl': 'no'}, 'pos55': {'pos': 55, 'type': 'log', 'incl': 'no'}, 'pos56': {'pos': 56, 'type': 'log', 'incl': 'no'}, 'pos57': {'pos': 57, 'type': 'log', 'incl': 'no'}, 'pos58': {'pos': 58, 'type': 'log', 'incl': 'no'}, 'pos59': {'pos': 59, 'type': 'log', 'incl': 'no'}, 'pos60': {'pos': 60, 'type': 'log', 'incl': 'no'}, 'pos61': {'pos': 61, 'type': 'log', 'incl': 'no'}, 'pos62': {'pos': 62, 'type': 'log', 'incl': 'no'}, 'pos63': {'pos': 63, 'type': 'log', 'incl': 'no'}, 'pos64': {'pos': 64, 'type': 'log', 'incl': 'no'}, 'pos65': {'pos': 65, 'type': 'log', 'incl': 'no'}, 'pos66': {'pos': 66, 'type': 'log', 'incl': 'no'}} T05NNNNXSPH : {'decrypt': {'value': 'True'}, 'datalogserial': {'value': 16, 'length': 10, 'type': 'text', 'incl': 'yes'}, 'pvserial': {'value': 36, 'length': 10, 'type': 'text'}, 'date': {'value': 56, 'divide': 10}, 'recortype1': {'value': 70, 'length': 2, 'type': 'num', 'incl': 'no'}, 'recortype2': {'value': 74, 'length': 2, 'type': 'num', 'incl': 'no'}, 'pvstatus': {'value': 78, 'length': 2, 'type': 'num'}, 'pvpowerin': {'value': 82, 'length': 4, 'type': 'num', 'divide': 10}, 'pv1voltage': {'value': 90, 'length': 2, 'type': 'num', 'divide': 10}, 'pv1current': {'value': 94, 'length': 2, 'type': 'num', 'divide': 10}, 'pv1watt': {'value': 98, 'length': 4, 'type': 'num', 'divide': 10}, 'pv2voltage': {'value': 106, 'length': 2, 'type': 'num', 'divide': 10}, 'pv2current': {'value': 110, 'length': 2, 'type': 'num', 'divide': 10}, 'pv2watt': {'value': 114, 'length': 4, 'type': 'num', 'divide': 10}, 'pvpowerout': {'value': 218, 'length': 4, 'type': 'numx', 'divide': 10}, 'pvfrequentie': {'value': 226, 'length': 2, 'type': 'num', 'divide': 100}, 'pvgridvoltage': {'value': 230, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent': {'value': 234, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower': {'value': 238, 'length': 4, 'type': 'num', 'divide': 10}, 'pvgridvoltage2': {'value': 246, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent2': {'value': 250, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower2': {'value': 254, 'length': 4, 'type': 'num', 'divide': 10}, 'pvgridvoltage3': {'value': 262, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridcurrent3': {'value': 266, 'length': 2, 'type': 'num', 'divide': 10}, 'pvgridpower3': {'value': 270, 'length': 4, 'type': 'num', 'divide': 10}, 'totworktime': {'value': 306, 'length': 4, 'type': 'num', 'divide': 7200}, 'eactoday': {'value': 290, 'length': 4, 'type': 'num', 'divide': 10}, 'pvenergytoday': {'value': 290, 'length': 4, 'type': 'num', 'divide': 10}, 'eactotal': {'value': 298, 'length': 4, 'type': 'num', 'divide': 10}, 'epvtotal': {'value': 442, 'length': 4, 'type': 'num', 'divide': 10}, 'epv1today': {'value': 314, 'length': 4, 'type': 'num', 'divide': 10}, 'epv1total': {'value': 322, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2today': {'value': 330, 'length': 4, 'type': 'num', 'divide': 10}, 'epv2total': {'value': 338, 'length': 4, 'type': 'num', 'divide': 10}, 'pvtemperature': {'value': 450, 'length': 2, 'type': 'num', 'divide': 10}, 'pvipmtemperature': {'value': 454, 'length': 2, 'type': 'num', 'divide': 10}, 'pvboosttemp': {'value': 458, 'length': 2, 'type': 'num', 'divide': 10}, 'bat_dsp': {'value': 466, 'length': 2, 'type': 'num', 'divide': 10}, 'pbusvolt': {'value': 470, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#nbusvolt': {'value': 474, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#ipf': {'value': 478, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#realoppercent': {'value': 482, 'length': 2, 'type': 'num', 'divide': 100, 'incl': 'no'}, '#opfullwatt': {'value': 486, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#deratingmode': {'value': 494, 'length': 2, 'type': 'num', 'divide': 1, 'incl': 'no'}, 'eacharge_today': {'value': 526, 'length': 4, 'type': 'num', 'divide': 10}, 'eacharge_total': {'value': 534, 'length': 4, 'type': 'num', 'divide': 10}, 'batterytype': {'value': 554, 'length': 2, 'type': 'num', 'divide': 1}, 'uwsysworkmode': {'value': 586, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword0': {'value': 590, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword1': {'value': 594, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword2': {'value': 588, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword3': {'value': 602, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword4': {'value': 606, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword5': {'value': 610, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword6': {'value': 614, 'length': 2, 'type': 'num', 'divide': 1}, 'systemfaultword7': {'value': 618, 'length': 2, 'type': 'num', 'divide': 1}, 'pdischarge1': {'value': 622, 'length': 4, 'type': 'num', 'divide': 10}, 'p1charge1': {'value': 630, 'length': 4, 'type': 'num', 'divide': 10}, 'vbat': {'value': 738, 'length': 2, 'type': 'num', 'divide': 10}, 'SOC': {'value': 742, 'length': 2, 'type': 'num', 'divide': 100}, 'pactouserr': {'value': 746, 'length': 4, 'type': 'num', 'divide': 10}, '#pactousers': {'value': 654, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#pactousert': {'value': 662, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pactousertot': {'value': 670, 'length': 4, 'type': 'num', 'divide': 10}, 'pactogridr': {'value': 678, 'length': 4, 'type': 'num', 'divide': 10}, '#pactogrids': {'value': 686, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#pactogridt': {'value': 694, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'pactogridtot': {'value': 702, 'length': 4, 'type': 'num', 'divide': 10}, 'plocaloadr': {'value': 710, 'length': 4, 'type': 'num', 'divide': 10}, '#plocaloads': {'value': 718, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#plocaloadt': {'value': 726, 'length': 4, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'plocaloadtot': {'value': 734, 'length': 4, 'type': 'num', 'divide': 10}, '#ipm': {'value': 742, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, '#battemp': {'value': 746, 'length': 2, 'type': 'num', 'divide': 10, 'incl': 'no'}, 'spdspstatus': {'value': 750, 'length': 2, 'type': 'num', 'divide': 10}, 'spbusvolt': {'value': 754, 'length': 2, 'type': 'num', 'divide': 10}, 'etouser_tod': {'value': 762, 'length': 4, 'type': 'num', 'divide': 10}, 'etouser_tot': {'value': 770, 'length': 4, 'type': 'num', 'divide': 10}, 'etogrid_tod': {'value': 778, 'length': 4, 'type': 'num', 'divide': 10}, 'etogrid_tot': {'value': 786, 'length': 4, 'type': 'num', 'divide': 10}, 'edischarge1_tod': {'value': 794, 'length': 4, 'type': 'num', 'divide': 10}, 'edischarge1_tot': {'value': 802, 'length': 4, 'type': 'num', 'divide': 10}, 'eharge1_tod': {'value': 810, 'length': 4, 'type': 'num', 'divide': 10}, 'eharge1_tot': {'value': 818, 'length': 4, 'type': 'num', 'divide': 10}, 'elocalload_tod': {'value': 826, 'length': 4, 'type': 'num', 'divide': 10}, 'elocalload_tot': {'value': 834, 'length': 4, 'type': 'num', 'divide': 10}} Grott external record whitelist 'recwl.txt' not found Grott records whitelisted : {'5016', '5103', '0119', '5003', '5004', '5104', '0116', '0104', '0150', '5105', '5119', '5019', '5250', '0105', '5150', '5116', '5005', '5129', '0120', '5229', '5216', '501b', '0103', '5219', '5050'} Grott settings: _Generic: version: 2.7.8 verbose: True trace: False config file: grott.ini minrecl: 100 decrypt: True compat: False invtype: default invtypemap: {} include_all: False blockcmd: False noipf: False time: auto sendbuf: True timezone: local valueoffset: 6 offset: 6 inverterid: automatic mode: proxy grottip 192.168.1.192 grottport 1883 _MQTT: nomqtt True mqttip: localhost mqttport: 1883 mqtttopic: energy/growatt mqttmtopic: False mqttmtopicname: energy/meter mqttinverterintopic: False mqtttretain: False mqtttauth: False Traceback (most recent call last): File "/app/grott.py", line 33, in mqttuser: grott mqttpsw: secret _Growatt server: growattip: 47.91.67.66 growattport: 5279 _PVOutput: pvoutput: False pvdisv1: False proxy = Proxy(conf) File "/app/grottproxy.py", line 112, in init pvtemp: False pvurl: https://pvoutput.org/service/r2/addstatus.jsp pvapikey: yourapikey pvinverters: 1 pvsystemid: systemid1 _Influxdb: influx: False influx2: False database: grottdb ip: localhost port: 8086 user: grott password: secret organization: grottorg bucket: grottdb token: secret _Extension: extension: True extname: grott_ha extvar: {'ha_mqtt_host': 'core-mosquitto', 'ha_mqtt_port': '1883', 'ha_mqtt_user': 'addons', 'ha_mqtt_password': 'iepu4Paizael1ievooW5lothzzzzzxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhH'} Grott proxy mode started


 - Grott - libscrc not installed, no CRC checking only record validation on length!
 **********************************************************************************
self.server.bind((conf.grottip, conf.grottport))

TypeError: 'str' object cannot be interpreted as an integer s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

egguy commented 1 year ago

It's weird, that's there's value in the grottip and port. Did you change it in the addon configuration?

For the addon, you don't need to specify anything. It will bind by itself to 0.0.0.0.

The only recommended configurations to change are either the inverter type or the inverter mapping settings.

If you only have one inverter like a SPH5000 you should configure the inverter type to sph for example. If you have multiple, you need to use the inverter mapping settings and keep the inverter type to default.

Also use the latest version of the edge addon for the moment.

chirs-51 commented 1 year ago

yes because i want to run it in local mode to make home assistant to control my inverter and not the growatt severe maybe i'm doing it wrong?

egguy commented 1 year ago

This version of the addon is grott, it only contain the proxy/fowarder to the grott server.

It receives the packet localy for the growatt server, analyze it and send a message to MQTT/PVOut/InfluxDB... then forward to growatt.

There is a function to block commands from growatt and prevent them controlling the inverter.

If you want to control it locally, it's grottserver, but it's not packaged in this version of the addon and the interface is a bit rough (direct http call with register values and command values).

As for the ip and port,I don't recommend touching it at all if you want the add-on to be able to process the packets. Theses params are to let the server listen to the local IP of the container, it has no relation with groatt server.

chirs-51 commented 1 year ago

Thanks fir the answer it's a shame yes I know it's a bitt rough but it's seems to be the the only way to make lokal control of the inveter right now. But keep up the good work and I hope a solution soon will be have a great day! 👍