Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doors Lock State not updated #962

Open
maximeallanic opened this issue Sep 21, 2024 · 0 comments
Open

Doors Lock State not updated #962

maximeallanic opened this issue Sep 21, 2024 · 0 comments

Comments

@maximeallanic
Copy link

maximeallanic commented Sep 21, 2024

Describe the bug
The PSA Car Controller does not correctly report the door status. Although the command is executed and the program is restarted, the logs show that the door locking/unlocking state is fetched.
It either remains static or shows incorrect values, even after multiple requests.

To Reproduce
Steps to reproduce the behavior:

  1. what command did you use
    curl http://localhost:5003/get_vehicleinfo/****
  2. when the bug append ?
    When locking or unlock doors
  3. Does it persist after restarting the program?
    Yes
  4. Does it persist after recreate config by going to http://server_address:port/config?
    Yes and i try with a full reset

Config file
Give the anonymize content of the config file

{
    "abrp": {
        "abrp_enable_vin": [],
        "token": ""
    },
    "client_id": "1eebc2d5-5df3-459b-a624-20abfcf82530",
    "client_secret": "T5tP7iS0cO8sC0lA2iE2aR7gK6uE5rF3lJ8pC3nO1pR7tL8vU1",
    "co2_signal_api": null,
    "country_code": "FR",
    "customer_id": "AP-ACNT200000000000",
    "proxies": {
        "http": "",
        "https": ""
    },
    "realm": "clientsB2CPeugeot",
    "refresh_token": "****",
    "remote_refresh_token": "****",
    "weather_api": null
}

Environment (please complete the following information):

  • OS: Debian with Docker and Home Assistant via https://github.com/flobz/psacc-ha
  • Brand and model of car: Peugeot e208 2024
  • Application version: 3.5.3
  • Log from http://server_address:port/log and browser console log:
