Volvo's PingFederate auth API now requires a POST request for the
continueAuthentication step after OTP verification. Using GET returns
the same OTP_VERIFIED state in a loop, never progressing to COMPLETED,
which causes a KeyError on 'authorizeResponse'.
Changing auth_session.get() to auth_session.post() with an empty JSON
body causes the API to return COMPLETED with the expected authorizeResponse.
Add separate sensors for TA statistics
averageFuelConsumptionAutomatic.value
averageEnergyConsumptionAutomatic.value
averageSpeedAutomatic.value
tripMeterAutomatic.value
* better logging, indicate URL used on API errors, check exceptions in more places to dont kill threads, add option for mqtt logging
* dont force token renew on 5xx errors
* indicate payload on error message to understand better issue #270
* better checking on received update_interval #270
---------
Co-authored-by: Linus Dietz <45101649+Dielee@users.noreply.github.com>
* Multiple vccapikeys function
* Reduce api calls for key checks
* Change sleeptime
* Optimize logging
* Format log datetime
* Change default conf
* Set device offline, if no working vcc api key can be found
* Fix climate scheduler
* Only redact sensitive data if debug is enabled
* Added vehicle diagnostics for additional sensors (#76)
Add support for vehicle diagnostics data
---------
Co-authored-by: Arthur van der Peijl <arthur@artned.org>
* Reduce VEHICLE_DIAGNOSTICS_URL api calls
* Bump version
---------
Co-authored-by: Arthur van der Peijl <aavanderpeijl@gmail.com>
Co-authored-by: Arthur van der Peijl <arthur@artned.org>
* Add logic to turn climate switch off if driver door is opened
* Update car data after climate state change
* Climate stop on left or right door open
* Bump version