sincze / Domoticz-Growatt-Webserver-Plugin

16 stars 10 forks source link

No data since 19th August, not fixed after update, some Python errors #14

Closed ThirstyThursten closed 2 years ago

ThirstyThursten commented 3 years ago

Hello, So like the title says, I didn't recieve any data anymore since the 19th of August or so.

Here are the logs NOTE: the Hardware used to be called Solar_Info but since it wasn't working, I tried deleting the Hardware and added it anew and called it Growatt :

 2021-08-26 13:47:54.252 Error: Solar_Info: (GrowattWeb) failed to load 'plugin.py', Python Path used was ':/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-08-26 13:47:54.253 Error: Solar_Info: (Solar_Info) Module Import failed, exception: 'ModuleNotFoundError'
2021-08-26 13:47:54.253 Error: Solar_Info: (Solar_Info) Module Import failed: ' Name: plugin'
2021-08-26 13:47:54.253 Error: Solar_Info: (Solar_Info) Error Line details not available.
2021-08-26 14:09:30.055 Error: Solar_Info: (Solar_Info) 'onStart' failed 'KeyError'.
2021-08-26 14:09:30.055 Error: Solar_Info: (Solar_Info) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-08-26 14:09:30.055 Error: Solar_Info: (Solar_Info) ----> Line 160 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-08-26 14:09:30.055 Error: Solar_Info: (Solar_Info) ----> Line 397 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function createDevices
2021-08-26 14:26:12.564 Error: Solar_Info: (Solar_Info) 'onStart' failed 'KeyError'.
2021-08-26 14:26:12.565 Error: Solar_Info: (Solar_Info) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-08-26 14:26:12.565 Error: Solar_Info: (Solar_Info) ----> Line 160 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-08-26 14:26:12.565 Error: Solar_Info: (Solar_Info) ----> Line 397 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function createDevices
2021-08-26 14:27:11.876 Error: Solar_Info: (Solar_Info) 'onMessage' failed 'NameError'.
2021-08-26 14:27:11.876 Error: Solar_Info: (Solar_Info) ----> Line 310 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage
2021-08-26 14:27:11.876 Error: Solar_Info: (Solar_Info) ----> Line 234 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage
2021-08-26 14:27:11.876 Error: Solar_Info: (Solar_Info) ----> Line 457 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function uploadToPvOutput
2021-08-26 14:29:11.859 Error: Solar_Info: (Solar_Info) 'onMessage' failed 'NameError'.
2021-08-26 14:29:11.859 Error: Solar_Info: (Solar_Info) ----> Line 310 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage
2021-08-26 14:29:11.859 Error: Solar_Info: (Solar_Info) ----> Line 234 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage
2021-08-26 14:29:11.859 Error: Solar_Info: (Solar_Info) ----> Line 457 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function uploadToPvOutput
2021-08-26 14:31:58.302 Error: Growatt: (Growatt) 'onStart' failed 'KeyError'.
2021-08-26 14:31:58.302 Error: Growatt: (Growatt) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-08-26 14:31:58.302 Error: Growatt: (Growatt) ----> Line 160 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-08-26 14:31:58.302 Error: Growatt: (Growatt) ----> Line 397 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function createDevices
2021-08-26 14:32:57.846 Error: Growatt: (Growatt) 'onMessage' failed 'NameError'.
2021-08-26 14:32:57.846 Error: Growatt: (Growatt) ----> Line 310 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage
2021-08-26 14:32:57.846 Error: Growatt: (Growatt) ----> Line 234 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onMessage
2021-08-26 14:32:57.846 Error: Growatt: (Growatt) ----> Line 457 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function uploadToPvOutput 

Did anything change? What can I do?

sincze commented 2 years ago

I can imagine it is frustrating. I just checked with https.

