It would be awesome to have this integration. Unfortunately I’m not up to the task. Does anyone want to try or have managed to make it work?
I think creating an intergration based on that old API isn’t a good idea. It was updated the last time in 2016. There is a new API which is not out for the public yet:
Looks very promissing with a whole new level of possibilities like remote control of the car which wasn’t possible with the old api.
As I further investigated in a french forum, it looks like that the old api isn’t even working properly anymore, since they discontinued it back in 2019 I guess. You can only get some basic informations from your car and telemetric services won’t work anymore.
So at least we can stay hyped for that new API.
I am going to send a ticket to psa. Maybe they already have a release date.
Did you already get a Release Date. Also waiting for rhis
Sadly not, I already sent round about 6 mails to them since my last post. Didn’t receive any information back…
I check the website weekly to see, if there is any change, but till now - nothing.
Hope they push this out soon.
I guess the first thing which changes will be the app for mobile, and after that the API will officially be accessible.
They problably will include more functions to it, as BMW has now with their new mobileapp (at least I hope so …).
Some awesome dude with a e208 cracked down on the phone app API and i am really looking forward to get this in an integration (also having one)
It should work on Citroen, Peugeot and Opel Car.
I tried to understand how the oauth2 helper in HA work but integration are way over my skill.
I really hop someone could make a basic custom integration from that for any PSA car
I successfully got my credentials Like described on GitHub. But could Not Test the Python Server. Would IT be possible top use the appdaemon Integration to Run the Python Server from flobz?
Another Link for a feedom Plugin:
Flobz Python Server ist working Well. But i saw that PSA ist using a mqtt Broker.maybe the easiest and best way is to Connect psa mqtt with HA mqtt?
From what i have read the MQTT client is using the token gathered from the API to authenticate with PSA MQTT broker.
It therefor require a special type of MQTT client, and i don’t believe the one in HA is made for.
Plus they seam to be some control only available through the API. A full implementation, maybe without the sql storage of the trip, look like a better option.
Sadly it look like we don’t have a lot of Python dev with a recent PSA car, and time to implement this right now.
I managed to get the data through flobz Server and restful Sensors and commands in HA. For the Moment this is a workaround,but it is ok for me.
What sadden me is the lack of token renewal on this project.
You have to purge the app to avoid it from renewing it early, but also have to get a new one from scratch after a little bit.
With all the helper in HA, i’m sure it could be trivial for someone who know what they are doing to implement it. But we aren’t enough to need this. the dev time isn’t worth it to someone who don’t have a car using this.
@vlycop: Thank you for your feedback and i fully understand it.
That’s ok, i think there are thing with more importance!
Maybe you can give me a hint to optimize the workaround.
The server allows only one request euch minute, thats why it would be cool to combine the json subfolders into one request, i that possible? if yes how can i do that??
The flobz plugin, is not working the expected way. i’ve read that the openhab community already developed a binding.
Maybe anyone can port this to home assistant?