flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
426 stars 225 forks source link

"kinetic" and "last_position" fields are empty #50

Closed jlayec closed 1 year ago

jlayec commented 3 years ago

Describe the bug "kinetic" and "last_position" fields are empty in json answer of get_vehicleinfo/VIN Am I alone?

To Reproduce Steps to reproduce the behavior:

  1. what command did you use ? python3 server.py -l 0.0.0.0 --debug DEBUG
  2. when the bug append ? Everytime with get_vehicleinfo/VIN
  3. Does it persist after restarting the program? Yes

Here is the output of the API

            "type": "Fuel"
        }
    ],
    "environment": null,
    "ignition": null,
    "kinetic": null,
    "last_position": null,
    "preconditionning": {
        "air_conditioning": {
            "failure_cause": null,
            "programs": [
                {
                    "enabled": false,

I confirm that the privacy configuration in vehicle is share data and position (was not changed and was working before).

dreimer1986 commented 2 years ago

Neither here. No new symbol anywhere.

maivorbim commented 2 years ago

For people that made the Free2move app work, do you have two cars showing in the phone app? I have one car showing as Peugeot e208 (50 kwh) and another car showing as Peugeot e208 11 KW (50 kwh). If you have both, which did you chose as main car? It appears you cannot have both activated at the same time.

maivorbim commented 2 years ago

@dreimer1986 @farcorben do you have any input regarding my last question? Do you have two cars showing in the peugeot app when adding car by VIN number?

Also, did you receive the free2move card and activate it in the app?

farcorben commented 2 years ago

hi @dreimer1986, no sry.. my app just show one Car ... not two! I received a free2move card but i never used them ...

little additional update from my side. after canceling the free2move service at 11.02.2022 the "last_position" was sill updated by psa until the 18.02.2022 (7 days later). Since this my position is not updated anymore...

looks like "last_position" is only updated when you pay for the whole useless free2move service

albenex commented 2 years ago

@dreimer1986 @farcorben do you have any input regarding my last question? Do you have two cars showing in the peugeot app when adding car by VIN number?

Also, did you receive the free2move card and activate it in the app?

i recently activated Free2Move subscription. While adding my car i got 2 copies of same car with just "11 Kw" words more in one of them. I chose the first one and trying to add also the second one results in error. however even just adding the first one I got immediately information about battery % and when PSA app got trips I've also got kinetic and positions on psa_car_controller.

however not every time trips are collected, I think smartphone shall be connected during trips.

NB: i have e-208 GT with 11kW charger, 10" NAC

maivorbim commented 2 years ago

@dreimer1986 @farcorben do you have any input regarding my last question? Do you have two cars showing in the peugeot app when adding car by VIN number? Also, did you receive the free2move card and activate it in the app?

i recently activated Free2Move subscription. While adding my car i got 2 copies of same car with just "11 Kw" words more in one of them. I chose the first one and trying to add also the second one results in error. however even just adding the first one I got immediately information about battery % and when PSA app got trips I've also got kinetic and positions on psa_car_controller.

however not every time trips are collected, I think smartphone shall be connected during trips.

NB: i have e-208 GT with 11kW charger, 10" NAC

Thanks albenex.

Do you have Free2move app visibile in the Car app store or installed on the car?

So if I understand correctly:

dreimer1986 commented 2 years ago

I did activate the card, but using? Nope. Only one car.

albenex commented 2 years ago

@dreimer1986 @farcorben do you have any input regarding my last question? Do you have two cars showing in the peugeot app when adding car by VIN number? Also, did you receive the free2move card and activate it in the app?

i recently activated Free2Move subscription. While adding my car i got 2 copies of same car with just "11 Kw" words more in one of them. I chose the first one and trying to add also the second one results in error. however even just adding the first one I got immediately information about battery % and when PSA app got trips I've also got kinetic and positions on psa_car_controller. however not every time trips are collected, I think smartphone shall be connected during trips. NB: i have e-208 GT with 11kW charger, 10" NAC

Thanks albenex.

Do you have Free2move app visibile in the Car app store or installed on the car?

So if I understand correctly:

  • you chose the first car option in free2move app (the one without 11 kw option)
  • you did not activate the free2move card in the android app
  • everything works?

i have iphone/ios, no android i had to activate paid subscription i went to “my electric vehicle” card in free2move app, selected first car out of my VIN 077BE36A-74D5-46F1-93D7-4730E7A8DDAA

wondering what’s situation for not electric PSA cars..

maivorbim commented 2 years ago

@albenex Do you have Telemaintenance service activated from Peugeot Services Store https://account.services-store.peugeot.com/ ?

This is how it looks on my app, I cannot get pass the Vehicle connection in progress warning SmartSelect_20220304-105245_Free2Move .

albenex commented 2 years ago

@albenex Do you have Telemaintenance service activated from Peugeot Services Store https://account.services-store.peugeot.com/ ?

This is how it looks on my app, I cannot get pass the Vehicle connection in progress warning SmartSelect_20220304-105245_Free2Move .

yes i have telemaintenance service active. i think it was already activated when i bought car, however MyPeugeot app looks like this: F9C2EAEF-5268-4D3A-8616-EC2DAD287651

CalicodesIles commented 2 years ago

@maivorbim I have exactly the same issue since I subscribed mid-January. Always waiting for a vehicle connection. Already tried to remove it and re-add it without any success.

I opened a ticket but Free2move support is completely useless. Ticket is opened and escalated but… no one has answered it yet. 3 calls to tell me that they followed up the ticket, for what ? No result at all

On the other hand, they were at their best to assist me renewing my subscription (when I told them that I couldn’t check if vehicle connection was established as my credit card expired last month…)

Frankly, I don’t think that I will renew it the third month. It’s a pure scam and they laugh at us.

albenex commented 2 years ago

I've also checked if I got other icons inside NAV connected apps and nope, they're the same as always. Guys, do you have phone connected to car and running MyPeugeot app while driving? I noticed that I get trips only when phone is successfully connected (especially at the end of trip) otherwise it's not collected. Maybe such pre-requisite is needed for privacy purposes (in fact on Free2Move app you have to insert a VIN only so I could potentially get private information from a vehicle not belonging to me, just knowing their VIN.. )

CalicodesIles commented 2 years ago

@albenex In my case, yes I connect MyPeugeot every time when I use my car so trips are correctly collected by MyPeugeot iOS App (I see many people complaining about this feature but in my case it works perfectly well).

It doesn’t seem to have any effect with Free2Move.

albenex commented 2 years ago

Ok I later removed my car on Free2Move and tried adding again selecting the second option (the one with 11kW on the name) and it also worked. my paid subscription expired 4 days ago however tracks are still collected.

CalicodesIles commented 2 years ago

Well for my issue regarding connection between Free2move and the e208 vehicle, I had a few days ago an answer from Free2move support (after 2 months of silence), telling me that it should be fixed within 3 weeks... If I need this ti be fixed before the 3 weeks, they informed me that I could make an appointment in a Peugeot garage, and ask them to change the BTA (Boîtier Télématique Autonome) which is the hardware responsible for car connected services.

Of course, I won't disturb the garage for that, I'm pretty sure that they will laugh at me if I ask them to change some piece of hardware with a simple mail for proof. Moreover, I'm not sure that it could be done without a warranty subscription.

maivorbim commented 2 years ago

Well for my issue regarding connection between Free2move and the e208 vehicle, I had a few days ago an answer from Free2move support (after 2 months of silence), telling me that it should be fixed within 3 weeks... If I need this ti be fixed before the 3 weeks, they informed me that I could make an appointment in a Peugeot garage, and ask them to change the BTA (Boîtier Télématique Autonome) which is the hardware responsible for car connected services.

Of course, I won't disturb the garage for that, I'm pretty sure that they will laugh at me if I ask them to change some piece of hardware with a simple mail for proof. Moreover, I'm not sure that it could be done without a warranty subscription.

I got the same exact answer a few days ago. Also think that Peugeot Service will laugh if I ask them to change BTA and even if by luck they agree to change it for free, the replacement part will take more than 3 weeks to arrive.

Hoping they will fix it in 3 weeks, but I don't have any high hopes.

albenex commented 2 years ago

so in your cases (BTA suspected not working) you have issue also using MyPeugeot app right?

maivorbim commented 2 years ago

so in your cases (BTA suspected not working) you have issue also using MyPeugeot app right?

No, what issue? I can send remote heating commands and check charging status from MyPeugeot app just fine.

albenex commented 2 years ago

so why changing hardware module if it's an issue on just free2move APIs?

Bonxy commented 2 years ago

Since I had a play with the API and found the trip's endpoint I've been trying to get it to work. Only now have I just stumbled on this thread and realised it's broken on PSA's end. :(

Pgr73 commented 2 years ago

Hello all !

For what this is worth: after almost exactly one year, day-to-day, my car is now suddenly sending back it's GPS position :flushed: :open_mouth: :smile: !!!!! (Well, I imagine it's not the car, but PSA servers/applications that are the problem).

I promise that I did not change anything at all : No Telemaintenance service cancellation, no Free2Move (or other) subscription, no car software update from the dealer ... nothing ... just monitoring this thread to see if someone came up with a solution.

I do not know how long this will last and I hope that his will not be for one trip only :pray: !

I will provide an update in a few days and let you know how thing are evolving.

Has anyone else seen the same happening ??

Thanks and safe driving to you all :blush:.

Bonxy commented 2 years ago

@Pgr73 What do you mean the car is sending back GPS.

Are you looking at the API and seeing location/trip data?

Pgr73 commented 2 years ago

@Pgr73 What do you mean the car is sending back GPS.

Are you looking at the API and seeing location/trip data?

For one year the PSA servers where reporting back the same "frozen" GPS position for the car. Now (since yesterday), the GPS position is being updated again and is reporting the correct position and altitude, which are visible in the bashboard and on the map.

xammmue commented 2 years ago

my position is still frozen. Last update still one year ago, last moved the car yesterday around 16:00. I will do a trip this evening and report back whether something has changed. "last_position": { "type": "Feature", "geometry": { "coordinates": [ 8...., 48...., 522 ], "type": "Point" }, "properties": { "heading": null, "signal_quality": null, "type": "Aquire", "updated_at": "2021-04-10 18:14:11+00:00" } },

I did not subscribe to the Free2Move service

Bonxy commented 2 years ago

@Pgr73 Ahh i thought you meant you where seeing something update in the API.

@xammmue What request are you making to see that data? Mine returns a server error.

xammmue commented 2 years ago

@xammmue What request are you making to see that data? Mine returns a server error.

http://{{IP}}:5000/get_vehicleinfo/{{VIN}}

italoc commented 2 years ago

for me nothing is changed coordinates is always NULL

albenex commented 2 years ago

well.. as per my experience with free2move app they require just VIN so in theory with just one valid subscription you can activate API to different VINs.. there’s no login or something else.

even if my subscription terminated 1 week ago, i'm still receiving gps tracks even if it's not 100% reliable but i think it's issue PSA and or car's side.

Il giorno gio 31 mar 2022 alle 11:32 Max @.***> ha scritto:

my position is still frozen. Last update still one year ago, last moved the car yesterday around 16:00. I will do a trip this evening and report back whether something has changed. "last_position": { "type": "Feature", "geometry": { "coordinates": [ 8...., 48...., 522 ], "type": "Point" }, "properties": { "heading": null, "signal_quality": null, "type": "Aquire", "updated_at": "2021-04-10 18:14:11+00:00" } },

I did not subscribe to the Free2Move service

— Reply to this email directly, view it on GitHub https://github.com/flobz/psa_car_controller/issues/50#issuecomment-1084326360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ22U7Y2HAAKDHP7IEWOI3VCVWLNANCNFSM4ZQPLZ7Q . You are receiving this because you were mentioned.Message ID: @.***>

flobz commented 2 years ago

Position is back for me too ! A long trip can be needed for the bta update and get the position back.

albenex commented 2 years ago

lol so i subscribed to paid free2move during the worst moment as everyone is getting their API unlocked too :D that's sound great

CalicodesIles commented 2 years ago

Hello. You can ask them a refund for all months where the service was missing.

albenex commented 2 years ago

Hello. You can ask them a refund for all months where the service was missing. Le sam. 2 avr. 2022 à 11:40, albenex @.> a écrit : lol so i subscribed to paid free2move during the worst moment as everyone is getting their API unlocked too :D that's sound great — Reply to this email directly, view it on GitHub <#50 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADEBM6TQJFEMHQTMB6OI4LVDAI2BANCNFSM4ZQPLZ7Q . You are receiving this because you were mentioned.Message ID: @.>

to be honest when you subscribe for free2move paid account you do it for related charging services, not just for API unlock which are side effect of free2move utilization

CalicodesIles commented 2 years ago

I’m telling you this because I did it myself and it worked :-) They replied to my ticket and informed me that a refund will be done in the next few days.

In my case I subscribed to Free2Move only for this feature, hoping that it will solve GPS position issues.

jlayec commented 2 years ago

hello Some good news... but not yet for me even if I drove a lot in the last days.... waiting next days!

albenex commented 2 years ago

hello Some good news... but not yet for me even if I drove a lot in the last days.... waiting next days!

position report is not guaranteed! even if my API are "unlocked" sometimes psa_Car_controller doesn't receive trips even if are long ones. a trick is to either reboot addon or login to mypeugeot app from another phone. some issue may happen server side and doing this trips are being collected.

also, some other times simply trips are not uploaded from car due to lack of GSM signal. do not expect a reliable service from PSA, that's it.

HOzo123 commented 2 years ago

Hello, Position is back also for me (e208 - NAC 10"). However, the status of the data "Kinetic/Moving" is blocked at False... in the past, when "the position working", this parameter was True when the car is running. Note: I never subscribed to FreeToMove or another service. Another improvement identified for 2 days: the data "Charging/charging_rate" is now "not turning to 0" during the charge but stay at the good value (example: 14Km/h).

Pgr73 commented 2 years ago

Hello All,

I said I would provide you with an update: it's now been a week since the GPS data is back. I have just come back from a 900 km road trip and everything when just fine....Let's hope it stays like that !

e-208 averaged 14.4 kWh/100km according to car's trip computer and more like 15.15 kWh/100km according to dashboard data and 16 kWh/100km if you consider the charge current reported by the charging points. I guess it's not bad considering that most of the travelling was on mountain roads (Grenoble to Nice following Route Napoleon and back through the Verdon Gorges) and we started off in the snow @ 0°C.

Apollon77 commented 2 years ago

Hm ... my "all new e-208" do not show position (but PSA-Controller in log has "new position recorded for " - or it just logged it also if empty :-))" ... but in the JSON t is null :-(

albenex commented 2 years ago

since april i got issues syncing trips. same reported by other users. probably PSA fault here

Il giorno sab 9 apr 2022 alle 14:50 Ingo Fischer @.***> ha scritto:

Hm ... my "all new e-208" do not show position (but PSA-Controller in log has "recevied new position" ... but in the JSON t is null :-(

— Reply to this email directly, view it on GitHub https://github.com/flobz/psa_car_controller/issues/50#issuecomment-1093994455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ22U56RRPCICQHXJAW7PDVEF4JFANCNFSM4ZQPLZ7Q . You are receiving this because you were mentioned.Message ID: @.***>

szambetti commented 2 years ago

My e208 doesnt still sync the position... frozen since 2021-03-28

CalicodesIles commented 2 years ago

Follow-up since my last post : I told Free2Move that there was no improvement and they replied that update deployment is still in progress. They asked me to wait 2 weeks more and invite me to change the BTA (again…) if I need it urgently…

Of course I won’t change it because I’m sure that the garage will bill me for that.

Apollon77 commented 2 years ago

The interersting fact btw is that the app shows me the correct position of my car ... only psa-car-controller do not have it ... So the position seems to be tzere somewhere ...

albenex commented 2 years ago

The interersting fact btw is that the app shows me the correct position of my car ... only psa-car-controller do not have it ... So the position seems to be tzere somewhere ...

position showed on app is taken from phone itself when connected at car start and disconnected at car stop.. if you leave phone at home you won't have correct position.

Apollon77 commented 2 years ago

:-(

italoc commented 2 years ago

I don’t know why, but from today after 1 year I can see the coordinates in psa api, I can map the value in home assistant but I can’t see the map in psa_car_controller, it’s need some api key?

albenex commented 2 years ago

I don’t know why, but from today after 1 year I can see the coordinates in psa api, I can map the value in home assistant but I can’t see the map in psa_car_controller, it’s need some api key?

no api key needed.. in order to receive trips you've just to drive and keep psa_controller refreshing.. for this purpose i use an automated script refreshing and rebooting add-on in HA every 10 minutes.. seems kind of PSA side fault as also mobile app after few uses seems not working well and also requesting new logins or PIN code again and again..

abmantis commented 2 years ago

I don’t know why, but from today after 1 year I can see the coordinates in psa api, I can map the value in home assistant but I can’t see the map in psa_car_controller, it’s need some api key?

How do you see them on the API? Which endpoint?

italoc commented 2 years ago

I don’t know why, but from today after 1 year I can see the coordinates in psa api, I can map the value in home assistant but I can’t see the map in psa_car_controller, it’s need some api key?

How do you see them on the API? Which endpoint?

http://localhost:5000/get_vehicleinfo/YOURVIN

in psa_car_controller api

maivorbim commented 2 years ago

I don’t know why, but from today after 1 year I can see the coordinates in psa api, I can map the value in home assistant but I can’t see the map in psa_car_controller, it’s need some api key?

Same thing I noticed yesterday on my car. Nothing was changed on my end, it all appears to be PSA server side.

italoc commented 2 years ago

I don’t know why, but from today after 1 year I can see the coordinates in psa api, I can map the value in home assistant but I can’t see the map in psa_car_controller, it’s need some api key?

no api key needed.. in order to receive trips you've just to drive and keep psa_controller refreshing.. for this purpose i use an automated script refreshing and rebooting add-on in HA every 10 minutes.. seems kind of PSA side fault as also mobile app after few uses seems not working well and also requesting new logins or PIN code again and again..

it’s work I don’t now why but the start always in the middle of the ocean, with high zoom level…