flobz / psa_car_controller

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

Trying to switch Preconditioning generates a 500 Server Error from the psa_car_controller #981

Open edsub opened 1 month ago

edsub commented 1 month ago

Describe the bug When I submit a "http://:5000/preconditioning/yyyy/1" the car does not respond at all. The car (e208 2022 model) does have a functioning preconditioning via the myPeugeot app. The get_vehicleinfo API call gets me the data I want (doors_state appears to remain 'null' but that is a separate subject), but switching on / off the preconditioning (or door-lock) does not work and generates an error in the logs

To Reproduce submit a "http://:5000/preconditioning/yyyy/1" (with my VIN in it instead of yyyy ;-)

Config file cat config.json { "abrp": { "abrp_enable_vin": [], "token": "" }, "client_id": "xxxxxxxxxxxxxx", "client_secret": "xxxxxxxxxxxxxx", "co2_signal_api": "xxxxxxxxxxxxxx", "country_code": "NL", "customer_id": "AP-ACNTxxxxxxxxxxxxxx", "proxies": { "http": "", "https": "" }, "realm": "clientsB2CPeugeot", "refresh_token": "xxxxxxxxxxxxxx", "remote_refresh_token": "xxxxxxxxxxxxxx", "weather_api": "xxxxxxxxxxxxxx" Environment (please complete the following information):

bgoncal commented 1 week ago

Same here, preconditioning is not working for a few weeks already

bgoncal commented 1 week ago

I downgraded to 3.5.1 and now it works again

sylvain-sicard commented 6 days ago

Same error, but can't dowgrade to 3.5.1 because mypeugeot.apk url changed : URL fetched by v3.5.1 during login : https://github.com/flobz/psa_apk/raw/main/mypeugeot.apk Actual url : https://github.com/flobz/psa_apk/blob/main/mypeugeot.apk.bz2