flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
383 stars 194 forks source link
2008 208 api citroen connected-car corsa-e ds e-208 home-assistant home-automation opel peugeot psa psacc vauxhall

Remote Control of PSA car

Codacy Badge Codacy Badge Publish Docker image Donate

This is a Python program to control and get information from a PSA car.

I test it with a Peugeot e-208, but it works with other PSA vehicles (Citroen, Opel, Vauxhall, DS).

With this app you will be able to:

The official API is documented here but it is not totally up to date, and contains some errors.

I. Installation

Look at API documentation

III. Use the dashboard

You can add the -r argument to record the position of the vehicle and retrieve this information in a dashboard.

python3 psa-car-controller -f config.json -c charge_config.json -r

You will be able to visualize your trips, your consumption and some statistics:

Screenshot_20210128_104519

After a successful launch of the app, a config.ini file will be created. In this file you can set the price you pay for electricity in the following format "0.15".

If you have a special price during the night you can set "night price", "night hour start" and "night hour end". Hours need to be in the following format "23h12".

You can modify a price manually in the dashboard. It can be useful if you use public charge point.

V. Connection to other services:

FAQ

If you have a problem or a question, please check if the answer isn't already in the FAQ.

Contribute

If you need information to contribute or edit this program go here.

Donation

If you want to thank me for my work :smile:

donate