So, I’ve dug further into this issue:
My inverter is handing out hex data of 216 length. I can identify the serial code. For the remaining of the code I wrote a python script which basically looked at every 4 character combination. So what it did was:
a = float(int(hexdata[102:106],16))/10
b = float(int(hexdata[104:108],16))/10
c = float(int(hexdata[106:110],16))/10
And so on, and then i printed the output of all the variables to a file which I could then compare with the actual data.
I though this way I could easily recognize the different data elements … NOT!
I’ve compared several files of this python output with the actual data when logging into www.ginlongmonitoring.com … but not a single number matched with the actual data. Very strange! It’s as if the data has been encrypted in a way…
Darren, if you’re interested I can pm you an actual data overview with the corresponding hex string and you can give it a go if you want…
Anhyhow - frustrated as I was - I did find another way to get my data into OpenHab and then finally into Grafana. I stumbled upon another page (https://www.domoticz.com/forum/viewtopic.php?f=65&t=7941) where someone wrote a script to extract the data from the monitoring site itself (www.ginlongmonitoring.com). It’s also a python file where you enter your username and password of the site, and then it can pull the data from the site itself
I’ve then made a “merger python script” from the domoticz python script +the script from Darren, basically removing the final code where the data is uploaded to the domoticz host website, and replacing it with the MQTT code from Darren so the data is sent to the MQTT broker.
And result: it works like a charm
So far I don’t have the same amount of variables (Domoticz has defined 5: TodayIncome, ActualPower, etoday, etotal and etotalstr), but it should be possible to also extract the other variables like temperature, frequency, etc… I guess.
Only disadvantage of this approach: the data is extacted from the monitoring website and not from the inverter itself, making you dependent on an external server…
@peterkuterna thanks for also sharing your approach with the Omnik Datalogger. This is then a 3rd viable alternative
@Darren_Poulson Hope you got your solar panels back online!