Page 1 of 2

Python Plugin: Omnik Inverter local webinterface

Posted: Sunday 28 July 2019 11:56
by sincze
I recently released some PHP scripts that are able to read data from a solar web-portal over the internet.
https://github.com/sincze/Domoticz

Valuable feedback was collected and some Omnik users did not want to retrieve the data from an Internet web portal.
But they also could not use an existing solution because of a different serial number.
https://github.com/Woutrrr/Omnik-Data-Logger.git

So I started to create this Plugin it works with an Omnik4000 v1.
https://github.com/sincze/Domoticz-Omni ... ree/master

It will read data from the inverter itself that is available in the webinterface.
Prereqs: Python version 3.5 & Domoticz V4.11034 (beta)
plugin_preview.png
plugin_preview.png (35.03 KiB) Viewed 5176 times

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Tuesday 03 December 2019 23:10
by rgroothuis
Thanks, this looks good. I like the idea of a simple plug-in to get the solar panel data into Domoticz.

Questions:
1) Will this plug-in also work with: omnik5000tl2
2) Is the data collected from the web-portal or directly, locally, from the Omnik device itself?

Thanks.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Wednesday 04 December 2019 8:57
by sincze
rgroothuis wrote: Tuesday 03 December 2019 23:10 Thanks, this looks good. I like the idea of a simple plug-in to get the solar panel data into Domoticz.

Questions:
1) Will this plug-in also work with: omnik5000tl2
2) Is the data collected from the web-portal or directly, locally, from the Omnik device itself?

Thanks.
1) Will this plug-in also work with: omnik5000tl2
Depends on the firmware within the inverter, would be nice to give it a try and report back.
In the end we could try to add it as well if it is not supported.
http://xxx.xxx.x.xxx/js/status.js will give you a status page of your inverter, the data is extracted from that.
It looks for a string like this:

Code: Select all

var webData="NLDN2017****,NL1-V1.0-0118-4,V2.0-0028,omnik4000tl ,4000,584,345,33734,,4,";

2) Is the data collected from the web-portal or directly, locally, from the Omnik device itself?
It will read data from the inverter itself that is available in the webinterface.
Prereqs: Python version 3.5 & Domoticz V4.11034 (beta)

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Wednesday 04 December 2019 9:53
by rgroothuis
sincze wrote: Wednesday 04 December 2019 8:57
http://xxx.xxx.x.xxx/js/status.js will give you a status page of your inverter, the data is extracted from that.
It looks for a string like this:

Code: Select all

var webData="NLDN2017****,NL1-V1.0-0118-4,V2.0-0028,omnik4000tl ,4000,584,345,33734,,4,";
This is what status.js is giving me:

Code: Select all

var version= "H4.01.51MW.2.01W1.0.64(2018-01-251-D)";
var m2mMid = "626267437";
var wlanMac= "BC:54:F9:F7:4C:74";
var m2mRssi= "55%";
var wanIp= "192.168.0.189";
var nmac= "BC54F9F74C77";
var fephy= "off";
var yz_device_type="258";
var yz_device_num="1";
var myDeviceArray=new Array();myDeviceArray[0]="AABN502018CQ3038,V5.27Build261,V5.43Build182,omnik5000tl2,5000,696,33,434,,1,";
I don't have a line with var webData=...............

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Wednesday 04 December 2019 10:13
by sincze
No worries looks the same as the tl3000.

Image

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Wednesday 04 December 2019 13:05
by rgroothuis
Regardless which inverter I select webData or myDeviceArray I get the following error message:

2019-12-04 13:02:26.336 Error: OmnikSolarPanel hardware (11) thread seems to have ended unexpectedly

How can I debug this.

FYI, after this occurs and I try to disable the Omnik plugin, the Domoticz system becomes unresponsive, I need to do a restart from the command line.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Friday 06 December 2019 13:02
by rgroothuis
rgroothuis wrote: Wednesday 04 December 2019 13:05 Regardless which inverter I select webData or myDeviceArray I get the following error message:

2019-12-04 13:02:26.336 Error: OmnikSolarPanel hardware (11) thread seems to have ended unexpectedly

How can I debug this.

