Thanks Bram, seems to be an issue in the oauth lib that is checking a version. I found a post on the Lyric thread stating to modify the oauthlib init.py (below) and that solved the issue for MijnSeat.
My work around until OAuth2Session requests.version TypeError gets fixed,is commenting out lines 9-12 in
/srv/homeassistant/lib/python3.5/site-packages/requests_oauthlib/init.py. Lyric component seems to be running great now.
Needs to be reverse engineered again, I suspect they are using a totally new platform PON build themselves instead of using Fleetwin. So not sure if and how it will work. (the app doesn’t really at least )
A while ago I’ve captured the data that the app sends and receives. Not all data that app needs is in the data from the server.
I’ve complained at the car dealership, Volkswagen and finally I’ve put a message on Facebook about the app. They’ve now told me that there’s a deadline and the app should be working on the 1st of September. (Which I doubt they will make)
It’s ridiculous that they kill a working app, replace it with this shit and then need another 4 months to fix it.
But you’re probably more curious to get the module working in Home Assistant
I’d love to help out and I can get the API calls from the app, however I don’t know anything about Python or how to create a module for Home Assistant.
For the ones interested, I reversed engineered the new API again today, and got it working with HASS again. I have to add all the endpoints and data now and will release it tomorrow probably…
@Bram_Kragten, Awesome thanks for creating this component! It all seems to be working.
Does the state of parking brake and the state of the doors work for any of you?
I saw the parking brake state once last week, but that was it.
I’ll try to check the status of my car tonight by connecting a proxy to my phone. I do notice that the location of my car doesn’t update in Home Assistant. In the app it is updated.
If I can help with anything else just let me know.
I understand. There’s a big chance the server might fall apart
However all the data is updating except for the location. I’ve cleaned up my configuration a bit and I will keep an eye on it to see if it changes. The location hasn’t changed in over 5 hours at the moment.
Today the location of my car updated correctly. I’ll just blame Mind Mobility for it
edit:
In the morning the location was updated correctly, but now that I’m back home (for over 3 hours) it’s not updated. I checked it in the device_tracker.{LICENSE_PLATE} entity.
I also managed to get the data from the app when the parking brake is enabled, but I think that’s what you expected it to be:
[{
“scoreType”: “doors_locked”,
“score”: null
}, {
“scoreType”: “parking_brake”,
“score”: true
}, {
“scoreType”: “range_fuel”,
“score”: 830.0
}, {
“scoreType”: “state_of_charge”,
“score”: null
}, {
“scoreType”: “battery_charging”,
“score”: null
}, {
“scoreType”: “fuel_level”,
“score”: 40.0
}, {
“scoreType”: “range_electric”,
“score”: null
}, {
“scoreType”: “battery_voltage”,
“score”: 12.2
}]
It seems that you have to engage the parking brake when the engine is still running, then Mind Mobility will pick it up…
Hopefully it’s an easy fix
Should your script also work with Skoda? I tried to configure the component for him, but I got some errors. When I tried my login on his Home Assistant it did work.