Peugeot Citroen DS cars - Connected Car

Hello :slight_smile:

I am confused about how much of this work because door sensor and moving never worked on my 208, and GPS location stoped working in march 2021

Maybe depend on PSA API…

Don’t we all have the same ? That’s an e-208 right ?

If you try this:

2.2 Get the car state from cache to avoid to use psa api too much
http://localhost:5000/get_vehicleinfo/YOURVIN?from_cache=1

what did you get ?

Summary
{"embedded": null, "links": {"_self": {"deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/1566c497a5655686153316861544651784d6a41344d7a6b6a49325534596a45315a6d4d785a475a69596a42694f5452694d5755784d6a566b59325a6a4d6a4578596d4d314d32497a4f5463774f5755314d6a4d794d6a67785a4459794d575a6b4f475a6c4d4445354d4449315a444d3d/status", "hreflang": null, "name": null, "profile": null, "templated": null, "title": null, "type": null}, "vehicle": null}, "battery": {"current": 0.0, "voltage": 89.0}, "doors_state": null, "energy": [{"updated_at": "2022-01-10 17:02:21+00:00", "autonomy": 198.0, "battery": null, "charging": {"charging_mode": "No", "charging_rate": 0, "next_delayed_time": "PT0S", "plugged": false, "remaining_time": "PT0S", "status": "Disconnected"}, "consumption": null, "level": 74.0, "residual": null, "type": "Electric"}, {"updated_at": "2021-09-15 10:17:34+00:00", "autonomy": null, "battery": null, "charging": null, "consumption": null, "level": 0.0, "residual": null, "type": "Fuel"}], "environment": null, "ignition": null, "kinetic": {"acceleration": null, "moving": false, "pace": null, "speed": null}, "last_position": {"type": "Feature", "geometry": {"coordinates": [2.00047, 48.76988, 179], "type": "Point"}, "properties": {"heading": null, "signal_quality": null, "type": "Aquire", "updated_at": "2021-03-29 07:17:22+00:00"}}, "preconditionning": {"air_conditioning": {"failure_cause": null, "programs": [{"enabled": true, "slot": 1, "recurrence": "Daily", "start": "PT6H10M", "occurence": {"day": ["Mon", "Tue", "Wed", "Thu", "Fri"]}}, {"enabled": true, "slot": 2, "recurrence": "Daily", "start": "PT16H10M", "occurence": {"day": ["Mon", "Tue", "Wed", "Thu", "Fri"]}}], "status": "Disabled", "updated_at": "2022-01-10 17:02:21+00:00"}}, "privacy": {"state": "None"}, "safety": null, "service": {"type": "Electric", "updated_at": "2022-01-10 17:02:21+00:00"}, "timed_odometer": {"updated_at": null, "mileage": 9192.5}}```

As you can see, location stopped working in march, and i can assure moving or door never update.
Climate, millage and battery do.

If it work for you, can you please tell me when you got the car, and if you have the TELEMAINTENANCE service active ?

Maybe some reading is needed ^^ "kinetic" and "last_position" fields are empty · Issue #50 · flobz/psa_car_controller · GitHub check the recent advancements. Some still can not reactivate it that way and we still dont know what’s happening if you disable the membership at free2move, but it works for me and many others.

1 Like

Ohhhh ! i didn’t check back after the norme was “they removed it from the API and they don’t want to put it back”

is that how you got it @limabravo ? Subbing to Free2move ?
Also is this linked to the door and the motion input ?

I have a nice ui i wanted to share, but it use very old version of a custom lovelace plugin so i feel that it’s not worth it.

Hi Daniel
for the change_threshold % do not works because do not send the command
its a sample command
command_on: curl -s “http://xxx.xxx.xxx.xxx:5000/charge_control?vin=YOURVIN&percentage=80

1 Like

Yes maybe for the GPS. I had a free account i think.

But door and motion don’t work for me… I can remove motion from my ui

1 Like

Ok, it make more sens to me.

I was starting to wonder if i didn’t have bigger issue than just location.

Thank

1 Like

Somehow I can’t seem to get to work the preconditioning switch. My switch looks as follows in configuration.yaml:

switch:
  - platform: command_line
    switches:
      e208_climate:
        command_on: curl -s "http://192.168.2.15:5000/preconditioning/[VIN]/1"
        command_off: curl -s "http://192.168.2.15:5000/preconditioning/[VIN]/0"
        command_state: 'curl -k --silent "http://192.168.2.15:5000/get_vehicleinfo/[VIN]?from_cache=1"'
        value_template: >
          {{ value_json.preconditionning.air_conditioning.status == 'Enabled' }}
        icon_template: >-
          {% set value = value_json.preconditionning.air_conditioning.status %}
          {% set switch = states('switch.e208_climate') %}
            {% if value == 'Enabled' %}
              mdi:car-defrost-front
            {% elif value == 'Disabled' or value == 'Finished' %}
              mdi:air-conditioner
            {% else %}
              mdi:alert
            {% endif %}
        command_timeout: 180

But whenever I turn on this switch (it reverts back as you explained in this post earlier), but nothing happens to my car…Am I missing something?

Sometimes I have the same problem :disappointed: I don’t know why for the moment …

Test just on open the command_on’s url.

Sorry, after i verifying this morning, moving work :

image

1 Like

wierd…
Would you feel OK trying to leave a door open for something like 10 mn, and see if the sensor update to ?
If you have a parking space that isn’t in a garage that would be ok, but if you are parked in a public space, i would understand that you can’t.

I can try. But I think it do not work because value is null in place of false…

Let me time to try.

1 Like

15 min and no change. I think value with “null” can be updated.

Thank you very much for trying.
I am fighting with support to fix the positioning in the API.
When this eventualy fail, i’ll sub for a month of free2move and see if this fix it.
if at least i can find the car on Hass map, i’ll be feeling way safer parking it in city.
Brain issue make it impossible for me to remember were i park after an hours … that feature was really important to me.

1 Like

Hi, I’m quite new with HA, but have some experiense with Linux enviroments. I managed to install PSA Car controller to my raspi server. It’s working Ok, but i’ll want to add config files to PSA Car controller app itself. Where in hell i can find config’s to add API keys like weather map and CO2 calculation?
If somebody could please point me to the right direction, i would really appreciate it.

Hi

thanks you so mush for your app, it’s work finelly with my 3008 Hybrid

A+

HI
I have installed the 2.6 version of this add-on. I was able to enter my car config in the setup menu :
Peugeot 3008 in France and I received a done commitment when I entered my login and password.
But when I go to OTP config and sent an SMS I never receive an SMS.

I precise that I have a mobile number in my Peugeot profile.
Does anyone was able to setup a 3008 (not electric) or any other Peugeot and is ready to share with me how i did ?
Thanks for your help
Regards.

2 Likes