2021-10-21 19:28:00.275 Growatt-dev: (Growatt-dev) >'Data':'b'{"data":{"e_today":3.4,"e_total":8326.2,"vpv1":364.0,"ipv1":0.0,"ppv1":0.0,"vpv2":6.7,"ipv2":0.0,"ppv2":0.0,"vpv3":0.0,"ipv3":0.0,"ppv3":0.0,"ppv":0.0,"vacr":232.9,"vacs":237.5,"vact":235.2,"iacr":0.0,"iacs":0.0,"iact":0.0,"fac":49.9,"pac":0.0,"pacr":0.0,"pacs":0.0,"pact":0.0,"rac":0.0,"e_rac_today":0.0,"e_rac_total":0.0,"t_total":10550.7158203125,"vstring1":0.0,"istring1":0.0,"vstring2":0.0,"istring2":0.0,"vstring3":0.0,"istring3":0.0,"vstring4":0.0,"istring4":0.0,"vstring5":0.0,"istring5":0.0,"vstring6":0.0,"istring6":0.0,"vstring7":0.0,"istring7":0.0,"vstring8":0.0,"istring8":0.0,"strfault":0,"strwarning":0,"strbreak":0,"pidwarning":0},"parameterName":"Fac(Hz),Pac(W),E_Today(kWh),E_Total(kWh),Vpv1(V),Ipv1(A),Ppv1(W),Vpv2(V),Ipv2(A),Ppv2(W),Vpv3(V),Ipv3(A),Ppv3(W),Ppv(W),VacR(V),VacS(V),VacT(V),IacR(A),IacS(A),IacT(A),PacR(W),PacS(W),PacT(W),Rac(W),E_Rac_Today(W),E_Rac_Total(W),T_Total(H),Vstring1(V),Istring1(A),Vstring2(V),Istring2(A),Vstring3(V),Istring3(A),Vstring4(V),Istring4(A),Vstring5(V),Istring5(A),Vstring6(V),Istring6(A),Vstring7(V),Istring7(A),Vstring8(V),Istring8(A),StrFault,StrWarning,StrBreak,PIDWarning"}''

And there is still data Domoticz 2021.1 (build 13256)

Can you check if this one is working for you? https://github.com/sincze/Domoticz-Growatt-Webserver-Plugin/blob/dac4b0e0de731ba7dbed0df1ba2adaeea73bbbe5/plugin.py

ThirstyThursten commented 2 years ago

Hey Sincze, Thanks for gettign back at me, and thanks for looking into this! I tried readding the hardware, it seems to have a Heartbeat now, but it failed to add the devices.. Also getting soem Google bad request errors?

2021-11-08 21:37:32.690 Status: Solar: (Solar) Entering work loop.
2021-11-08 21:37:32.691 Status: Solar: (Solar) Started.
2021-11-08 21:37:32.897 Status: Solar: (Solar) Initialized version 2.0.0, author 'sincze'
2021-11-08 21:37:32.903 Error: Solar: (Solar) 'onStart' failed 'KeyError'.
2021-11-08 21:37:32.904 Error: Solar: (Solar) ----> Line 264 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-11-08 21:37:32.904 Error: Solar: (Solar) ----> Line 136 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart
2021-11-08 21:37:32.904 Error: Solar: (Solar) ----> Line 353 in '/home/pi/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function createDevices
2021-11-08 21:38:32.470 Error: Solar: (Solar) Google returned a Bad Request Error.
2021-11-08 21:39:32.206 Error: Solar: (Solar) Google returned a Bad Request Error. 

Hope you can help me out again! :) Greets, Thursten

vandermark1977 commented 2 years ago

I have the same issues. Devices are not created. Log after fresh install of latest plugin:

2021-11-12 12:18:09.692 Status: Growatt omvormer: (Growatt omvormer) Started. 2021-11-12 12:18:09.692 Status: Growatt omvormer: (Growatt omvormer) Entering work loop. 2021-11-12 12:18:10.112 Status: Growatt omvormer: (Growatt omvormer) Initialized version 2.0.0, author 'sincze' 2021-11-12 12:18:10.116 Error: Growatt omvormer: (Growatt omvormer) 'onStart' failed 'KeyError'. 2021-11-12 12:18:10.116 Error: Growatt omvormer: (Growatt omvormer) ----> Line 298 in '/home/pi/domoticz/plugins/domoticz-growatt-webserver-pvoutput-plugin/plugin.py', function onStart 2021-11-12 12:18:10.116 Error: Growatt omvormer: (Growatt omvormer) ----> Line 160 in '/home/pi/domoticz/plugins/domoticz-growatt-webserver-pvoutput-plugin/plugin.py', function onStart 2021-11-12 12:18:10.116 Error: Growatt omvormer: (Growatt omvormer) ----> Line 397 in '/home/pi/domoticz/plugins/domoticz-growatt-webserver-pvoutput-plugin/plugin.py', function createDevices

vandermark1977 commented 2 years ago

After i removed the Growatt icon it started working

sincze commented 2 years ago

Will close this issue for now.