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

No update of values while charging #1039

Open
dnnrwttr opened this issue Feb 11, 2025 · 4 comments
Open

No update of values while charging #1039

dnnrwttr opened this issue Feb 11, 2025 · 4 comments

Comments

@dnnrwttr
Copy link

dnnrwttr commented Feb 11, 2025

Hi,

i dont get update of the values from the car when i charge the car. i always have to unlock and lock doors to get an update of datas (for example soc)... how can i fix that?!

Mokka-e, est. 2021

Regards
Malte

@5kat3R
Copy link

5kat3R commented Feb 13, 2025

In most cases re-logging to PSACC solves the problem.

Edit: but at the moment it's most probably an issue on PSA server, as the official app doesn't update either.

Edit2: few days later PSACC died totally. I had to do a fresh install + login procedure to get it back running.

@TheRealSlimSchaali
Copy link

I have the same issue after starting to charge I get errors in the logs:

2025-02-18 18:46:41,780 :: WARNING :: remote_refresh_token isn't defined
2025-02-18 18:46:42,155 :: ERROR :: Error during activation: {'err': 'NOK:FORBIDDEN'}

Once the charging is done, everything is working fine again.

@dnnrwttr
Copy link
Author

I get updates... But only if i lock and unlock the door of the car! While charging, i dont get any updates of the state for example...

@chmtc94
Copy link

chmtc94 commented Feb 28, 2025

PSA add-on version : 3.5.3
PSA car model : ds4 e-tense

HA Core 2025.2.5
HA Supervisor 2025.02.4
HA Operating System 14.2
HA Frontend 20250221.0

Charging start is always well automaticaly detected by the add_on
After start, the add-on seems expecting the charging_level to increase during charging.
However, ss the battery_level remains constant during charging, the add-on repeatedly try to wake-up the server but every wake-up fails (FORBIDDEN) until charging end is detected
Redoing otp procedure as suggested in the log has no effect...

Same sequence of errors occur during each charging of the car.

The add-on sqlite database is however always well updated for all chargings with goods start_date/start_level/end_date/end_level

NB: I created a HA rest_command "psa_get_live_info" (get_live_info without using cache) that make the corresponding HTTP request to the add_on.
The call to the corresponding service (using ha/tools/actions frontend), always return with status OK (200) (no otp requirement)
The content of the response also shows that the charging level never increase during charging.

#
##############################################
# rest_commands for PSACC API
##############################################
#
rest_command:
  #
  ###############################################################################
  # 1. Get the car state
  #    http://localhost:5000/get_vehicleinfo/YOURVIN
  ###############################################################################
  #
  psa_get_vehicle_live_info:
    url: "http://localhost:5000/get_vehicleinfo/{{vin}}"
    headers:
      User-Agent: "Home Assistant"
      Content-Type: "application/json; charset=utf-8"
    method: GET
  
  ds4_get_vehicle_live_info:
    url: "http://localhost:5000/get_vehicleinfo/<MY_VIN>"
    headers:
      User-Agent: "Home Assistant"
      Content-Type: "application/json; charset=utf-8"
    method: GET
  
  # ###############################################################################
  # # 2. Get the car state from cache to avoid to use PSA API too much
  # #    http://localhost:5000/get_vehicleinfo/YOURVIN?from_cache=1
  # ###############################################################################
  # 
  psa_get_vehicle_info:
    url: "http://localhost:5000/get_vehicleinfo/{{vin}}?from_cache=1"
    headers:
      User-Agent: "Home Assistant"
      Content-Type: "application/json; charset=utf-8"
    method: GET
  
  ds4_get_vehicle_info:
    url: "http://localhost:5000/get_vehicleinfo/<MY_VIN>?from_cache=1"
    headers:
      User-Agent: "Home Assistant"
      Content-Type: "application/json; charset=utf-8"
    method: GET
 

Attached full log (with my VIN replaced by <MY_VIN>) :
2025-02-28 - PSA Controler errors during charging .log

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

4 participants