Page 1 of 1
Omnik log shows negative values
Posted: Friday 20 September 2024 14:46
by Henry
I recently updated my Domoticz installation on a Raspberry Pi 3B to 2024.7, and configured the Energy Dashboard. I then noticed there were negative values in the Omnik PV log for the device. These values are equal to the daily yield, and always at the end of the day after the inverter is switched off.
I'm using the script from
https://github.com/Woutrrr/Omnik-Data-Logger and went through the Python scripts to see if I could figure out where these values came from, but I have no idea. Maybe someone has seen this before?
Re: Omnik log shows negative values
Posted: Friday 20 September 2024 15:05
by waltervl
You probably have to switch the used counter device from Usage to Production/Generating through the edit button.
Re: Omnik log shows negative values
Posted: Friday 20 September 2024 15:24
by Henry
Thanks for the reply, but I already checked this and the type is set to 'Levering', Energy read = 'From device' so that seems to be ok.
Re: Omnik log shows negative values
Posted: Friday 20 September 2024 15:41
by waltervl
OK, then something is wrong with the script. It probably resets the device in the wrong way.
You should also have seen these negative values on the Domoticz device itself probably.
Re: Omnik log shows negative values
Posted: Saturday 21 September 2024 11:15
by Henry
It's a script that retrieves values from the inverter every minute, and for this device it's the current power and today's total. I can't find a reset or something in the scripts.
I noticed that the negative value is logged at midnight, but when i delete this value it comes back in the logging at 20.00.
I can't seem to post any screenshots because of the quota.
Re: Omnik log shows negative values
Posted: Saturday 21 September 2024 12:31
by waltervl
Without looking to the script, negative values on counters on midnight normally appear because the total counter values being recieved are being reset to zero.
Domoticz expects a total counter being rolling forward continuesly increasing. It could be you are receiving from Omnik the daily total and not the absolute total. So check your logs what is happening.
Re: Omnik log shows negative values
Posted: Saturday 21 September 2024 12:59
by Henry
That explains it, the counter is indeed the daily total received from the inverter. There is another counter with the absolute total (also received from the inverter) that shows the same hourly values without the negative ones. Issue now is that the Energy dashboard uses this daily counter, which starts with a negative value. I will look for another script for getting the values from the Omnik that doesn’t have this problem.
Thanks for your response.
Re: Omnik log shows negative values
Posted: Saturday 21 September 2024 17:07
by waltervl
You can perhaps change the type of the absolute counter to one that is supported by the energy dashboard or change the script so it will send the absolute data to a normal counter.
Re: Omnik log shows negative values
Posted: Monday 23 September 2024 9:52
by Henry
Yesterday I noticed that also the value for Generated last month was negative, and thus the earnings. This didn't happen in de 2022.1 version, so it seems a new feature (bug?) in 2024.7 where daily counters are reset ad midnight.
Re: Omnik log shows negative values
Posted: Monday 23 September 2024 10:43
by waltervl
I believe in 2023 there was an improvement on counters that could result in these kind of errors on those counters not managed correctly by external scripts. So you had luck in the old Domoticz it showed correctly.
I have an Omnik inverter myself and I use this plugin working perfectly:
https://github.com/sincze/Domoticz-Omni ... Web-Plugin
Re: Omnik log shows negative values
Posted: Monday 23 September 2024 10:48
by Henry
Thanks, I will try that then
Re: Omnik log shows negative values
Posted: Monday 23 September 2024 10:51
by waltervl
First check if your inverter is compatible:
Check
http://inverter-ip/js/status.js to see where yours are.
Example:
var webData="NLDN**2017******,NL1-V1.0-0118-4,V2.0-0028,omnik4000tl ,4000,584,345,33734,,4,";
var myDeviceArray=new Array(); myDeviceArray[0]="AANN3020,V5.04Build230,V4.13Build253,Omnik3000tl,3000,1313,685,9429,,1,";