syrhus / solax_inverter

Domoticz plugin for Solax inverters
1 stars 0 forks source link

Wrong value #5

Closed syrhus closed 3 years ago

syrhus commented 3 years ago

I installed the plugin in my domoticz, but the strange thing is that it gives me the wrong data: When i look into my devices i see the correct data: image Here it says that the proceeds sofar is 2500 Watts But when i look in the Utils i see different values: image Here i see the value that it (SOLAX - 1) produces now (916 Watts) and a total of -17900 Watts. Is it possible that the totals for today and total all are produced here?

_Originally posted by @Rudi1952 in https://github.com/syrhus/solax_inverter/issues/4#issuecomment-826055430_

syrhus commented 3 years ago

Hi Rudi1952

I do not have any idea of the -17.9KWh . Your current value, 916, seems to be good. Do you have 1 inverter only? or 2? Could you please try to enter the following URL in another web :

https://www.eu.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=**YOUR_TOKEN_ID**&sn=**YOUR_SERIAL_NUMBER**

what value do you have in "yieldtoday" field?

Regards

Rudi1952 commented 3 years ago

I have only 1 inverter, it's a SOLAX X1 boost The output of the URL is: {"exception":"Query success!","result":{"inverterSN":"my token","sn":"my serial number","acpower":1386.0,"yieldtoday":5.6,"yieldtotal":36.8,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":0.0,"soc":0.0,"peps1":0.0,"peps2":0.0,"peps3":0.0,"inverterType":"4","inverterStatus":"102","uploadTime":"2021-04-24 11:44:22","batPower":0.0,"powerdc1":913.0,"powerdc2":519.0},"success":true}

Strange thing is that it gives the right value for today when i look at my device, here it says that i used 5,6 kwh. image

Rudi1952 commented 3 years ago

Yesterday i removed the SOLAX hardware from domoticz and re-installed it again. At that moment all figures were back to zero. This morning at 5.44 am, it started with a negative value of -21300 Wh. Yesterday i produced about that value. At 5.44 am it starts Solax (30 minutes before sunset.) image Probably it picks the value from solaxcloud at that time?

syrhus commented 3 years ago

Hi,

I do not understand how you could have value during night as the plugin does not request value during night. Have you tried to set the debug value to true to check if there is something wrong like the communication with Domoticz to get the sunset and sunrise time?

Rudi1952 commented 3 years ago

It picks up negative data at 05.44 am, that is 30 minutes before sunrise. Time and date in domoticz and RPI are correct.

Sunrise in domoticz is at: 06.14 Sunset in domoticz is at: 20.50

When i look at the logfile (debug)it says: 2021-04-25 22:35:34.847 Solax: (Solax) sunrise:05:44:00 2021-04-25 22:35:34.847 Solax: (Solax) sunset:21:20:00 2021-04-25 22:36:03.016 Solax: (Solax) Pushing 'onHeartbeatCallback' on to queue 2021-04-25 22:36:03.066 (Solax) Processing 'onHeartbeatCallback' message 2021-04-25 22:36:03.066 Solax: (Solax) Calling message handler 'onHeartbeat'. 2021-04-25 22:36:03.066 Solax: (Solax) onHeartbeat called 2021-04-25 22:36:03.067 Solax: (Solax) now: 2021-04-25 2021-04-25 22:36:03.067 Solax: (Solax) currentDate:2021-04-25 2021-04-25 22:36:03.067 Status: Solax: (Solax) Off 2021-04-25 22:36:03.067 Solax: (Solax) Night time, no data to retrieve

I think this is correct, because in the hardware is filled: Minutes avant/après le lever/coucher du soleil: 30 Heure d'été: 1

syrhus commented 3 years ago

Could you set the "Heure d'été" (Summer Time) plugin parameter to 0 please and update? Regards

Rudi1952 commented 3 years ago

I updated the 'Summer Time' parameter to '0' and this solved the issue. Many thanks for the support.