Great, sensors filled nicely - thx!
But I see it still says error, can it be due to "Method updateElectricity is not available for device "Electric_meter""
I see, I had the sensor type wrong, when setup sensor Type: Electric(instant+Counter) it's loaded with the data.
Code: Select all
2019-04-09 15:46:00.185 Status: dzVents: Info: Zonnepanelen2: ------ Start internal script: OmnikT2:, trigger: every minute
2019-04-09 15:46:00.186 Status: dzVents: Info: Zonnepanelen2: ------ Finished OmnikT2
2019-04-09 15:46:00.285 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-04-09 15:46:00.757 Status: dzVents: Info: Handling httpResponse-events for: "trigger-solar-data
2019-04-09 15:46:00.757 Status: dzVents: Info: Zonnepanelen2: ------ Start internal script: OmnikT2: HTTPResponse: "trigger-solar-data"
2019-04-09 15:46:00.757 Status: dzVents: Info: Zonnepanelen2: var version="H4.01.38Y1.0.08W1.0.07";var m2mMid="1606941670";var wlanMac="zz:zz:zz:zz:zz:zz";var m2mRssi="100%";var wanIp="192.168.x.xxx";var nmac="zzzzzzzzzzzzz";var fephy="off";var webData="NLDN3020152A4080,NL1-V1.0-0108-4,V2.0-0028,omnik3000tl ,3000,2664,1105,119952,,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","webdata_now_p","webdata_today_e","webdata_total_e","webdata_alarm","webdata_utime");if(D>10||D<=0){return}var B=document.getElementById(C[D-1]);if(A==""&&B!=null){B.innerHTML="---";return}if(B!=null){if(D==5){B.innerHTML=A+" W"}else{if(D==6){B.innerHTML=A+" W"}else{if(D==7){sv=A*1/100;B.innerHTML=sv.toString()+" kWh"}else{if(D==8){sv=A*1/10;B.innerHTML=sv.toString()+" kWh"}else{if(D==10){if(document.getElementById("webdata_sn").innerHTML=="---"){B.innerHTML="---"}else{B.innerHTML=A+window.parent.reTip("5")}}else{B.innerHTML=A}}}}}}else{alert(C[D])}};
2019-04-09 15:46:00.757 Status: dzVents: Info: Zonnepanelen2: NLDN3020152A4080,NL1-V1.0-0108-4,V2.0-0028,omnik3000tl ,3000,2664,1105,119952,,0,
2019-04-09 15:46:00.757 Status: dzVents: 1=NLDN3020152A4080
2019-04-09 15:46:00.757 Status: dzVents: 2=NL1-V1.0-0108-4
2019-04-09 15:46:00.757 Status: dzVents: 3=V2.0-0028
2019-04-09 15:46:00.757 Status: dzVents: 4=omnik3000tl
2019-04-09 15:46:00.757 Status: dzVents: 5=3000
2019-04-09 15:46:00.757 Status: dzVents: 6=2664
2019-04-09 15:46:00.757 Status: dzVents: 7=1105
2019-04-09 15:46:00.757 Status: dzVents: 8=119952
2019-04-09 15:46:00.757 Status: dzVents: 9=
2019-04-09 15:46:00.757 Status: dzVents: 10=0
2019-04-09 15:46:00.758 Status: dzVents: 11=
2019-04-09 15:46:00.758 Status: dzVents: !Info: Zonnepanelen2: Power: 2664 W
2019-04-09 15:46:00.758 Status: dzVents: !Info: Zonnepanelen2: Today: 11.05 kWh
2019-04-09 15:46:00.758 Status: dzVents: !Info: Zonnepanelen2: Total: 11995.2 kWh
2019-04-09 15:46:00.776 Status: dzVents: Error (2.4.6): Zonnepanelen2: Method updateElectricity is not available for device "Electric_meter" (deviceType=RFXMeter, deviceSubType=RFXMeter counter). If you believe this is not correct, please report.
2019-04-09 15:46:00.779 Status: dzVents: Error (2.4.6): Zonnepanelen2: An error occured when calling event handler OmnikT2
2019-04-09 15:46:00.779 Status: dzVents: Error (2.4.6): Zonnepanelen2: ...i/domoticz/scripts/dzVents/generated_scripts/OmnikT2.lua:50: attempt to call field 'updateEnergy' (a nil value)
2019-04-09 15:46:00.779 Status: dzVents: Info: Zonnepanelen2: ------ Finished OmnikT2
2019-04-09 15:46:00.779 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua