skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
81 stars 13 forks source link

Limit requested data for an access request #149

Closed WebSpider closed 2 days ago

WebSpider commented 2 weeks ago

The "access-request"-type MQTT event is emitted for almost any action that takes place to/in the car. Opening doors, turning on lights, setting charge limits remotely all involve the "access-request" event.

Currently, we update the complete car. This is 8 API requests, consisting of:

We don't do this on every event, since we throttle these requests for 30s, but still, that's a lot of information to refresh.

I propose we trim down the access-request events to the most interesting updates:

Reason for this is that other, related, events already trigger other updates.

WebSpider commented 2 days ago

With the amount of supported cars increasing, it is becoming increasingly impossible to limit requests. Let's just forget about this for now.