Page 1 of 1

Omnik solar inverter plugin

Posted: Thursday 23 June 2022 10:19
by Chris96
I'm running a plugin for 1,5 years now and it stopped working since the last update of domoticz i think.
Its running sometimes but not every couple of minutes like it used to.

Is somebody willing to help me out and find the problem?

The plugin:
https://github.com/sincze/Domoticz-Omni ... Web-Plugin

Code: Select all

2022-06-23 09:05:22.280 Error: Omnik: Call to function 'onMessage' failed, exception details:
2022-06-23 09:05:22.291 Error: Omnik: Traceback (most recent call last):
2022-06-23 09:05:22.291 Error: Omnik: File "/home/domoticz/plugins/Domoticz-Omnik-Local-Web-Plugin/plugin.py", line 221, in onMessage
2022-06-23 09:05:22.291 Error: Omnik: _plugin.onMessage(Connection, Data)
2022-06-23 09:05:22.291 Error: Omnik: File "/home/domoticz/plugins/Domoticz-Omnik-Local-Web-Plugin/plugin.py", line 133, in onMessage
2022-06-23 09:05:22.291 Error: Omnik: strData = Data["Data"].decode("utf-8", "ignore")
2022-06-23 09:05:22.291 Error: Omnik: KeyError: 'Data'

Re: Omnik solar inverter plugin

Posted: Thursday 23 June 2022 18:49
by waltervl
What version of Domoticz and what OS you are using?
But it seems that the plugin cannot connect the inverter. Does the url to the inverter still work?
http://inverter-ip/js/status.js

Re: Omnik solar inverter plugin

Posted: Thursday 23 June 2022 19:19
by Chris96
Latest version of domoticz running on arbian buster.
Works like a charm for years now.

But somehow the plugin works not all the time anymore.
Every now and then the information comes in.
The inverter is not the problem the app en local site works also.

Code: Select all

var version="H4.01.38Y1.0.08W1.0.07";var m2mMid="1602813294";var wlanMac="AC:CF:23:15:15:68";var m2mRssi="10%";var wanIp="192.168.2.15";var nmac="ACCF2315156B";var fephy="off";var webData="NLDN4020175GX530,NL1-V1.0-0118-4,V2.0-0028,omnik4000tl ,4000,1432,1441,6304,,0,";function initPageText(){var A=window.parent.reList("status");fileText("st1",A["t1"]);fileText("st2",A["t2"]);fileText("st3",A["t3"]);for(var B=1;B<=27;B++){if(B!=14){fileText("tx"+B,A[B])}}init_main_page();initStatus();changeFont();child_getH()}function upfold(A){if(document.getElementById("up_"+A+"_div").style.display=="none"){show("up_"+A+"_div");document.getElementById("up_"+A).src="image/up.png"}else{hide("up_"+A+"_div");document.getElementById("up_"+A).src="image/down.png"}if(A==3){if(document.getElementById("ser_status").src==""){document.getElementById("ser_status").src="server_status.html"}}}function init_main_page(){var E=document.form_cover_setting;cfg2Form(E);var C;var D;var B;var A;B=window.parent.reTip("1");A=window.parent.reTip("2");document.getElementById("cover_ver").innerHTML=version;document.getElementById("cover_mid").innerHTML=m2mMid;if(E.wifi_on.value=="disable"){document.getElementById("cover_ap_status").innerHTML=A;document.getElementById("cover_ap_mac").innerHTML="";document.getElementById("cover_ap_ssid").innerHTML="";document.getElementById("cover_ap_ip").innerHTML="";document.getElementById("cover_sta_status").innerHTML=A;document.getElementById("cover_sta_rssi").innerHTML="";document.getElementById("cover_sta_ip").innerHTML="";document.getElementById("cover_sta_mac").innerHTML="";document.getElementById("cover_sta_ssid").innerHTML=""}else{if(E.sta_enable.value=="1"){document.getElementById("cover_ap_status").innerHTML=B;document.getElementById("cover_ap_mac").innerHTML=wlanMac;document.getElementById("cover_ap_ssid").innerHTML=E.ap_ssid.value;document.getElementById("cover_ap_ip").innerHTML=E.lan_ip.value;document.getElementById("cover_sta_status").innerHTML=B;document.getElementById("cover_sta_rssi").innerHTML=m2mRssi;document.getElementById("cover_sta_ip").innerHTML=wanIp;C=wlanMac.substring(0,16);D="0x"+wlanMac.charAt(16);D=D*1+1;D=D.toString(16);D=D.toUpperCase();C=C+D;document.getElementById("cover_sta_mac").innerHTML=C;document.getElementById("cover_sta_ssid").innerHTML=E.sta_ssid.value}else{document.getElementById("cover_ap_status").innerHTML=B;document.getElementById("cover_ap_mac").innerHTML=wlanMac;document.getElementById("cover_ap_ssid").innerHTML=E.ap_ssid.value;document.getElementById("cover_ap_ip").innerHTML=E.lan_ip.value;document.getElementById("cover_sta_status").innerHTML=A;document.getElementById("cover_sta_rssi").innerHTML="";document.getElementById("cover_sta_ip").innerHTML="";document.getElementById("cover_sta_mac").innerHTML="";document.getElementById("cover_sta_ssid").innerHTML=""}}}function init_webdata_form(){var E=webData;var B="";var A,C,D;A=E.length;C=0;D=0;while(C<A){if(E.charAt(C)==","){C+=1;D+=1;web_data_show(D,B);B=""}else{B=B+E.charAt(C);C+=1}}}function web_data_show(D,A){var C=new Array("webdata_sn","webdata_msvn","webdata_ssvn","webdata_pv_type","webdata_rate_p","we


Re: Omnik solar inverter plugin

Posted: Saturday 25 June 2022 0:30
by waltervl
What is latest version? Latest stable or latest beta? And from what version did you update when the troubles started? There where some major changes in Domoticz beta on python plugin framework die to incompatibility issues on bullseye Linux on RPi.

It is important that domoticz/RPI can see the inverter. And that the inverter has good connection with your network. So check the home network/wifi.

Re: Omnik solar inverter plugin

Posted: Tuesday 28 June 2022 10:31
by Chris96
waltervl wrote: Saturday 25 June 2022 0:30 What is latest version? Latest stable or latest beta? And from what version did you update when the troubles started? There where some major changes in Domoticz beta on python plugin framework die to incompatibility issues on bullseye Linux on RPi.

It is important that domoticz/RPI can see the inverter. And that the inverter has good connection with your network. So check the home network/wifi.
Version: 2022.1 (build 14352)
Build Hash: 5765540b9
Compile Date: 2022-06-03 07:39:12
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]

Before this i did not update it for almost 3 months i think.
I regret updating now.
The Domoticz can see the inverter, Ping it. Retrieve data from it.

Ive see on github that more people have problems now:
https://github.com/sincze/Domoticz-Omni ... /issues/11