sincze / Domoticz-Growatt-Webserver-Plugin

16 stars 10 forks source link

No data #1

Closed Luigi-01 closed 2 years ago

Luigi-01 commented 4 years ago

Hi I have a small server wit h domoticz running under Ubuntu. I have followed your instructions. No input received. I checked the site and there is a kind of thing first which you have to reject. Maybe that is the issue,

When you have suggestion please let me know

sincze commented 4 years ago

Please share a screenshot of the issue thank you.

Luigi-01 commented 4 years ago

2019-09-23 19:31:33.681 Error: HTTP: 2019-09-23 19:31:33.889 Error: HTTP: 2019-09-23 19:31:34.096 Notification sent (http) => Failed 2019-09-23 19:31:34.331 Notification sent (http) => Failed 2019-09-23 19:31:34.547 Notification sent (http) => Failed 2019-09-23 19:31:34.756 Notification sent (http) => Failed 2019-09-23 19:31:34.961 Notification sent (http) => Failed 2019-09-23 19:31:34.096 Error: HTTP: 2019-09-23 19:31:34.331 Error: HTTP: 2019-09-23 19:31:34.547 Error: HTTP: 2019-09-23 19:31:34.756 Error: HTTP: 2019-09-23 19:31:34.961 Error: HTTP: 2019-09-23 19:31:35.170 Notification sent (http) => Failed 2019-09-23 19:31:35.170 Error: HTTP: Changing to HTTPS does not help as well. When installing you have to go to cd Domoticz-Growatt-Webserver-Plugin However, than you say to restart Domoticz, Not logical for me, Is there a line missing in the instruction.

Luigi-01 commented 4 years ago

This is the log: No output 2019-10-13 14:22:59.904 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:23:59.913 (Growatt) Login Succesfull 2019-10-13 14:25:00.052 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:25:59.976 (Growatt) Login Succesfull 2019-10-13 14:27:00.127 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:28:00.437 (Growatt) Login Succesfull 2019-10-13 14:29:00.496 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:30:00.101 (Growatt) Login Succesfull 2019-10-13 14:31:00.186 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:32:00.194 (Growatt) Login Succesfull 2019-10-13 14:33:00.299 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:34:00.262 (Growatt) Login Succesfull 2019-10-13 14:35:00.326 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:36:00.719 (Growatt) Login Succesfull 2019-10-13 14:37:00.731 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:38:00.836 (Growatt) Login Succesfull 2019-10-13 14:39:00.852 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:40:00.517 (Growatt) Login Succesfull 2019-10-13 14:41:00.579 (Growatt) onDisconnect called for connection to: server-api.growatt.com:80 2019-10-13 14:42:00.641 (Growatt) Login Succesfull

sincze commented 4 years ago

When installing you have to go to cd Domoticz-Growatt-Webserver-Plugin However, than you say to restart Domoticz, Not logical for me, Is there a line missing in the instruction.

No line missing I just used that instruction to see if the plugin was correctly cloned. The restart is necessary to have Domoticz load the plugin and make it available in Domoticz Hardware Drop-down box. Sorry for inconvenience.

image

At the moment no clue why you have no data, screenshot shows the same plugin with domoticz version 4.11214 Build Hash: e7672936b Build Date: 2019-08-19 10:51:32

Luigi-01 commented 4 years ago

2019-10-13 20:02:52.391 Error: (Growatt) 'onStart' failed 'KeyError'. 2019-10-13 20:02:52.391 Error: (Growatt) ----> Line 260 in '/home/milaan/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart 2019-10-13 20:02:52.391 Error: (Growatt) ----> Line 135 in '/home/milaan/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart 2019-10-13 20:02:52.391 Error: (Growatt) ----> Line 349 in '/home/milaan/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function createDevices

Maybe this helps. I have installed the latest domoticz version. There are more issues. Maybe not your foult. I tried an older version of domoticz, there the login works any way.

sincze commented 4 years ago

Can you switch to full log (incl http requests?) I think if I am not mistaken the messages you show now have to do with the devices (and icons) already existing in your Domoticz install. If you remove the icons and devices it should not show these messages.

Luigi-01 commented 4 years ago

Sorry, that you have to had to wait. On the server my Domoticz is running again, Ubuntu 18.04. However I noticed that pytonth plugins is not working properly. there my server already went down the last time, I installed domoticz on my desktop computer. None of the installs described on the wiki page is 100% OK. for that reason I have re-install everything again. give me a moment. however the log was from your plugin. there was nothing else running on domoticz.

