skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
16 stars 4 forks source link

Update also queued in case of errored action #51

Open WebSpider opened 2 weeks ago

WebSpider commented 2 weeks ago

In v1.4.2, when an action (either initiated by the app, or by the integration) results in an error, we still queue a request for a new status. This can probably be dropped.

Related logs:

2024-09-29 22:50:30.919 DEBUG (MainThread) [myskoda.mqtt] An operation 'start-window-heating' is now in progress. Trace id: 2ecdfa089f011698c12c779290d3bd9d
2024-09-29 22:51:36.557 DEBUG (MainThread) [myskoda.mqtt] Message (operation-request) received for VIN on topic air-conditioning/start-stop-window-heating: b'{"version":1,"operation":"start-window-heating","status":"ERROR","errorCode":"timeout","traceId":"a640ba666d60ed881c1e7aa5c38936a4","requestId":"6c3fd7e7-b494-489e-977f-a217dbe47e23"}'
2024-09-29 22:51:36.557 DEBUG (MainThread) [myskoda.mqtt] Operation 'start-window-heating' for trace id 'a640ba666d60ed881c1e7aa5c38936a4' completed.
2024-09-29 22:52:06.558 DEBUG (MainThread) [custom_components.myskoda.coordinator] Updating air conditioning for VIN
2024-09-29 22:52:06.961 DEBUG (MainThread) [custom_components.myskoda.coordinator] Manually updated myskoda data
WebSpider commented 1 day ago

After some thought: We should probably refresh the car if we get an error.