Home Assistant Add-on: PSA Car Controller

It’s mandatory to have the e-Remote Control subscription acitve? Because my free 6 months ended and now the addon only work when i have the car running.

1 Like

Hi,
Any reason for the PSA Controller return nulls in the position updates ? Location shows fine in the Opel App on Android, getting this from the controller - other fields seem OK

getting this from REST: “last_position”: {“type”: “Feature”, “geometry”: {“coordinates”: [null, null, null], “type”: “Point”}, “properties”: {“heading”: null, “signal_quality”: null, “type”: null, “updated_at”: null}}

Hello,

also wanted to install PPE for my Peugeot.
On the USER CONFIG page I entered my access data and the country code DE.
Unfortunately I get the following error message:

Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 100, in __fetch_user_info res_dict = res2.json()[" success"] KeyError: 'success' {"code":"495", "message": "Invalid or expired client certificate"}

Can someone help me?

Greetings Werner

It has been reported as an issue…

1 Like

Who can help me. i am trying to install psa that works but as soon as i get to the log in it goes wrong. I choose the car type, username of the peugeot app I enter including the password, country code NL. as soon as I click submit then it loads for a very long time and at some point then my HA restarts and can’t connect anymore.

Thanks in advance

now I get the following error:

Traceback (most recent call last): File “/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/setup/app_decoder.py”, line 100, in __fetch_user_info res_dict = res2.json()[“success”] KeyError: ‘success’ {“code”:“495”, “message”: “Invalid or expired client certificate”}

1 Like

Same for me.

1 Like

This is a really annoying integration, sometimes it works great for a couple of weeks and then suddenly out of nowhere I get the bad gateway error for the integration. Then suddenly after an HA Core update it starts working again

Hi there,

after 2 month with a non working app I got the app working a little bit and also the PSA Car Controller integration.

I own a Peugeot 208 II GT and I only get the mileage.

In fact this would be enough for me. But I cannot get the mileage back to Home Assistant to use this information for further automation.

I got some REST codes but nothing works.
Also HTML GET with CSS Selector doesn’t work.

Some information might be good from the car but the mileage which is displayed in the Add-On might be perfect for me now.

Can anybody help here?

Greets
Daniel

Does someone see that the api of stellantis is new?

Are there news about some new integrations? Thank you!

I found a simpler way:

  1. Install Advanced SSH Terminal
  2. Disable protection mode on the addon page
  3. Open the terminal
  4. Prompt docker ps | grep psa
  5. Get the first string (the id)
  6. Prompt docker inspect [the id of point 5]
  7. Look for NetworkSettings → hassio → IPAddress

Hi,
i’ve installed this integration but i’ve three issues:

  1. is there a possibility to show Mileage instead of zero?
  2. When i put my car in charge sensors “Plugged” and “Chargins status” shows “False” and “Disconnnected” without any reason
  3. I’ve recordered only two trips but i’ve done a lot of more of it. Is there a limit?

Thank you so much for your support.
Regards,

Alessandro

1 Like

Hi,
i’ve also this error on app log:

2025-01-05 23:10:13,027 :: ERROR :: refresh_vehicle_info: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/psa_client.py", line 128, in __refresh_vehicle_info
    self.get_vehicle_info(car.vin)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/psa_client.py", line 107, in get_vehicle_info
    res = self.api().get_vehicle_status(car.vehicle_id)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api/vehicles_api.py", line 1229, in get_vehicle_status
    (data) = self.get_vehicle_status_with_http_info(id, **kwargs)  # noqa: E501
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api/vehicles_api.py", line 1293, in get_vehicle_status_with_http_info
    return self.api_client.call_api(
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/oauth.py", line 107, in call_api
    return self._ApiClient__call_api(resource_path, method,
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 169, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 241, in deserialize
    return self.__deserialize(data, response_type)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 624, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 624, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/api_client.py", line 626, in __deserialize_model
    instance = klass(**kwargs)
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/models/preconditioning_air_conditioning.py", line 57, in __init__
    self.failure_cause = failure_cause
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/connected_car_api/models/preconditioning_air_conditioning.py", line 86, in failure_cause
    raise ValueError(
ValueError: Invalid value for `failure_cause` (WindowsRoofOpened), must be one of ['Defect', 'DoorOpened', 'LowBattery', 'LowFuelLevel', 'TooManyUnusedProg']

Does anyone know what could it be?
It seems that WindowsRoof opened is missing on preconditioning_air_conditioning.py

Regards,

Alessandro

I hope someone can help me.
I am having problems with the registration process for Peugeot. The first step works without any problems. But I can’t get any further with the 2nd step. What is meant by “DEV Tools” and how do I get the OAUTH code?

I have connected our DS3 car with this app, and I have an article on how I did this here: https://roenning.net/?p=988

1 Like

Thank you! I got it up and running yesterday. Unfortunately, the connection often breaks down. When I restart the addon, it works again.
Is it possible to restart an addon via an automation?

Troubleshooting PSA add-on with Home Assistant Automation – Our smart home :wink:

Hi there, is it possible to use this add-on with two Opel cars? They have separate credentials.

hello !
Great to see it works (partialy at least) on ë-C3.
do you have the MAX or the You version ?
Do you manage to connect E-route and e-Connect on the MyCitroen app before this HA plugin ?

What an awesome add on! Really love the work you have done. I’ve followed the setup of the app and that is working as expected.

When trying to setup the sensors for other automations I’m struggling to find the correct IP adress. I’ve tried the following:

  • The ip adres that was visible in the logs of the add on, in my case I could find two but both did not work:
    • 2025-01-14 20:49:20,508 :: INFO :: 172.30.32.1 - - [14/Jan/2025 20:49:20]
    • 2025-01-10 20:31:45,260 :: INFO :: * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
  • The ip adres of the raspberry pi where I have installed home assistant on.
  • localhost:5000, took a gamble and lost

In the system log I see:

Platform rest not ready yet: All connection attempts failed; Retrying in background in 30 seconds

Can anyone point me to a proper way to find the correct ip adress ?

EDIT: I eventuelly found out that on the add of the PSA Car Controller there is a hostname available. Using this one worked for me. It’s something like b9f12d83-psacc.