2024-09-21 10:24:13,587 :: INFO :: mqtt msg received: psa/RemoteServices/to/cid/AP-ACNT200009109764/VehCharge/state b'{"resp_date":"2024-09-21T08:24:13Z","vin":"*****","correlation_id":"25e497acf76a48cbb7310d3366c32b9820240921082359018","return_code":"0","resp_data":{}}'
2024-09-21 10:24:41,708 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/**** b'{"date":"2024-09-21T08:24:40Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program2":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program3":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program4":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]}},"asap":0,"status":0,"aff":0},"charging_state":{"program":{"hour":0,"minute":0},"available":1,"rate":0,"cable_detected":1,"soc_batt":86,"autonomy_zev":302,"type":0,"aff":0,"hmi_state":0,"mode":2},"stolen_state":0,"vin":"****","reason":4,"signal_quality":13,"sev_stop_date":"2024-09-20T17:15:50Z","fds":["NEF01","NDR03","NAE01","NBM01","NAU01","NCG01","NEE02","NAO01","NAS01"],"sev_state":0,"obj_counter":10,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":3,"doors_state":{"doors_opening_state":[0,0,0,0,0,0,0],"doors_locking_state":3}}'
2024-09-21 10:24:41,791 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/**** b'{"date":"2024-09-21T08:24:40Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program2":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program3":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program4":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]}},"asap":0,"status":0,"aff":0},"charging_state":{"program":{"hour":0,"minute":0},"available":1,"rate":0,"cable_detected":1,"soc_batt":86,"autonomy_zev":302,"type":0,"aff":0,"hmi_state":0,"mode":2},"stolen_state":0,"vin":"****","reason":3,"signal_quality":13,"sev_stop_date":"2024-09-20T17:15:50Z","fds":["NEF01","NDR03","NAE01","NBM01","NAU01","NCG01","NEE02","NAO01","NAS01"],"sev_state":0,"obj_counter":11,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":3,"doors_state":{"doors_opening_state":[0,0,0,0,0,0,0],"doors_locking_state":3}}'
2024-09-21 10:25:04,439 :: INFO :: <Request 'http://localhost:5003/charge_control?vin=****&always_check=true' [GET]>
2024-09-21 10:25:04,440 :: INFO :: 172.30.32.1 - - [21/Sep/2024 10:25:04] "�[37mGET /charge_control?vin=****&always_check=true HTTP/1.1�[0m" 200 -
2024-09-21 10:26:04,439 :: INFO :: <Request 'http://localhost:5003/charge_control?vin=****&always_check=true' [GET]>
2024-09-21 10:26:04,439 :: INFO :: 172.30.32.1 - - [21/Sep/2024 10:26:04] "�[37mGET /charge_control?vin=****&always_check=true HTTP/1.1�[0m" 200 -
2024-09-21 10:26:49,810 :: INFO :: 172.30.32.1 - - [21/Sep/2024 10:26:49] "�[37mGET /get_vehicleinfo/****?from_cache=1 HTTP/1.1�[0m" 200 -
2024-09-21 10:27:03,451 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/**** b'{"date":"2024-09-21T08:26:47Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program2":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program3":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program4":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]}},"asap":0,"status":0,"aff":0},"charging_state":{"program":{"hour":0,"minute":0},"available":1,"rate":0,"cable_detected":1,"soc_batt":86,"autonomy_zev":302,"type":0,"aff":0,"hmi_state":0,"mode":2},"stolen_state":0,"vin":"****","reason":0,"signal_quality":13,"sev_stop_date":"2024-09-20T17:15:50Z","fds":["NEF01","NDR03","NAE01","NBM01","NAU01","NCG01","NEE02","NAO01","NAS01"],"sev_state":0,"obj_counter":1,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":3,"doors_state":{"doors_opening_state":[0,0,0,0,0,0,0],"doors_locking_state":1}}'
2024-09-21 10:27:03,477 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/**** b'{"date":"2024-09-21T08:26:50Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program2":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program3":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program4":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]}},"asap":0,"status":0,"aff":0},"charging_state":{"program":{"hour":0,"minute":0},"available":1,"rate":0,"cable_detected":1,"soc_batt":86,"autonomy_zev":302,"type":0,"aff":0,"hmi_state":0,"mode":2},"stolen_state":0,"vin":"****","reason":4,"signal_quality":12,"sev_stop_date":"2024-09-20T17:15:50Z","fds":["NEF01","NDR03","NAE01","NBM01","NAU01","NCG01","NEE02","NAO01","NAS01"],"sev_state":0,"obj_counter":2,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":3,"doors_state":{"doors_opening_state":[0,0,0,0,0,0,0],"doors_locking_state":1}}'
2024-09-21 10:27:03,488 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/****'{"date":"2024-09-21T08:26:50Z","etat_res_elec":0,"precond_state":{"available":1,"programs":{"program1":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program2":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program3":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]},"program4":{"hour":0,"minute":0,"on":0,"day":[0,0,0,0,0,0,0]}},"asap":0,"status":0,"aff":0},"charging_state":{"program":{"hour":0,"minute":0},"available":1,"rate":0,"cable_detected":1,"soc_batt":86,"autonomy_zev":302,"type":0,"aff":0,"hmi_state":0,"mode":2},"stolen_state":0,"vin":"***","reason":3,"signal_quality":12,"sev_stop_date":"2024-09-20T17:15:50Z","fds":["NEF01","NDR03","NAE01","NBM01","NAU01","NCG01","NEE02","NAO01","NAS01"],"sev_state":0,"obj_counter":3,"privacy_customer":0,"privacy_applicable":0,"privacy_applicable_max":3,"doors_state":{"doors_opening_state":[0,0,0,0,0,0,0],"doors_locking_state":1}}'

Additional context
Add any other context about the problem here.
Result of curl http://localhost:5003/get_vehicleinfo/****

{
  "embedded": null,
  "links": {
    "_self": {
      "deprecation": null,
      "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/****/status?profile=endUser",
      "hreflang": null,
      "name": null,
      "profile": null,
      "templated": null,
      "title": null,
      "type": null
    },
    "vehicle": {
      "deprecation": null,
      "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/****",
      "hreflang": null,
      "name": null,
      "profile": null,
      "templated": null,
      "title": null,
      "type": null
    }
  },
  "battery": {
    "current": null,
    "voltage": 88
  },
  "doors_state": {
    "locked_state": null,
    "opening": [
      {
        "identifier": "Trunk",
        "state": "Closed"
      },
      {
        "identifier": "Driver",
        "state": "Closed"
      },
      {
        "identifier": "RearRight",
        "state": "Closed"
      },
      {
        "identifier": "RearLeft",
        "state": "Closed"
      },
      {
        "identifier": "Passenger",
        "state": "Closed"
      },
      {
        "identifier": "RearWindow",
        "state": "Closed"
      },
      {
        "identifier": "RoofWindow",
        "state": "Open"
      }
    ],
    "updated_at": null
  },
  "energy": [
    {
      "updated_at": "2024-09-21 09:03:14+00:00",
      "autonomy": 302,
      "battery": null,
      "charging": {
        "charging_mode": "No",
        "charging_rate": 0,
        "next_delayed_time": "PT0S",
        "plugged": false,
        "remaining_time": null,
        "status": "Disconnected"
      },
      "consumption": null,
      "level": 86,
      "residual": null,
      "type": "Electric"
    }
  ],
  "environment": {
    "created_at": null,
    "air": {
      "temp": 18
    },
    "luminosity": {
      "day": false
    }
  },
  "ignition": {
    "type": "Stop"
  },
  "kinetic": {
    "acceleration": null,
    "moving": false,
    "pace": null,
    "speed": null
  },
  "last_position": {
    "type": "Feature",
    "geometry": {
      "coordinates": [
        3.06751,
        45.92082,
        437
      ],
      "type": "Point"
    },
    "properties": {
      "heading": 206,
      "signal_quality": 9,
      "type": "Acquire",
      "updated_at": "2024-09-20 17:15:52+00:00"
    }
  },
  "preconditionning": {
    "air_conditioning": {
      "failure_cause": null,
      "status": "Disabled",
      "updated_at": "2024-09-21 09:03:11+00:00",
      "created_at": "2024-09-21 09:03:11+00:00"
    }
  },
  "privacy": {
    "state": "None"
  },
  "safety": null,
  "service": {
    "type": "Electric",
    "updated_at": null
  },
  "timed_odometer": {
    "updated_at": "2024-09-21 08:59:59+00:00",
    "mileage": 6901.9
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant