Closed fredriklj closed 2 years ago
Quickly ran through the available commands and found that climate control and charge control also seem to have moved, new URI seem to be:
https://api.porsche.com/e-mobility/{country.lower()}/{language.lower()}_{country.upper()}/{vin}/toggle-direct-climatisation/{action}
https://api.porsche.com/e-mobility/{country.lower()}/{language.lower()}_{country.upper()}/{model}/{vin}/toggle-direct-charging/{action}
Thank you for this! Will fix asap :)
When trying to list available vehicles, the API responds with 401 (Unauthorized). This error was not caught, and causes an error in line 161 of connection.py, as it only expects a JSON object.
Trying to debug this, it seems the list call has moved to
Haven't had time to investigate further, so can't provide a PR. But updating getVehicles in client.py and changing line 47–59 of connection.py to this got my integration in hass to start working again:
Best, Fredrik