tuk90 / RemehaHome-Domoticz

MIT License
0 stars 0 forks source link

Remeha thermostaat - maximum retries exceeded #20

Open tomds25 opened 5 months ago

tomds25 commented 5 months ago

Hi, installed Remeha plugin on Domoticz. Worked fine, but after some requests I get below error in log:

Error: Remeha thermostaat: Error making GET request: HTTPSConnectionPool(host='api.bdrthermea.net', port=443): Max retries exceeded with url: /Mobile/api/homes/dashboard (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x3746AA10>: Failed to resolve 'api.bdrthermea.net' ([Errno 11001] getaddrinfo failed)"))

when changing poll interval to 5 minutes i get below errors in log and plugin does not work at all anymore:

2024-02-25 12:35:16.202 Error: Remeha thermostaat: (RemehaHome) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\RemehaHome-Domoticz\;C:\Program Files (x86)\Python37-32\python37.zip;C:\Program Files (x86)\Python37-32\Lib\;C:\Program Files (x86)\Python37-32\DLLs\;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python37-32;C:\Program Files (x86)\Python37-32\lib\site-packages'. 2024-02-25 12:35:16.213 Error: Remeha thermostaat: Traceback (most recent call last): 2024-02-25 12:35:16.228 Error: Remeha thermostaat: File "C:\Program Files (x86)\Domoticz\plugins\RemehaHome-Domoticz\plugin.py", line 23, in 2024-02-25 12:35:16.228 Error: Remeha thermostaat: import requests 2024-02-25 12:35:16.228 Error: Remeha thermostaat: File "C:\Program Files (x86)\Python37-32\lib\site-packages\requests__init.py", line 48, in 2024-02-25 12:35:16.229 Error: Remeha thermostaat: from charset_normalizer import version as charset_normalizer_version 2024-02-25 12:35:16.229 Error: Remeha thermostaat: File "C:\Program Files (x86)\Python37-32\lib\site-packages\charset_normalizer__init__.py", line 24, in 2024-02-25 12:35:16.229 Error: Remeha thermostaat: from .api import from_bytes, from_fp, from_path, is_binary 2024-02-25 12:35:16.229 Error: Remeha thermostaat: File "C:\Program Files (x86)\Python37-32\lib\site-packages\charset_normalizer\api.py", line 5, in 2024-02-25 12:35:16.229 Error: Remeha thermostaat: from .cd import ( 2024-02-25 12:35:16.229 Error: Remeha thermostaat: File "C:\Program Files (x86)\Python37-32\lib\site-packages\charset_normalizer\cd.py", line 14, in 2024-02-25 12:35:16.230 Error: Remeha thermostaat: from .md import is_suspiciously_successive_range 2024-02-25 12:35:16.230 Error: Remeha thermostaat: SystemError: initialization of mdmypyc did not return an extension module

what I'm I doing wrong? what is max number of requests that can be done towards api.bdrthermea.net'?

Domoticz is running on Windows in my case.

Kind regards

Tom

tuk90 commented 5 months ago

Hi Tom,

I checked my logs and I also see that I have had this error this night. I poll every 30 seconds and it is working properly except for last night where it was down.

Since it is not a documented API, I don't know what the limit is.

The polling mechanism is not implemented properly, it does poll the time that is given but if it is bigger then 30 seconds you will get a hardware error but this is a false positive. I need to fix that sometime, for now I would suggest to use a polling of 30 seconds,

tuk90 commented 5 months ago

Ps. Are you in the newest version?

tomds25 commented 5 months ago

thanks for your answer. Problem is that my setpoint device comes in error and is not usable anymore ... newest version of what? Remeha plugin? I downloaded it from github ...

tuk90 commented 5 months ago

Version of the plugin