sincze commented 4 years ago

Is it working for you now with 2020.1 ?

Luigi-01 commented 4 years ago

I have made a new install, (Ubuntu 18.04) and running the latest Domoticz version. The errors are still the same, No Icons and a lot of errors 2020-05-17 10:09:37.341 Error: (Growatt) 'onStart' failed 'KeyError'. 2020-05-17 10:09:37.341 Error: (Growatt) ----> Line 263 in '/home/milaan/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart 2020-05-17 10:09:37.341 Error: (Growatt) ----> Line 135 in '/home/milaan/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function onStart 2020-05-17 10:09:37.341 Error: (Growatt) ----> Line 352 in '/home/milaan/domoticz/plugins/Domoticz-Growatt-Webserver-Plugin/plugin.py', function createDevices

2020-05-17 10:14:37.704 (Growatt) HTTP Details (3): 2020-05-17 10:14:37.704 (Growatt) >'Status':'200' 2020-05-17 10:14:37.704 (Growatt) >'Headers': 2020-05-17 10:14:37.705 (Growatt) ---->'Date':'Sun, 17 May 2020 08:14:37 GMT' 2020-05-17 10:14:37.705 (Growatt) ---->'Content-Type':'application/json;charset=UTF-8' 2020-05-17 10:14:37.705 (Growatt) ---->'Transfer-Encoding':'chunked' 2020-05-17 10:14:37.705 (Growatt) ---->'Connection':'keep-alive' 2020-05-17 10:14:37.705 (Growatt) ---->'Set-Cookie': 2020-05-17 10:14:37.705 (Growatt) --------['JSESSIONID=34014FDE139C141E4833CED889406E6F; Path=/; HttpOnly'] 2020-05-17 10:14:37.705 (Growatt) --------['SERVERID=1768bb2315ad6ad0a1e6c6b900c2acb6|1589703277|1589703277;Path=/'] 2020-05-17 10:14:37.705 (Growatt) >'Data':'b'{"back":{"isOpenDeviceList":1,"isOpenDeviceParams":0,"data":[{"plantName":"2015-03-25","plantId":"11682"}],"service":"1","quality":"0","isOpenSmartFamily":0,"totalData":{},"success":true,"user":{"uid":"","userLanguage":"en","inverterGroup":[],"timeZone":1,"lng":"","dataAcqList":[],"type":0,"password":"7c48e1b1375ebdcf1cc91c16bd9dfea1","isValiPhone":0,"kind":0,"mailNotice":true,"id":8776,"lastLoginIp":"100.116.18.35","phoneNum":"","approved":false,"area":"Europe","smsNotice":false,"isAgent":0,"token":"","nickName":"","parentUserId":0,"customerCode":"","counrty":"Netherlands","isPhoneNumReg":0,"createDate":"2015-03-25 20:10:38","rightlevel":1,"appType":"a","serverUrl":"","lat":"","lastLoginTime":"2020-05-17 16:14:39","roleId":0,"enabled":true,"agentCode":"","inverterList":[],"isValiEmail":0,"accountName":"w.milaan@upcmail.nl","email":"w.milaan@upcmail.nl","company":"","activeName":"","codeIndex":1,"appAlias":"w.milaan@upcmail.nl","isBigCustomer":0,"noticeType":""},"msg":"","app_code":"15"}}'' 2020-05-17 10:14:37.705 (Growatt) Retrieved following json: {"back": {"isOpenDeviceList": 1, "isOpenDeviceParams": 0, "data": [{"plantName": "2015-03-25", "plantId": "11682"}], "service": "1", "quality": "0", "isOpenSmartFamily": 0, "totalData": {}, "success": true, "user": {"uid": "", "userLanguage": "en", "inverterGroup": [], "timeZone": 1, "lng": "", "dataAcqList": [], "type": 0, "password": "7c48e1b1375ebdcf1cc91c16bd9dfea1", "isValiPhone": 0, "kind": 0, "mailNotice": true, "id": 8776, "lastLoginIp": "100.116.18.35", "phoneNum": "", "approved": false, "area": "Europe", "smsNotice": false, "isAgent": 0, "token": "", "nickName": "", "parentUserId": 0, "customerCode": "", "counrty": "Netherlands", "isPhoneNumReg": 0, "createDate": "2015-03-25 20:10:38", "rightlevel": 1, "appType": "a", "serverUrl": "", "lat": "", "lastLoginTime": "2020-05-17 16:14:39", "roleId": 0, "enabled": true, "agentCode": "", "inverterList": [], "isValiEmail": 0, "accountName": "w.milaan@upcmail.nl", "email": "w.milaan@upcmail.nl", "company": "", "activeName": "", "codeIndex": 1, "appAlias": "w.milaan@upcmail.nl", "isBigCustomer": 0, "noticeType": ""}, "msg": "", "app_code": "15"}}

