Python Plugin: Omnik Inverter local webinterface
Moderator: leecollings
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Python Plugin: Omnik Inverter local webinterface
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)
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)
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
1) Will this plug-in also work with: omnik5000tl2rgroothuis 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.
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)
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
This is what status.js is giving me: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,";
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,";
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
No worries looks the same as the tl3000.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
@sincze: any suggestion on how to address this? What the issue is? How to debug the problem?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.
-
- Posts: 65
- Joined: Friday 06 December 2019 14:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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
So it reads the values but they are not processed.
Who can help
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,";
Who can help
Last edited by MeAlbert on Saturday 07 December 2019 13:11, edited 1 time in total.
-
- Posts: 65
- Joined: Friday 06 December 2019 14:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
To add some more info to my previous post.
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.
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
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 38
- Joined: Thursday 18 October 2018 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: netherlands, Kuuk
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
-
- Posts: 21
- Joined: Wednesday 06 July 2016 22:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
Deze plugin werkt bij mijn Omnik inverter 3k tl3 . [myDeviceArray[0]="AANN302**********9,V5.04Build230,V4.13Build262,Omnik3000tl ,3000,439,123,683,,1,";;
Top .
Top .
-
- Posts: 21
- Joined: Wednesday 06 July 2016 22:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
What does the log say ??
Debugging with just 'stopped ' is very hard.
Debugging with just 'stopped ' is very hard.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
-
- Posts: 21
- Joined: Wednesday 06 July 2016 22:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
-
- Posts: 21
- Joined: Wednesday 06 July 2016 22:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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.
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 21
- Joined: Wednesday 06 July 2016 22:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
Systeem updaten , upgraden ,totaly crashed.
Txs any way
Later
Txs any way
Later
-
- Posts: 1
- Joined: Friday 27 August 2021 14:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Omnik Inverter local webinterface
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!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 .
Re: Python Plugin: Omnik Inverter local webinterface
Hi Henkie, did you find the firmware for your inverter? I'm facing the same issue.
Thx for any help!
Who is online
Users browsing this forum: No registered users and 1 guest