FYI, after this occurs and I try to disable the Omnik plugin, the Domoticz system becomes unresponsive, I need to do a restart from the command line.
@sincze: any suggestion on how to address this? What the issue is? How to debug the problem?

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Friday 06 December 2019 14:32
by MeAlbert
I have put the plugin to Domoticz and it works partly.
I get 3 devices but only the 'switch' stating the status of the inverter works. The power is 0 and the kWh is 0.
My inverter is caled solarsmart. If i give the /js/status.js I get the following string

Code: Select all

 var webData="A0415D0056,V1.10,V1.10,SolarSmart 2.5KW,  2500,26,17,80484,,1,"; 
So it reads the values but they are not processed.
Who can help

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Saturday 07 December 2019 10:27
by MeAlbert
To add some more info to my previous post.

Code: Select all

2019-12-07 10:12:18.114 Status: (Sauna Panelen) Initialized version 1.0.1, author 'sincze' 
2019-12-07 10:12:18.115 Status: (Sauna Panelen) Entering work loop. 
2019-12-07 10:12:18.270 Error: (Sauna Panelen) 'onMessage' failed 'KeyError'. 
2019-12-07 10:12:18.270 Error: (Sauna Panelen) ----> Line 221 in '/home/pi/domoticz/plugins/Domoticz-Omnik-Local-Web-Plugin/plugin.py' 
2019-12-07 10:12:18.270 Error: (Sauna Panelen) ----> Line 133 in '/home/pi/domoticz/plugins/Domoticz-Omnik-Local-Web-Plugin/plugin.py' 
2019-12-07 10:12:20.772 (Sauna Panelen) Queued asyncronous read aborted (192.168.xx.xx:80). 
2019-12-07 10:13:27.020 Error: Sauna Panelen hardware (11) thread seems to have ended unexpectedly
this is what I get in my log when I put basic and messages on. I can manage Python but maybe this is to much for me to handle.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Wednesday 22 January 2020 19:33
by waltervl
Thank you for this plugin.

It works like a charm with my Omnik Solar Inverter type 1500 TL, Wifi interface 809xxxxxxx
For the record: I had to use the "myDeviceArray" type inverter in the plugin.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Thursday 02 July 2020 12:14
by Basssment
Hello Thank you for this plugin.
i'm facing some error's wich I cant firuge out

I do get the output correct when I run LiveStats.py
but when i run OmnikExport.py I get:
2020-06-28 20:22:17,341 DEBUG Importing output plugin
Traceback (most recent call last):
File "OmnikExport.py", line 170, in
omnik_exporter.run()
File "OmnikExport.py", line 52, in run
import(plugin_name)
ValueError: Empty module name

