Ich erhalte sporadisch beim Aufruf von Funktionen aus PyViCare Fehler. Ich würde diese Fehler gerne abfangen und den Aufruf wiederholen. Zeit= 2023-12-11 07:03:44
Model= E3_Vitodens_200_0620
Online
Traceback (most recent call last):
File "/home/peter/viessmann/viessmann-monitoring-gasverbrauch.py", line 65, in <module>
temp_outside = t.getOutsideTemperature()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
return wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 70, in getOutsideTemperature
return self.service.getProperty("heating.sensors.temperature.outside")["properties"]["value"]["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
data = self.__get_or_update_cache()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 42, in __get_or_update_cache
data = self.fetch_all_features()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareService.py", line 64, in fetch_all_features
return self.oauth_manager.get(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 41, in get
self.__handle_server_error(response)
File "/home/peter/viessmann/lib/python3.11/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 63, in __handle_server_error
raise PyViCareInternalServerError(response)
PyViCare.PyViCareUtils.PyViCareInternalServerError: (PyViCareInternalServerError(...), 'Request failed with status code 502 and message "Your request could not be performed as there was a problem with external service". ViCare ErrorId: req-a5b5a4a1bd374743881640322d1e4bb8') bei der Ausführung des folgenden Python Codes vicare = PyViCare()
vicare.initWithCredentials(email, password, client_id, "token.save")
device = vicare.devices[0]
t = device.asAutoDetectDevice()
temp_outside = t.getOutsideTemperature() gibt es irgendeine Möglichkeit, Fehler in PyViCare in Python abzufangen ? was bedeutet die ViCare ErrorId: req-a5b5a4a1bd374743881640322d1e4bb8')
... Mehr anzeigen