Charge Stop will not be detected
Describe the bug Every Time i stop the charging process, i get errors in the Log an the Charge-Period in Database "Charge" will not be closed correct.
To Reproduce
- Start charging and wait until its detected by PSACC
- Stop charging and wait until its detected by PSACC
Config file
{ "abrp": { "abrp_enable_vin": [], "token": "" }, "client_id": "XXX", "client_secret": "XXX", "co2_signal_api": null, "country_code": "DE", "customer_id": "AC-ACNT2000XXX", "proxies": { "http": "", "https": "" }, "realm": "clientsB2CCitroen", "refresh_token": "XXX", "remote_refresh_token": "XXX", "weather_api": null }
Environment (please complete the following information):
- OS: Bookworm on RaspberryPi
- Brand and model of car: Citroen Berlingo E
- Application version (commit number, branch or tag): 3.5.3
- Log from http://server_address:port/log and browser console log:
2025-02-27 09:51:22,120 :: INFO :: charging status of VR7EZZXXX is InProgress, battery level: 95 2025-02-27 09:51:22,121 :: INFO :: ask wakeup to VR7EZZXXX 2025-02-27 09:51:22,122 :: INFO :: topic: psa/RemoteServices/from/cid/AC-ACNT2000XXX/VehCharge/state: {'action': 'state'} 2025-02-27 09:51:22,998 :: INFO :: save config change 2025-02-27 09:53:22,377 :: INFO :: new position recorded for VR7EZZXXX 2025-02-27 09:53:22,379 :: INFO :: update_data 2025-02-27 09:53:24,305 :: INFO :: update_data 2025-02-27 09:53:26,197 :: INFO :: charging status of VR7EZZXXXis InProgress, battery level: 96 2025-02-27 09:55:00,027 :: INFO :: 192.168.178.89 - - [27/Feb/2025 09:55:00] "GET /get_vehicleinfo/VR7EZZXXX?from_cache=1 HTTP/1.1" 200 - 2025-02-27 09:55:22,686 :: INFO :: new position recorded for VR7EZZXXX 2025-02-27 09:55:22,688 :: INFO :: update_data 2025-02-27 09:55:24,586 :: INFO :: charging status of VR7EZZXXXis InProgress, battery level: 96 2025-02-27 09:55:47,733 :: INFO :: 192.168.178.57 - - [27/Feb/2025 09:55:47] "GET /get_vehicleinfo/VR7EZZXXX?from_cache=1 HTTP/1.1" 200 - 2025-02-27 09:55:47,794 :: INFO :: 192.168.178.57 - - [27/Feb/2025 09:55:47] "GET /favicon.ico HTTP/1.1" 200 - 2025-02-27 09:57:24,569 :: INFO :: charging status of VR7EZZXXXis InProgress, battery level: 96 2025-02-27 09:59:22,143 :: INFO :: new position recorded for VR7EZZXXX 2025-02-27 09:59:22,171 :: INFO :: update_data 2025-02-27 09:59:27,590 :: ERROR :: charging status not available from api 2025-02-27 10:01:22,163 :: ERROR :: charging status not available from api 2025-02-27 10:03:22,447 :: ERROR :: charging status not available from api 2025-02-27 10:05:00,029 :: INFO :: 192.168.178.89 - - [27/Feb/2025 10:05:00] "GET /get_vehicleinfo/VR7EZZXXX?from_cache=1 HTTP/1.1" 200 - 2025-02-27 10:05:23,228 :: ERROR :: charging status not available from api 2025-02-27 10:07:22,112 :: ERROR :: charging status not available from api 2025-02-27 10:09:22,780 :: ERROR :: charging status not available from api
Additional context Maybe there are some changes in PSA API? If i stop the charging process the API sends "Disconnected" insted of "in Progress". Maybe there is expected a another value?
"energy": [
{
"updated_at": "2025-02-27 08:57:34+00:00",
"autonomy": 256,
"battery": null,
"charging": {
"charging_mode": "Slow",
"charging_rate": 0,
"next_delayed_time": "PT11H30M",
"plugged": true,
"remaining_time": "PT0S",
"status": "Disconnected"
},
"consumption": null,
"level": 96,
"residual": null,
"type": "Electric"
}
],
Same Error appears in this case:
"energy": [
{
"updated_at": "2025-02-27 11:39:29+00:00",
"autonomy": 248,
"battery": null,
"charging": {
"charging_mode": "Slow",
"charging_rate": 14,
"next_delayed_time": "PT11H30M",
"plugged": true,
"remaining_time": "PT1H35M",
"status": "Stopped"
},
"consumption": null,
"level": 95,
"residual": null,
"type": "Electric"
}
],
I have the same issue. Only get an record of starting charge without end time and other info. The log is full of
ERROR :: charging status not available from api