flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
404 stars 214 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).

flobz commented 2 years ago

I had a call with Mr Reboul from PSA. The position was removed to follow RGPD rules. They need to create a form so that users can accept to publish vehicles position. It's complicate because if you share your vehicle with someone, he has to know that the vehicle position is recorded and he should have the possibility to disable it.

maivorbim commented 2 years ago

GDPR regulation has been in force since 2018...Such an option already exists in the car privacy menu.

flobz commented 2 years ago

GDPR regulation has been in force since 2018...Such an option already exists in the car privacy menu.

That what I reply but if you share your vehicle, the person might not know that it can be localized and that he can disable it.

maivorbim commented 2 years ago

Somehow the 'Last Position' is now updating for me. I suppose it have something to do with the activation of the "Free2Move" services (I've received one year for free).

Now I can even see the car position in ABRP, although the position it's updated once in a while. @Dario82 @aleblack

What car model do you have? Is it Allure or GT pack ? 7 inch or 10 inch screen?

aleblack commented 2 years ago

What car model do you have? Is it Allure or GT pack ? 7 inch or 10 inch screen?

@maivorbim I have a GT.

dreimer1986 commented 2 years ago

After I sort of friendly flamed around once more on Play Store and before that on Github they opened a ticket once more and contacted me. I sent my complaint and a written permission to reset my password + App logs and they wanna pass it to the developers once more. No reply after that. Was 4 days ago. "They need to create a form so that users can accept to publish vehicles position." Uuuuh, OK. Took them a while to find out that this could be against RGPD. So now we wait for their form I guess?

egpall commented 2 years ago

Hello, I have the same problem, I have an e2008 and currently I also have Tronity but the trips do not appear, today I have canceled the Telemaintenance service in the App, maybe I will have the trips in a few days? Thanks

washcroft commented 2 years ago

Hello, I have the same problem, I have an e2008 and currently I also have Tronity but the trips do not appear, today I have canceled the Telemaintenance service in the App, maybe I will have the trips in a few days? Thanks

If you contact Tronity support they will move you to a new PSA B2B API they're currently testing - then your trips and locations will be logged correctly.

Note: Even once your locations are coming through in Tronity - the location info returned by the B2C API which this project uses still won't be updated. The key is the new B2B API which requires a special business partnership to access.

egpall commented 2 years ago

Hola tengo el mismo problema, tengo un e2008 y actualmente también tengo Tronity pero los viajes no aparecen, hoy he cancelado el servicio de Telemantenimiento en la App, ¿tal vez tendré los viajes en unos días? Gracias

Si se comunica con el soporte de Tronity, lo trasladarán a una nueva API B2B de PSA que están probando actualmente; entonces sus viajes y ubicaciones se registrarán correctamente.

Nota: Incluso una vez que sus ubicaciones lleguen a Tronity, la información de ubicación devuelta por la API B2C que utiliza este proyecto aún no se actualizará. La clave es la nueva API B2B, que requiere una asociación comercial especial para acceder.

Thanks, the fact is that I am not going to renew Tronity because I have managed through the API to have the values ​​of my battery in ABRP. I will be aware of this thread to see what happens with all this API. Thank you.

dreimer1986 commented 2 years ago

Small status update here. I am still bombarding the german support with answers to my ticket. Currently they claim that such a feature never existed and thus call me a liar without ever using the word. They claim the App needs the coordinates from a Bluetooth connected phone to show the parking coordinates and that always was the case. They completely ignore my claim that my car was perfectly shown on my Tablet at home before mid of March. At least with a very high percentage the App worked and showed my car was standing at X,Y. They ignore my API references They ignore that they falsified their former claims with the current claims. Ah and they ignore all information coming from other sources like @flobz one. They are a support like you would expect from a german internet provider in magenta, but this is way worse as they have a company called Tesla invading their former monopoly. They seem to prefer technical obsolescense for their future...

I will put all the correspondence online after the next reply as I now told them that I have enough of their false claims and default replies and asked for a escalation. All correspondence will be 1:1 an german, but that's nothing a good deepl could not fix for you ^^

kurim commented 2 years ago

@dreimer1986 did you archive to reach out a german supporter which is able to write/speak nativ german? All my contacts to Opel ends in a first level support which works text blocks and very broken german (sounds like an offshore call center)

dreimer1986 commented 2 years ago

Yes I did. But I had the Peugeot support which is offered by some bigger car dealer as it seems. No clue about Opel...

dreimer1986 commented 2 years ago

OK I have news. Of course not from the useless thing they call a support as they seem to completely ignore me now... I did as @aleblack did by installing Free2Move and now verify that I have my coordinates back!

image

image

Longer version: I thought about testing it on saturday aka three days ago and installed "com.free2move.app" from Play Store. I paid for the monthly abonnement 4,99€ to start with and set up my car by VIN. Free2Move already tells you at that time that they need around two hours of active driving to fully sync with the car. I drove around 50 km at that day and just had battery information then showing up in the Free2Move Android app, but still no coordinates in API. I drove to work yesterday and back home (30km) which changed nothing API wise and today I went to work (15km) and now I got my coordinates back! I still can not guarantee that things stay that way, but I had NO entries in there for months and this is the first time for ages that there are not just null values in there! Too early to party, but I thought I let you know. If this really works I tend to pay the monthly 4,99€ just to keep it. I told Stellantis that I have no problem with a fee to get my API back and now I do as I promised of course.

Recent obfuscated vehicle information:

{"embedded": null, "links": {"_self": {"deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/1566c497a565x686153316861545651774d446778xe54496a497a67334d546b78597a52xx593245794d5445334f57526bxa6a6331597a4d775a6a686a4d47493x59325a69595441324e575a6d4x5459304d4445355a5451774f44466a4x54566c4e544a6d4e6d5a695932566a4d54453d/status", "hreflang": null, "name": null, "profile": null, "templated": null, "title": null, "type": null}, "vehicle": null}, "battery": {"current": 0.0, "voltage": 96.5}, "doors_state": null, "energy": [{"updated_at": "2021-11-09 07:19:18+00:00", "autonomy": 80.0, "battery": null, "charging": {"charging_mode": "No", "charging_rate": 0, "next_delayed_time": "PT21H30M", "plugged": false, "remaining_time": "PT0S", "status": "Disconnected"}, "consumption": null, "level": 47.0, "residual": null, "type": "Electric"}, {"updated_at": "2021-09-15 06:17:42+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": [9.xxxxx, 49.xxxxx, 192], "type": "Point"}, "properties": {"heading": null, "signal_quality": 9.0, "type": "Aquire", "updated_at": "2021-11-09 07:17:52+00:00"}}, "preconditionning": {"air_conditioning": {"failure_cause": null, "programs": [{"enabled": false, "slot": 1, "recurrence": "Daily", "start": "PT17H", "occurence": {"day": ["Thu"]}}], "status": "Disabled", "updated_at": "2021-11-09 07:19:17+00:00"}}, "privacy": {"state": "None"}, "safety": null, "service": {"type": "Electric", "updated_at": "2021-11-09 07:19:18+00:00"}, "timed_odometer": {"updated_at": null, "mileage": 7753.2}}

P.S. The App still shows outdated locations, but I don't care at all. I hate the app as it's slow and useless. The things I really care about work fine again. (For now)

kurim commented 2 years ago

It will be interesting if it still works after you cancel the renewal

washcroft commented 2 years ago

It will be interesting if it still works after you cancel the renewal

Me too - I suspect it'll stop working. If you have to pay for anything, might as well pay for TRONITY and use their (quite nice) system which uses the private B2B PSA API.

dreimer1986 commented 2 years ago

It will be interesting if it still works after you cancel the renewal

Me too - I suspect it'll stop working. If you have to pay for anything, might as well pay for TRONITY and use their (quite nice) system which uses the private B2B PSA API.

Why should I pay for Tronity if it does not fix the API as you said It won't? I want my API and no whatever service I don't need. Yes, neither I need the features of Free2Move, but at least I got back what I was looking for. And sorry, right now I don't plan any more experiments regarding canceling the subscription. Maybe @aleblack want's to try or already did cancel it? Maybe someone else wants to spend 5€ for testing it? I am happy right now and instead try to find out what the signal strength I get from my car means for GPS precision to improve my device_tracker even more.

Car tracking followed me back home nicely btw. All systems alive and kicking.

washcroft commented 2 years ago

Why should I pay for Tronity if it does not fix the API as you said It won't? I want my API and no whatever service I don't need. Yes, neither I need the features of Free2Move, but at least I got back what I was looking for.

It was you that said:

Too early to party, but I thought I let you know. If this really works I tend to pay the monthly 4,99€ just to keep it. I told Stellantis that I have no problem with a fee to get my API back and now I do as I promised of course.

TRONITY is cheaper, has a full API, has a lot more features, supports multiple cars - who knows what else PSA will change in the future in the poorly supported B2C API this project uses.

aleblack commented 2 years ago

My subscription it’s free for one year, I don’t use their services it but it’s won’t cancel it. I like to have position recorded on psa_car_controller.

Il giorno mar 9 nov 2021 alle 19:27 Daniel Reimer @.***> ha scritto:

It will be interesting if it still works after you cancel the renewal

Me too - I suspect it'll stop working. If you have to pay for anything, might as well pay for TRONITY and use their (quite nice) system which uses the private B2B PSA API.

Why should I pay for Tronity if it does not fix the API as you said It won't? I want my API and no whatever service I don't need. Yes, neither I need the features of Free2Move, but at least I got back what I was looking for. And sorry, right now I don't plan any more experiments regarding canceling the subscription. Maybe @aleblack https://github.com/aleblack want's to try or already did cancel it? Maybe someone else wants to spend 5€ for testing it? I am happy right now and instead try to find out what the signal strength I get from my car means for GPS precision to improve my device_tracker even more.

Car tracking followed me back home nicely btw. All systems alive and kicking.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/flobz/psa_car_controller/issues/50#issuecomment-964419361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3TVHTTTSQNFAGQNHUTRFTULFR23ANCNFSM4ZQPLZ7Q .

--

Ciao.

Alessio

dreimer1986 commented 2 years ago

It was you that said:

Note: Even once your locations are coming through in Tronity - the location info returned by the B2C API which this project uses still won't be updated. The key is the new B2B API which requires a special business partnership to access.

As I said I don't care about any features Tronity allows me to use. I want a solution for this project we are wrtitng into a issue of and nothing else.

If someone wants to add Tronity into Home Assistant and it works better, then we can talk of course ^^ But still not here. Until then I recommend a back to topic.

flobz commented 2 years ago

TRONITY is cheaper, has a full API, has a lot more features, supports multiple cars

Just to remind that the point of my project is to have a free and OpenSource solution to get statistics and control a PSA car. People with privacy concern will also like that their data aren't send to a third party like Tronity. If you aren't interested in this OpenSource project and Open Source in general what are you doing here ?

washcroft commented 2 years ago

I run psa_car_controller because it is free and open source etc... it does everything I need.

But if somebody (like @dreimer1986) is willing to pay a monthly fee to get a feature they want to use, they might as well pay (less of) their money for a service that will do a much better job (TRONITY) and will fully support all its features, not Free2Move (it is only a side effect of that service, that location info is back in the B2C API). That was my point.

flobz commented 2 years ago

I subscribe to the service and I will keep you in touch if unsubscribe it impact the position. I will also talk to the seller to see if he can give me one year free like @aleblack. @aleblack can you share the reason why you had one year free ?

aleblack commented 2 years ago

I don't know why @flobz. I received an email with a promo code, 4 month after buying the car from peugeotnews@newspeugeot.com telling me that after my new car purchase I've been gifted one year of 'Charge my car' service, available in the Free2Move application. I've never asked anything to the car dealer nor him informed me of such thing.

albenex commented 2 years ago

I subscribe to the service and I will keep you in touch if unsubscribe it impact the position. I will also talk to the seller to see if he can give me one year free like @aleblack. @aleblack can you share the reason why you had one year free ?

has monthly subscription ended? still working? we all are curious about this :D

kurim commented 2 years ago

I also subscribe ~ but it will end in start of January i will keep you updated.

flobz commented 2 years ago

For now, position isn't updated even if I did long trips...

dreimer1986 commented 2 years ago

Your are still null'ed? Wow... Strange, my values are still fine after the registration :(

albenex commented 2 years ago

Your are still null'ed? Wow... Strange, my values are still fine after the registration :(

you still subscribed to free2move right? if @flobz isn't receiving position updates anymore maybe is related to monthly subscription end..

szambetti commented 2 years ago

I have also subscribed - giving it a go. Am a bit doubtful it will work since even tronity could not log any data from my car...

albenex commented 2 years ago

i too think it will stop working after subscription end.. seems PSA wants monetize also on API availability.. that's a shame, totally..

szambetti commented 2 years ago

Unfortuantely, after 1 week of subscription, free2move still says my car is yet to be activated, and no new positions have been sent...

I think my services will never be activated...

Screenshot_20211222-164539_Free2Move

flobz commented 2 years ago

I have a question for people who have the position back since they subscribed to Free2Move. Do you have the NAC? (the 10 inch screen) or the RCC (7 inch screen) ?

dreimer1986 commented 2 years ago

I have the 10 inch screen. EDIT: Works here after registration.

szambetti commented 2 years ago

I have a question for people who have the position back since they subscribed to Free2Move. Do you have the NAC? (the 10 inch screen) or the RCC (7 inch screen) ?

I have the 7 inch, but the position is not updating for me... it seems psa cannot even get my vehicle to connect to free2move...

italoc commented 2 years ago

Unfortuantely, after 1 week of subscription, free2move still says my car is yet to be activated, and no new positions have been sent...

I think my services will never be activated...

Screenshot_20211222-164539_Free2Move

I am in the same situation, after 2 month… the service never started, I try to write to support that say bla bla bla bla…

kurim commented 2 years ago

The app from free2move is not well programmed... I have cancel my renewal 2 month ago and they don't really cancel it, after contacting their support they cancel it and send back my money.

And for now i can say the positioning is still working.

farcorben commented 2 years ago

Hey Guys,

i can confirm after subscipe to free2move and enabeling the navigation feature the "last_position" fields is now back and updated at PSA API. So now i have back the possitioning features in "psa_car_controller". i will cancel the subsription in februar and will look if it still work after these.

szambetti commented 2 years ago

Hey Guys,

i can confirm after subscipe to free2move and enabeling the navigation feature the "last_position" fields is now back and updated at PSA API. So now i have back the possitioning features in "psa_car_controller". i will cancel the subsription in februar and will look if it still work after these.

Do you have a 7 or 10 inch screen?

farcorben commented 2 years ago

The 10 inch ( e208 GT)

flobz commented 2 years ago

So apparently it work only if you have a NAC (10INCH) but not a RCC.

Pka78 commented 2 years ago

So apparently it work only if you have a NAC (10INCH) but not a RCC.

Well - i have 10'' in my eC4 and it doesn't update status information to psa_car_controller. That's so fustrating. Allready told my Citroen vendor and claimed an issue about this location service. That was one reason i purchased this car.

both1 commented 2 years ago

Same for my eC4. For what it is worth: would there be a difference between https://api.groupe-psa.com/connectedcar/v4/user/vehicles/{id}/status and https://api.groupe-psa.com/connectedcar/v4/user/vehicles/{id}/lastPosition ? I don't know how to check myself.

kurim commented 2 years ago

Fyi Subscribtion has end and position is still transmitted.

CalicodesIles commented 2 years ago

I’m in France. I subscribed 2 weeks ago to Free2Move, added my VIN, but app is still in status « Waiting for vehicle connection. You need to use the vehicle at least 2 hours ».

I opened a ticket through the support but no answer for the moment.

No GPS information in PSA Car Controller

For people who had done this successfully, do you have a Free2Move icon in the NAC, in app section ?

albenex commented 2 years ago

I’m in France. I subscribed 2 weeks ago to Free2Move, added my VIN, but app is still in status « Waiting for vehicle connection. You need to use the vehicle at least 2 hours ».

I opened a ticket through the support but no answer for the moment.

No GPS information in PSA Car Controller

For people who had done this successfully, do you have a Free2Move icon in the NAC, in app section ?

7” or 10” screen?

CalicodesIles commented 2 years ago

@albenex 10" screen

dreimer1986 commented 2 years ago

Well, don't be too happy for now... My car stands at work for 4 days now.... NOT. I waited a while to not call names here, but this is NOT normal.

EDIT: Small correction. I had to factory reset my phone after a.... lets call it special experience while updating at that time. So I had to set up the app once more, too. Since that time the coordinates are locked. So I wondered if MAYBEEEE it only sends the recent coordinates to one device? Like, the newest one? Just reinstalled the Addin and am back to recent coordinates AND singal strength seems more correct now too. Always 9.0 even in my garage? of course ^^ Back to 4.0 now.

Just to let you know. Likely the addin has to be the most recent devince being added to get what we want?

CalicodesIles commented 2 years ago

One month since subscription and no improvement. App is still waiting for car connection. Position still not appearing in PSA CC. Support ticket is opened since the beginning and nobody from Free2Move technical services has treated it…

For people who made it work, do you have a Free2Move app icon in the 10” NAC screen in the Connected Apps section of the menu ? I don’t have it personally.

farcorben commented 2 years ago

Hey Guys,

i can confirm after subscipe to free2move and enabeling the navigation feature the "last_position" fields is now back and updated at PSA API. So now i have back the possitioning features in "psa_car_controller". i will cancel the subsription in februar and will look if it still work after these.

Feedback after Service canceling: my Free2Move was cancelt and and end of service at 11.02.2022. The PSA API still update my positioning Data at the PSA API. seems to be everything works at the moment

farcorben commented 2 years ago

For people who made it work, do you have a Free2Move app icon in the 10” NAC screen in the Connected Apps section of the menu ? I don’t have it personally.

no.. not at my e208 gt