Omnik log shows negative values Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Omnik log shows negative values

Post 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?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Omnik log shows negative values

Post by waltervl »

You probably have to switch the used counter device from Usage to Production/Generating through the edit button.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Omnik log shows negative values

Post 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.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Omnik log shows negative values

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Omnik log shows negative values

Post 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.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Omnik log shows negative values

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Omnik log shows negative values

Post 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.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Omnik log shows negative values

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Omnik log shows negative values

Post 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.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Omnik log shows negative values

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Omnik log shows negative values

Post by Henry »

Thanks, I will try that then
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Omnik log shows negative values

Post 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,";
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest