davidgiga1993 / AudiAPI

Audi MMI Api
84 stars 28 forks source link

Locking/unlocking #6

Closed arjenvrh closed 5 years ago

arjenvrh commented 5 years ago

Hi David

Thanks for the great library. I was wondering where you got the information on the API to develop this library. I would like to extend it with locking/unlocking, but I'm having a hard time finding out the correct rest calls. Reverse engineering the myaudi calls with mitmproxy unfortunately was no success.

Regards Arjen

davidgiga1993 commented 5 years ago

There are multiple ways to do so:

arjenvrh commented 5 years ago

Unfortunately I only have access to an iOS device, making it hard to use mitmproxy. I glanced at the decompiled code, I don't think analysing it will be fun... ;-)

davidgiga1993 commented 5 years ago

You can search for the @Path annotations, it should give you a hint in which files to look

arjenvrh commented 5 years ago

Well I've found all the relevant calls, but haven't been able how to add the secure pin needed for the locking/unlocking calls.

Anyway just to let you know in case you're interested: I've started integrating your library as an add-in to Home Assistant. See https://github.com/arjenvrh/audi_connect_ha