somm15 / PyViCare

Python Library to access Viessmann ViCare API
Apache License 2.0
130 stars 84 forks source link

DEVICE_COMMUNICATION_ERROR #361

Open CFenner opened 4 months ago

CFenner commented 4 months ago

From time to time I see PyViCareInvalidDataError in HA. It would be nice it 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'}}