Closed doubledrat closed 1 year ago
Actually the response of get_latest_vehicle_data() has changed:
{
"pb_data": "EiIKAg...",
"data": {
"charge_state": {
"battery_heater_on": false,
etc.
I am going to make a fix for this.
"CACHED_PROTO_VEHICLE_DATA" has been renamed to "LATEST_VEHICLE_DATA" in official app version 4.12 and it has been removed in app version 4.13. I am guessing that "VEHICLE_DATA" is now returning cached data when the vehicle is asleep.
I tried the example in the README.md with 2.7.0
and vehicles[0]['charge_state']['battery_level']
gives me 0
.
I needet to use vehicles[0].get_vehicle_data()['charge_state']['usable_battery_level']
to get the correct SoC.
Should be fixed in commit 87fd806
for me at least it's now under ['data']
which breaks last_seen()
looks like gui_settings is also under there now, which will break a few other things