mario-peters / Domoticz-Home-Connect-Plugin

Domoticz Home-Connect Plugin
11 stars 7 forks source link

suddenly errors and stops working #17

Closed LorDHarA closed 3 years ago

LorDHarA commented 3 years ago

Hello,

My plugin always ran successfully. Suddenly it has stopped and I cannot find it. My Domoticz log is giving the following output:

021-02-22 20:25:30.335 (Magnetron) onStop called 2021-02-22 20:25:30.302 Status: (Magnetron) Stop directive received. 2021-02-22 20:25:30.302 Status: (Magnetron) Exiting work loop. 2021-02-22 20:25:30.702 Status: (Magnetron) Stopping threads. 2021-02-22 20:25:30.703 Status: (Magnetron) Stopped. 2021-02-22 20:25:30.703 Status: (Magnetron) Started. 2021-02-22 20:25:31.652 (Magnetron) onStart called Domoticz-Home-Connect-Plugin 2021-02-22 20:25:31.646 Status: (Magnetron) Entering work loop. 2021-02-22 20:25:31.647 Status: (Magnetron) Initialized version 3.1.0, author 'Mario Peters' 2021-02-22 20:25:33.772 (Magnetron) device_code: bc18d3d1-0blablblabla 2021-02-22 20:25:33.774 (Magnetron) verification_uri_complete: https://api.home-connect.com/security/oauth/device_verify?user_code=XXXX-XXXX 2021-02-22 20:25:34.189 (Magnetron) sessionid: CTYPE html> 2021-02-22 20:25:34.189 2021-02-22 20:25:34.189 2021-02-22 20:25:34.189 2021-02-22 20:25:34.189 <meta http-equiv= 2021-02-22 20:25:34.311 (Magnetron) Device "bc18d3d1-blablabla" is authorized by Home-Connect. 2021-02-22 20:25:34.731 (Magnetron) Device "bc18d3d1-blablabla6" has token: 2021-02-22 20:25:34.952 Error: (Magnetron) 'onStart' failed 'TypeError':'string indices must be integers'. 2021-02-22 20:25:34.960 Error: (Magnetron) ----> Line 362 in '/home/pi/domoticz/plugins/HomeConnect/plugin.py', function onStart 2021-02-22 20:25:34.961 Error: (Magnetron) ----> Line 89 in '/home/pi/domoticz/plugins/HomeConnect/plugin.py', function onStart 2021-02-22 20:25:34.961 Error: (Magnetron) ----> Line 90 in '/home/pi/domoticz/plugins/HomeConnect/homeconnecthelper.py', function gethaId

when I look in the logs of the service it says that connection to service and port is refused. When I look it seems to run, but I am not sure if I am calling the service correctly.

Do you have any idea what I am doing wrong? Port is openen on 8001, no firewall behind. just stopped from one to another day.

my daemon log says like the attachement.

homeconnectSSE_Oven.log

any idea?

Thank you for you time

Harald @

charlesmichiels commented 3 years ago

Same behaviour here, although my first try and has not worked before

2021-02-22 22:32:16.261 (Dishwasher) onStart called Domoticz-Home-Connect-Plugin 2021-02-22 22:32:16.559 (Dishwasher) device_code: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2021-02-22 22:32:16.559 (Dishwasher) verification_uri_complete: https://api.home-connect.com/security/oauth/device_verify?user_code=XXXX-XXXX 2021-02-22 22:32:16.894 (Dishwasher) sessionid: CTYPE html> 2021-02-22 22:32:16.894 2021-02-22 22:32:16.894 2021-02-22 22:32:16.894 2021-02-22 22:32:16.894 <meta http-equiv= 2021-02-22 22:32:16.258 Status: (Dishwasher) Entering work loop. 2021-02-22 22:32:16.259 Status: (Dishwasher) Initialized version 3.2.1, author 'Mario Peters' 2021-02-22 22:32:17.022 (Dishwasher) Device "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" is authorized by Home-Connect. 2021-02-22 22:32:17.538 (Dishwasher) Device "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" has token: 2021-02-22 22:32:17.732 Error: (Dishwasher) 'onStart' failed 'TypeError':'string indices must be integers'. 2021-02-22 22:32:17.732 Error: (Dishwasher) ----> Line 459 in '/home/pi/domoticz/plugins/Domoticz-Home-Connect-Plugin/plugin.py', function onStart 2021-02-22 22:32:17.732 Error: (Dishwasher) ----> Line 95 in '/home/pi/domoticz/plugins/Domoticz-Home-Connect-Plugin/plugin.py', function onStart 2021-02-22 22:32:17.732 Error: (Dishwasher) ----> Line 91 in '/home/pi/domoticz/plugins/Domoticz-Home-Connect-Plugin/homeconnecthelper.py', function gethaId 2021-02-22 22:32:27.250 (Dishwasher) onHeartbeat called 2021-02-22 22:32:37.268 (Dishwasher) onHeartbeat called And on......

LorDHarA commented 3 years ago

Hello

I have found my solution:

In the Plugin the api key is of the development site, the credentials though are from you HomeConnect App off you phone and not from the login of the development site. I thougth I had set this the same, but once changed my HomeConnect App password and then te plugin is not working anymore, but blocking the homeconnect app login. You can see that only when you logout and login again in the homeconnect app. So you have to do the following:

There was my problem and nou running all again, two different ovens working in Domoticz correctly.

Regards Harald

For me you can close this, hope this is also the solution for charlesmichiels

charlesmichiels commented 3 years ago

Hi Harald,

Thanks so much. I have been trying for days to get this working. Your solution works for me. Special thanks for the clear steps to take!

I agree this issue can be closed

LorDHarA commented 3 years ago

Ah glad it helped! Was just a coincedence that I discovered it. Sometimes things are so simpel when you don't see it. Glad it worked. Thanks for writing back.