Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVICE_COMMUNICATION_ERROR #361

Open
CFenner opened this issue Feb 23, 2024 · 1 comment
Open

DEVICE_COMMUNICATION_ERROR #361

CFenner opened this issue Feb 23, 2024 · 1 comment

Comments

@CFenner
Copy link
Member

CFenner commented Feb 23, 2024

From time to time I see PyViCareInvalidDataError in HA. It would be nice if this would be detected as gateway being offline and setting the state respectively instead of failing.

Invalid data from Vicare server: {'viErrorId': '|00-bc04a79ce06442efa7a77de4e7287029-f22ac2b8491e4b09-01.d35d83cd_', 'statusCode': 400, 'errorType': 'DEVICE_COMMUNICATION_ERROR', 'message': '', 'extendedPayload': {'httpStatusCode': 'NotFound', 'code': '404', 'reason': 'GATEWAY_OFFLINE'}}
@CFenner
Copy link
Member Author

CFenner commented Jul 9, 2024


File "/usr/local/lib/python3.12/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
File "/usr/local/lib/python3.12/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
File "/usr/local/lib/python3.12/site-packages/PyViCare/PyViCareHeatingDevice.py", line 275, in getOneTimeCharge
File "/usr/local/lib/python3.12/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
File "/usr/local/lib/python3.12/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-e744956cbcfa402891faefbc36cc12ad-9054a3fcbabb49d7-01.58eacb96_', 'statusCode': 400, 'errorType': 'DEVICE_COMMUNICATION_ERROR', 'message': '', 'extendedPayload': {'httpStatusCode': 'NotFound', 'code': '404', 'reason': 'GATEWAY_OFFLINE'}}
2024-07-08 05:48:41.924 ERROR (SyncWorker_0) [ViCare] Missing 'data' property when fetching data.
2024-07-08 05:48:41.913 ERROR (MainThread) [homeassistant.components.climate] Error while setting up vicare platform for climate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant