psa_car_controller icon indicating copy to clipboard operation
psa_car_controller copied to clipboard

Add 80% charge limit option

Open sjonez opened this issue 7 months ago • 6 comments

I have a 2025 e3008 and in the MyPeugeot app there is an option to limit charging to 80% (simple toggle, you can't set any other limit unfortunately).

I find this more reliable as the car itself is enforcing the limit. Is it possible to add this to allow me to toggle this option on and off outside of the peugeot app?

sjonez avatar May 01 '26 07:05 sjonez

There is already. But it is just as unreliable.

Foofur83 avatar May 02 '26 09:05 Foofur83

I'm not seeing that option? The only charge threshold capability I see is where PSA has to stop the charging itself, not the newer option that is native to the car

sjonez avatar May 02 '26 09:05 sjonez

API documentation : https://github.com/flobz/psa_car_controller/blob/master/docs/psacc_api.md

So you go to your psa car controller instance url with those parameters /charge_control?vin=YOURVIN&percentage=80

It works well on psa car controller side, it is just the stellentis api that is true to itself not reliable

emmanuel-blin avatar May 02 '26 09:05 emmanuel-blin

I've looked at the code for charge_control and it seems to rely on psa controller running while estimating the remaining time or monitoring the charge percentage before stopping the charging itself, i.e. several places it can go wrong.

My 2025 model has a native 80% charge option directly in the app (see screenshot) and it's this that I want to toggle.

Image

sjonez avatar May 02 '26 10:05 sjonez

Ok got it I do not have this option on my model, so did not knew it, I’ll try to have a look at it at some point anyway. I personally have that set up to limit the charge along side a HA automation to turn off the power to the dedicated socket so never rely on that on to limit the charge treshold

emmanuel-blin avatar May 02 '26 10:05 emmanuel-blin

If you need help with capturing logs or testing please let me know 🙂

sjonez avatar May 02 '26 10:05 sjonez