Skip to content

GrottServer API no or no valid invertid specified #712

Description

@Stealthbird97

Hi,

I am running GrottServer on grott 3.2.1 alpha.

It has been more or less fine for the last few weeks, however, I have restarted grott server, and now the API does not appear to "find" my inverter and no API commands related to the inverter can be carried out.

running :5782/inverter displays my datalogger only.
{"<dataloggerid>": {"ip": "10.0.16.46", "port": 1057, "protocol": "06"}}

running :5782/inverter?command=register&register=1109&inverter=&format=hex i get
no or no valid invertid specified

However, MQTT data sent by grott correctly contains the pvserial (inverterid) and all other information, and in debug mode I can see it decoding so I know that Grott is correctly decoding the data.
`Grott data record date/time processing started

 - no or no valid time/date found, grott server time will be used (buffer records not sent!)

 - Grott values retrieved:

	 -  datalogserial        :  <datalogger id>

	 -  pvserial             :  <inverter id>

	 -  pvstatus             :  6

	 -  pdischarge1          :  910.0

	 -  pcharge1             :  0.0

	 -  vbat                 :  52.9

	 -  soc                  :  92`

Sorry I am not great at writing code, but I can read through it and get a general idea.

I first inkling is there is something weird going on in the grottserver.py

#add invertid

in the code which adds the inverterid to the list, as from what I can tell, the above error is a result of checking the list and if the inverter isn't in there, it just throws that status and aborts.

Any ideas what the potential cause of this is?
As I mentioned, it was working until I restarted it, now it does not work. I had a similar issue before but it rectified itself after restarting a few times, however I have tried that and it's still not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions