Peugeot Citroen DS cars - Connected Car

Hey, I am using the home assistant add-on and I don’t know exactly which IP should I use… since it’s a docker container I imagine localhost won’t work, neither my Raspberry Pi local IP right? Should I use the IP it shows in the logs when I launch the add-on? Mine says:

2023-08-04 22:59:22,035 :: INFO :: update_data
2023-08-04 22:59:24,307 :: INFO ::  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

I use the hostname. So when you open PSA Controller addon page and you see all the toggles “start on boot”, “watchdog”, etc. In the same place, you’ll see also hostname field. That’s the value I use plus the :5000 port.

1 Like

I wonder does the country code make a difference who will get GPS coordinates and who is not.

My privacy setting is “none” and I have never seen any location information on the PSACC map.

And do you also use the official app at the same time with PSACC?

yeah, you need the official app to keep the connection to the car (the car will dropp the connection if the it drives for a while without being connected to your phone).

I got some location info on the 21st. of July, then nothing and the consistantly since the 27th. of July.

1 Like

Thanks for the information. I will install the official app and try again. Let’s see will I get some coordinates :smiley:

Preconditioning program

Is possible to activate a preconditioning program using this API?

So if I have schedule for 8am, I would like to be able active/deactivate it. In summer time using HA to trigger the preconditioning on/off is not much of an issue, but I’m more thinking about the winter where I assume the outside temperature plays more a role in the preconditioning duration.

My PSA integration failed for the first time in ages .

I discovered for what ever reason the local IP address had changed in the add-on and none of my sensors were working.

This cost me over £3.00 as my programs failed to stop the charge at the correct time :frowning:

So I suggest everybody who is running the integration and using the local IP address

http://LOCAL.IP.OF.SERVER:5000/get_vehicleinfo/VINNUMBER?from_cache=1

change the IP address to the host name . This can be found on the info screen of the add-on in my case b9f12d83-psacc.

This will work regardless of the local IP and should not change unless the add-on is removed and re-added

Neither does the IP if you did not give Home Assistant one from DHCP. This is a no go for devices that stay in your LAN forever. My IP is the same since I started using HA. It’s more likely that your DNS will make problems and the addin will not find anything anymore than this happening.

No my HA has a static IP . Each add-in is allocated it’s own internal IP . The host name of the add-in is associated to that internal IP ( Each add-in is a docker container with its own internal network).

In my case the IP OF the PSA add-in changed from 172.30.33.7 to 172.30.33.5

if I run a ping inside of HA OS you can see all the internal IP’s

image

If I had used the host name of the add-in rather than the internal IP all would have been good :slight_smile:

This setting is your best friend then. Use it and set the HA static IP to connect to the addon from then on. Best and most solid solution.

I’ve lost the graphs on Summery page and the map on the Map page after I upgraded the add-on to v3.0.13… Have any of you expirienced something similar?

Summary works on mine . Map is always hit and miss for me, currently not working . It seem to be logging journeys OK . Not been anywhere in the car for a couple of days , will update again when I have been somewhere ( sad) :slight_smile:

I can confirm Map not working on web interface but GPS data is fine and updating correctly

After last update . map working again :slight_smile:

Yeah! :slight_smile: And the graphs on the summery page are back too!

I try to install the add on in HA but get the message

Failed to install add-on
Can't install flobz/psa_car_controller:v3.1.0: 404 Client Error for http+docker://localhost/v1.43/images/flobz/psa_car_controller:v3.1.0/json: Not Found ("No such image: flobz/psa_car_controller:v3.1.0")

Anyone knows how to solve this? It works installing other add ons.

How are you trying to install it? Are you following this guide? https://github.com/flobz/psacc-ha/blob/e9835005198779e59b03466bd6e009740ca2baef/psacc-ha/README.md

Yes, exactly that guide. I get the error message on step 7 of the guide.
Don’t have any issues installing any other add-on.

After my problems at beginging it works fine. Now I have another error

Logger: homeassistant.components.rest.util
Source: components/rest/util.py:37
Integration: RESTful (documentation, issues)
First occurred: 20:23:26 (3 occurrences)
Last logged: 20:25:26

REST result could not be parsed as JSON

I found this issue https://github.com/home-assistant/core/issues/94561

rest_command:
  mokka_e_wake_up:
    url: "http://192.168.178.91:5000/wakeup/VXKUKZKXZN"

  # mokka_e custom charging threshold
#  mokka_e_change_charge_threshold:
#    #    url: "http://192.168.178.91:5000/charge_control?vin=VXKUKZKXZNW&percentage={{ states('input_number.mokka_e_charge_threshold_slider') | int }}"
#    url: "http://192.168.178.91:5000/charge_control?vin=VXKUKZKXZNW0&percentage=%7B%7B states('input_number.mokka_e_charge_threshold_slider') | int %7D%7D"
#    method: GET

Than I set it in “#”, but the error occurs again.

Is there somebody to help?

try using the host-name of add-in rather than the ip addresss of host in my case

http://b9f12d83-psacc:5000” You can find host name in the add-in for the PSA Controller