Peugeot Citroen DS cars - Connected Car

Hello together,
i installed the PSA connected Car in my HA.
But the only thing i see, is the Charge and the price.
(i have a Opel Mokka e and i use the Myopel app)
But how can i change the price per kwh.
i found the ini in my terminal but i didn´t know how i can change it there


can anybody help me and maybe how i can find the car in the map.
thanks

Hi all new to HA.

I have in place Home Assistant with Lovelace as per requirements.

I have also installed this integration module in HA psacc-ha/psacc-ha at main · flobz/psacc-ha · GitHub using the Repository.

How have then created a new file in HA in the location /config/sensor.yaml with the settings replacing the IPofTheSoftware:5000 with my local HA IP and the YourVIN with the VIN of our car throughout the scipt.

I have also updated the configuration.yaml with the second section again replacing the IP and VIN in the script.

Lastly I create the customize.yaml with the setting mentioned and didn’t change these for now.

I rebooted and logged into the PSA Module that was downloaded, applied our registered email address and password, which passed, the applied the OTP code with the PIN, again this passed.

I could see the battery percentage on the screen along with the Odometer reading on the PSA Car Control tab in HA yesterday but that’s all the data that is displaying.

I can see the JSON file return values if I run http://yourIP:5000/get_vehicleinfo/yourVIN and this is pulling back Preheating times.

But when I create the dashboard card I am seeing the following

Which to me means either the data is not being retrieved correctly or I have miss-configured something wrong (suspect the later)

Also the image that supposed to appear doesn’t and on looking at the card it is trying to pull the data from

type: picture
image: /local/images/e2008.png
tap_action:
  action: none
hold_action:
  action: none

But I don’t see this folder in HA.

I too am seeing the same this this morning

“401: Unauthorized”

Here it looks the same with my Opel Mokka e

Yes it’s the same car just rebadged. Stellantis own Vauxhall, Opel, Peugeot, Citroen, DS, Jeep and Fiat.

Since a few days suddenly my car location shows up. I don’t know why but I enjoy it.
Still the moving status always shows false and also no tracking of trips yet in the Map page of the My Car Info dashboard. I guess recording is not enabled which according to the manual should be done using the -r argument in: python3 psa-car-controller -f config.json -c charge_config.json -r
Where can I find this command line? Or is there another way to enable recording the position?

Hi,
As of this afternoon the battery percentage is not being updated anymore, anybode else with same? Also when I look at trips those are not updated anymore, what to do about that?
Thanks

Hi Diver77,

If you are getting the same as me and it’s says entity not available you are probable missing the last part in the Configuration.yaml.

Essentially I was missing this line, as the instructions say to create a new /config/sensor.yaml file but don’t tell you that you have to reference this.

sensor: !include sensor.yaml

Once in place I restarted Home Assistant and everything started to work.

Hi, I have similar setup, Today I discover yours :smiley: maybe you can add it here as I did :slight_smile:

Sorry for being monumentally dim/thick/stupid here… Frustrating afternoon trying to get this setup.

So far I have HA running for 12 months or so - I have the PSA Car Controller (psacc-ha/psacc-ha at 6276d1423a94f94ac49802dcfac8676fef70d3f4 · flobz/psacc-ha · GitHub) addon installed and working.

Trying to follow the guide linked from above (GitHub - Flodu31/HomeAssistant-PeugeotIntegration: Integration between Peugeot API and Home Assistant) but I cannot see how to edit the file /config/sensor.yaml which must be in the PSACC docker (but I cannot get in there to edit it) - tried following the other guide but essentially come to a circular reference back to the original guide.

Running it all on a RPi4. Main HA is on 172.30.33.1, PSACC is on 172.30.32.1 and I don’t have enough hair to be pulling more out :slight_smile:

Uuuuh, no, it’s not in the Docker. /config is the HA config folder and sensor.yaml is there or not. I for example have no sensor.yaml and added the whole bunch into configuration.yaml. If you want a sensor.yaml, add that to the beginning of your configuration.yaml:
sensor: !include sensor.yaml
This ONLY works if you don’t have any other sensor: part in your current configuration.yaml. Else you have to move the other sensors in the new file, too. There are other ways like adding only the include to the current sensor: block, but I have no clue how I should explain that.

Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhh

OK done that now I get an error that my sensor IDs are not unique (and they’re therefore unavailable)

“This entity (‘sensor.e2008_battery_autonomy’) does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.”

I’m not using it anywhere. The sensors.yaml file contains the entries as per GitHub - Flodu31/HomeAssistant-PeugeotIntegration: Integration between Peugeot API and Home Assistant - obviously updated for my IP & my VIN…

configuration.yaml contains the following:

sensor: !include includes/sensors.yaml

No other “sensor” includes - and in the other includes (script, scene,mqtt,template) there don’t appear to be any sensors defined in those either (and definitely not any related to the car)

Tried that yaml file called sensor.yaml, random.yaml - it appears to be parsed - but the sensors defined within don’t have a unique ID and are always unavailable/unusable :frowning:

Probably explaining this poorly - I’m not new to YAML/Linux etc - but this is making my head hurt.

New data: on a restart (via Developer Tools > Check & Restart) the entities become briefly available - but by the time it completes loading they’re gone again.

It’s working now and I’ve changed nothing. I bet it’s PSA’s API servers.

@hunnymonster how did you enter your phone number for the text (as i can not get past that stage) was it in the normal 07712 or using county code +447712 ?

Hey @Both

Wondering if you get to find a solution to your question ? I also have the lastposition available but missing the history
ty

Hi,

Does anybody have an idea what this could mean?

2023-02-08 19:47:54,158 :: INFO :: Connected with result code {‘session present’: 0}
2023-02-08 19:47:54,159 :: INFO :: subscribe to psa/RemoteServices/to/cid/OV-ACNT200007983641/#
2023-02-08 19:47:54,160 :: INFO :: subscribe to psa/RemoteServices/events/MPHRTServices/VIN HIDDEN
2023-02-08 19:47:54,161 :: WARNING :: Disconnected with result code 5
2023-02-08 19:47:54,162 :: WARNING :: The connection was refused.

Somehow not able to switch on preconditioning lately.

+44… it’s the only way that makes sense (given it’s not a UK-specific service)

I have tried that way in both the config and the app, but at least now I can rule that out why I never get a text. Really fed up with trying . :roll_eyes:

Hi everybody!
On one hand we have the original instructions from here: GitHub - Flodu31/HomeAssistant-PeugeotIntegration: Integration between Peugeot API and Home Assistant
On the other hand, we have several good posts here improving the original instructions.
Can someone with a good working configuration post here their full yaml setup (config, sensors, automations, etc)? I know it’s a pain to remove all your personal data such as IP and VIN, but please, find the time to help us all start with the right foot.
Thank you!

2 Likes

Hi all,

i have just a new E2008 and afcourse the first priority was to intergrate it in home assistant :wink:

But… it looks like everyting is working fine, i can see the charge overview, Control tab is also working and on my dashboard i cannot
see the Autonomy, charging status and battery status but i am missing a couple of things:

  1. Charge price? where can i adjust it?
  2. in the control tab i only see the Battery status but not the Mileage. Mileage is empty like “-km”
  3. Map is also not showing anything.
  4. Trips are also not there

the “My Peugeot” app it showing the data perfectly.