anny idea what could be wrong in my case? :(


Edit, got it working forgot to select the right output type.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Saturday 01 August 2020 9:53
by arnaudarduino
Deze plugin werkt bij mijn Omnik inverter 3k tl3 . [myDeviceArray[0]="AANN302**********9,V5.04Build230,V4.13Build262,Omnik3000tl ,3000,439,123,683,,1,";;
Top .

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Monday 05 April 2021 9:52
by arnaudarduino
And stopped :(

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Monday 05 April 2021 10:23
by sincze
What does the log say ??
Debugging with just 'stopped ' is very hard. :D

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Thursday 15 April 2021 20:35
by arnaudarduino
Sorry , did the post in github.

I get this failure, and no kwh and w in Domoticz

This what in the log problem
2021-04-05 14:56:56.708 Error: Feithzonnig hardware (22) thread seems to have ended unexpectedly

Whit ip/js/status.js i get this, so there is value

`var version= "H4.01.51MW.2.01W1.0.65(2018-02-271-D)";
var m2mMid = "644401429";
var wlanMac= "F0:FE:6B:E4:EB:64";
var m2mRssi= "100%";
var wanIp= "192.168.2.251";
var nmac= "F0FE6BE4EB67";
var fephy= "off";
var yz_device_type="258";
var yz_device_num="1";
var init_inv_type="0";
var myDeviceArray=new Array();
myDeviceArray[0]="AANN302019184099,V5.04Build230,V4.13Build262,Omnik3000tl ,3000,976,136,17685,,1,";

var version= "H4.01.51MW.2.01W1.0.65(2018-02-271-D)";
var m2mMid = "644401429";
var wlanMac= "F0:FE:6B:E4:EB:64";
var m2mRssi= "100%";
var wanIp= "192.168.2.251";
var nmac= "F0FE6BE4EB67";
var fephy= "off";
var yz_device_type="258";
var yz_device_num="1";
var init_inv_type="0";
var myDeviceArray=new Array();
myDeviceArray[0]="AANN302019184099,V5.04Build230,V4.13Build262,Omnik3000tl ,3000,2160,160,17688,,0,";

var version= "H4.01.51MW.2.01W1.0.65(2018-02-271-D)";
var m2mMid = "644401429";
var wlanMac= "F0:FE:6B:E4:EB:64";
var m2mRssi= "100%";
var wanIp= "192.168.2.251";
var nmac= "F0FE6BE4EB67";
var fephy= "off";
var yz_device_type="258";
var yz_device_num="1";
var init_inv_type="0";
var myDeviceArray=new Array();
myDeviceArray[0]="AANN302019184099,V5.04Build230,V4.13Build262,Omnik3000tl ,3000,2845,523,17724,,0,";

This the info from my inverter

Device information
Device serial number644401429
Firmware versionH4.01.51MW.2.01W1.0.65(2018-02-271-D)
Wireless AP modeEnable
SSIDAP_644401429
IP address10.10.100.254
MAC addressF0:FE:6B:E4:EB:64
Wireless STA modeEnable
Router SSIDdevolo-f4068d7414ea
Signal quality100%
IP address192.168.2.251
MAC addressF0:FE:6B:E4:EB:65
Cable modeDisable
IP address
MAC address`

Number1
Inverter serial number
AANN302019184099
Firmware version (main)V5.04Build230
Firmware version (slave)V4.13Build**262**
Inverter modelOmnik3000tl
Rated power3000 W
Current power55 W
Yield today13.21 kWh
Total yield1842.1 kWh
Alerts---
Last updated0 min ago

Same issue as ..."
Omnik local web-plugin crashes/hangs system"
I hope you can help.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Thursday 15 April 2021 20:38
by arnaudarduino
Over Domoticz
Version: 4.10717
Build Hash: b38b49e5
Compile Date: 2019-05-09 13:04:08
dzVents Version: 2.4.19
Python Version: 3.5.3 (default, Nov 18 2020, 21:09:16) [GCC 6.3.0 20170516]

Uptime: 35 Seconden

update 13182 won't install.

Its become more important because, omnik portal is not free anymore, cost about 6euro a year.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Thursday 15 April 2021 21:00
by waltervl
Did you test the link from the Domoticz server or from another device? Could be that it can not be reached from the server.
What does the log file says if you update the omnik plugin hardware? The plugin will restart and probably give some extra details. Also you can set the debug level higher on the plugin.

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Friday 16 April 2021 22:29
by arnaudarduino
Systeem updaten , upgraden ,totaly crashed.
Txs any way

Later

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Friday 27 August 2021 14:30
by henkie
arnaudarduino wrote: Saturday 01 August 2020 9:53 Deze plugin werkt bij mijn Omnik inverter 3k tl3 . [myDeviceArray[0]="AANN302**********9,V5.04Build230,V4.13Build262,Omnik3000tl ,3000,439,123,683,,1,";;
Top .
Hi, do you by any chance have the latest firmware for omniksol 3K-TL3? I've been looking for it everywhere but cannot find it. My inverter is showing "waiting 0" errors and the newest firmware might be able to fix the issue. Thanks in advance!

Re: Python Plugin: Omnik Inverter local webinterface

Posted: Saturday 11 March 2023 11:23
by parallax
henkie wrote: Friday 27 August 2021 14:30 Hi, do you by any chance have the latest firmware for omniksol 3K-TL3? I've been looking for it everywhere but cannot find it. My inverter is showing "waiting 0" errors and the newest firmware might be able to fix the issue. Thanks in advance!
Hi Henkie, did you find the firmware for your inverter? I'm facing the same issue.
Thx for any help!