Groupe PSA Cars Binding (Peugeot, Citroen, DS, Opel, Vauxhall)

@emerich Thanks for catching this; this is a bug.

I fixed it, please see updated version at: Release v1.5.0 of Groupe PSA (Opel, Peugeot, Citroen, DS and Vauxhall) binding · arjanmels/openhab2-addons (github.com)

@SimiWest & @dr.gonzo Indeed via the app you can trigger a refresh. I have found a project which also is able to do this: flobz/psa_car_controller. When I find time I might try to implement this.

(Also I get random periods that even this refresh doesn’t work and/or that the PSA api is down: overall it is not the most stable system.)

1 Like

In fact I’ve tried out this project already, but I wasn’t able to reliably trigger the refresh.

@dr.gonzo Thanks for trying, that is a pitty.

Thanks for this binding.

Today, I got my e208 and the bridge went online. Also, the car is discovered.
But it stays in the state “Vehicle is not connected to the cloud”.

The myPeugeot-App is working.
Is there anything I can to (or have to do on the car) to get this cool binding to work?

Thanks in advance & cheers,
Sascha

1 Like

Hi @arjanmels,

Thanks for working on this new binding. I am really interested in testing it and connect my brand new Opel Mokka-e into my openHAB setup.

May I ask you - if you can find the time - to add it to the new Community Marketplace? Once you have done that it will be a lot easier for everyone to install it.

Best,
Christoph

Looking forward to test it as well. Will get a Mokka e after x-mas.

I moved this topic to the Bundles category and added a direct link to the latest .jar.
Hope it’s ok. @arjanmels if you consent to having it shown in the marketplace, please edit the original post and add the “published” tag.

As the Mokka e is the same as my e208, here’s my experience with go-e charger v3 and the e208 GT-Pack:

  • Only take short interruptions on the charing as after approx. 60 seconds the charger goes into fault mode, not continuing when requested to
  • Use the fake disconnect feature. 10 seconds are enough
  • Charing on one phase is best for photovoltaic charging (each Amp is around 230 W)
  • Dont use the App to query the car - it will interrupt the charging. Use openhab and this binding :+1:

We got the car for 11 days so far. Yet, it’s only charged with own generated PV energy :sun_with_face:

I am ok with having it published, but would still like to persu inclusion in the regular distribution as this has the advantage that updates to OpenHab dependencies etc. are taken care of by a broader team of maintainers.

Do I still need to do something besides adding the published tag?

No that should be it.

You’re absolutely right! While you wait for the code review process to be completed, it’s perfectly acceptable to publish the alpha/beta .jar to the marketplace and remove it when your add-on gets added to the official distribution.

I‘m running the openHAB 3.2.0 and the newest version of the groupe psa binding. I did the setup for my own mypeugeot-account as well as for the one of my friend.

Sadly I get the error “unable to get a list of vehicles” for both accounts.

Did anything change of PSA-side? MyPeugeot-app is working for me and my friend okay. Does any get the same errors or is it currently working fine for others?

1 Like

Hi, thanx for building this binding… ive just received an e208 so i tried to install the binding… added the binding to the addons folder but nothing happens… am i doeing something wrong? its realy a noob question.

everything i find on the internet this is how i must install a binding…

thank you in advance

The same here

Update: I deleted the bridge and readded it. It’s working now and my car is found. The car is marked as offline however. Is this the expected behaviour when the car is off (currently loading).

Edit 2: In the thing properties it says model: Unknown. Is that relevant? It is a Peugeot 3008 Roadtrip.

Same here, installation worked swiftly, and the car (e-2008) thing is shown as offline.

Some channels, however, carry information. The “Time of Last Update” corresponds to the time shown in the Peugeot-App (for now). In “Electricity Level” I see the SoC and in “Electric Autonomy” I find the remaining range. Both values are the same as in the Peugeot-App.

Most(All?) other channels seem to be UNDEF or NULL. I haven’t checked all of them.

Thus, the offline state seems to be correct, because the car only connects periodically (update frequency is an issue as noted before). Let’s see how it updates when the car is actually moved or charged. I could not observe that until now.

1 Like

Thank you for pointing that out! I did not realise that some channels are actually populated. I do get some more values than you do, the car is currently plugged in (loading finished). I will also observe if something else happens when the car is moving.

UPDATE: I get some updates on the charging rate channel when the car is moving. However this channel gives me a value in km/h, so its not really a charging rate at all. It could be the actual velocity but since updates only happen very rarely this is not really usable.

I also get some more values (e.g. milage).

Also, when the car is moving there are constant updates:

However, when the car is parked there are pretty much none. I don’t know about when it’s charging, yet, but according to the comments above, updates are not sent regularly.

I am currently experimenting with the Python project already mentioned. Just starting the server triggers an update. So the idea is to just have a cron job every hour or so to start and stop the server. I’ll see about the issue reported above, that the update may cause the charging to stop.

i cant even get the binding installed…
nothing is shown in the logs, when i add the jar to the addons folder.
ive updated the pi incl openhab

also when i try to install the binding via the console i get a error:

openhab> bundle:install "/usr/share/openhab/addons/org.openhab.binding.groupepsa-3.2.0-SNAPSHOT-v1.5.0.jar"
Bundle IDs: 
Error executing command: Error installing bundles:
	Unable to install bundle /usr/share/openhab/addons/org.openhab.binding.groupepsa-3.2.0-SNAPSHOT-v1.5.0.jar: org.osgi.framework.BundleException: Error reading bundle content.
openhab>    

It seems that different cars behave quite differently… I’ll try to update the software in the car today to see if this changes anything. I don’t even know if this update has anything to do with the connect features at all though…

Have you tried to install it from the marketplace? This worked well for me.