Gr. Walter

differentieel commented 4 years ago

2020-05-17_1124_No_data_Growatt No Data for me as well. RPI ZeroW with Raspian Buster API address is server.growatt.com - the same as the Shine app - in de debug it is: server-api.growatt.com pasword replaced with XXXXXXXX Debuglog messages: 2020-05-17 11:30:46.517 (Growatt Inverter) 78 2d 77 77 77 2d 66 6f 72 6d 2d 75 72 6c 65 6e 63 6f 64 65 x-www-form-urlencode 2020-05-17 11:30:46.517 (Growatt Inverter) 64 3b 20 63 68 61 72 73 65 74 3d 75 74 66 2d 38 0d 0a 43 6f d;.charset=utf-8..Co 2020-05-17 11:30:46.518 (Growatt Inverter) 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 nnection:.keep-alive 2020-05-17 11:30:46.518 (Growatt Inverter) 0d 0a 48 6f 73 74 3a 20 73 65 72 76 65 72 2d 61 70 69 2e 67 ..Host:.server-api.g 2020-05-17 11:30:46.518 (Growatt Inverter) 72 6f 77 61 74 74 2e 63 6f 6d 0d 0a 55 73 65 72 2d 41 67 65 rowatt.com..User-Age 2020-05-17 11:30:46.518 (Growatt Inverter) 6e 74 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e 30 0d 0a 41 63 nt:.Domoticz/1.0..Ac 2020-05-17 11:30:46.519 (Growatt Inverter) 63 65 70 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 0d cept-Encoding:.gzip. 2020-05-17 11:30:46.519 (Growatt Inverter) 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 36 34 0d .Content-Length:.64. 2020-05-17 11:30:46.519 (Growatt Inverter) 0a 0d 0a 70 61 73 73 77 6f 72 64 3d 61 32 61 35 63 64 66 65 ...password=XXXXXXX 2020-05-17 11:30:46.520 (Growatt Inverter) 61 35 34 63 30 33 63 30 66 34 30 39 39 31 64 62 35 37 34 65 a54c03c0f40991db574e 2020-05-17 11:30:46.520 (Growatt Inverter) 61 63 35 37 26 75 73 65 72 4e 61 6d 65 3d 64 69 66 66 65 72 ac57&userName=differ 2020-05-17 11:30:46.520 (Growatt Inverter) 65 6e 74 69 65 65 6c .. .. .. .. .. .. .. .. .. .. .. .. .. entieel 2020-05-17 11:30:46.567 (Growatt Inverter) Pushing 'ReadEvent' on to queue 2020-05-17 11:30:46.571 (Growatt Inverter) Processing 'ReadEvent' message 2020-05-17 11:30:46.572 (Growatt Inverter) Received 362 bytes of data 2020-05-17 11:30:46.572 (Growatt Inverter) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 44 61 74 HTTP/1.1.200.OK..Dat 2020-05-17 11:30:46.573 (Growatt Inverter) 65 3a 20 53 75 6e 2c 20 31 37 20 4d 61 79 20 32 30 32 30 20 e:.Sun,.17.May.2020. 2020-05-17 11:30:46.573 (Growatt Inverter) 30 39 3a 33 30 3a 34 36 20 47 4d 54 0d 0a 43 6f 6e 74 65 6e 09:30:46.GMT..Conten 2020-05-17 11:30:46.573 (Growatt Inverter) 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f t-Type:.application/ 2020-05-17 11:30:46.574 (Growatt Inverter) 6a 73 6f 6e 3b 63 68 61 72 73 65 74 3d 55 54 46 2d 38 0d 0a json;charset=UTF-8.. 2020-05-17 11:30:46.574 (Growatt Inverter) 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e 67 3a 20 63 Transfer-Encoding:.c 2020-05-17 11:30:46.575 (Growatt Inverter) 68 75 6e 6b 65 64 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 hunked..Connection:. 2020-05-17 11:30:46.575 (Growatt Inverter) 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 53 65 74 2d 43 6f 6f 6b keep-alive..Set-Cook 2020-05-17 11:30:46.575 (Growatt Inverter) 69 65 3a 20 4a 53 45 53 53 49 4f 4e 49 44 3d 39 37 32 39 35 ie:.JSESSIONID=97295 2020-05-17 11:30:46.576 (Growatt Inverter) 38 35 35 42 36 36 41 35 31 35 41 42 37 32 33 44 45 46 31 41 855B66A515AB723DEF1A 2020-05-17 11:30:46.576 (Growatt Inverter) 46 46 34 43 46 34 37 3b 20 50 61 74 68 3d 2f 3b 20 48 74 74 FF4CF47;.Path=/;.Htt 2020-05-17 11:30:46.576 (Growatt Inverter) 70 4f 6e 6c 79 0d 0a 53 65 74 2d 43 6f 6f 6b 69 65 3a 20 53 pOnly..Set-Cookie:.S 2020-05-17 11:30:46.577 (Growatt Inverter) 45 52 56 45 52 49 44 3d 31 33 64 31 36 32 66 34 38 39 63 64 ERVERID=13d162f489cd 2020-05-17 11:30:46.577 (Growatt Inverter) 61 63 38 34 32 65 62 37 32 35 31 31 62 33 64 34 38 32 32 31 ac842eb72511b3d48221 2020-05-17 11:30:46.577 (Growatt Inverter) 7c 31 35 38 39 37 30 37 38 34 36 7c 31 35 38 39 37 30 37 38 |1589707846|15897078 2020-05-17 11:30:46.577 (Growatt Inverter) 34 36 3b 50 61 74 68 3d 2f 0d 0a 0d 0a 32 36 0d 0a 7b 22 62 46;Path=/....26..{"b 2020-05-17 11:30:46.578 (Growatt Inverter) 61 63 6b 22 3a 7b 22 73 75 63 63 65 73 73 22 3a 66 61 6c 73 ack":{"success":fals 2020-05-17 11:30:46.578 (Growatt Inverter) 65 2c 22 6d 73 67 22 3a 22 35 30 32 22 7d 7d 0d 0a 30 0d 0a e,"msg":"502"}}..0.. 2020-05-17 11:30:46.578 (Growatt Inverter) 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 2020-05-17 11:30:46.579 (Growatt Inverter) Pushing 'onMessageCallback' on to queue 2020-05-17 11:30:46.580 (Growatt Inverter) Processing 'onMessageCallback' message 2020-05-17 11:30:46.580 (Growatt Inverter) Calling message handler 'onMessage'. 2020-05-17 11:30:46.581 (Growatt Inverter) HTTP Details (3): 2020-05-17 11:30:46.581 (Growatt Inverter) >'Status':'200' 2020-05-17 11:30:46.582 (Growatt Inverter) >'Headers': 2020-05-17 11:30:46.582 (Growatt Inverter) ---->'Date':'Sun, 17 May 2020 09:30:46 GMT' 2020-05-17 11:30:46.583 (Growatt Inverter) ---->'Content-Type':'application/json;charset=UTF-8' 2020-05-17 11:30:46.583 (Growatt Inverter) ---->'Transfer-Encoding':'chunked' 2020-05-17 11:30:46.584 (Growatt Inverter) ---->'Connection':'keep-alive' 2020-05-17 11:30:46.584 (Growatt Inverter) ---->'Set-Cookie': 2020-05-17 11:30:46.585 (Growatt Inverter) --------['JSESSIONID=97295855B66A515AB723DEF1AFF4CF47; Path=/; HttpOnly'] 2020-05-17 11:30:46.585 (Growatt Inverter) --------['SERVERID=13d162f489cdac842eb72511b3d48221|1589707846|1589707846;Path=/'] 2020-05-17 11:30:46.586 (Growatt Inverter) >'Data':'b'{"back":{"success":false,"msg":"502"}}'' 2020-05-17 11:30:46.588 (Growatt Inverter) Retrieved following json: {"back": {"success": false, "msg": "502"}} 2020-05-17 11:30:46.588 (Growatt Inverter) Login Succesfull 2020-05-17 11:30:46.588 (Growatt Inverter) No defined keys found!

differentieel commented 4 years ago

sorry, almost forgot: Domoticz 2020,2

sincze commented 4 years ago

Currently on Domoticz 2020.2 (build 12057)

image

Still working here. 502 HTTP should not happen for only specific people.

@Luigi-01 that looks as if the login is starting indeed. are you currently using by master or dev plugin ?

sincze commented 2 years ago

Closed issue, no update from ticket supplier.