flobz / psa_car_controller

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

API - How to get Average consumption / Electricity consumption / Trips #802

Closed zazazouthecat closed 6 months ago

zazazouthecat commented 7 months ago

Possible to use API to get this informations in JSON Format ?

Thx.

GewoonJaap commented 6 months ago

I created a PR for your last point, the trips https://github.com/flobz/psa_car_controller/pull/795 With that you could also calculate the (average) consumption

GewoonJaap commented 6 months ago

The trips endpoint and chargings endpoint just have been released :) https://github.com/flobz/psa_car_controller/blob/master/docs/psacc_api.md

vineethktpla commented 6 months ago

The trips endpoint and chargings endpoint just have been released :) https://github.com/flobz/psa_car_controller/blob/master/docs/psacc_api.md

@GewoonJaap I am getting the old data with these api end points. How to get the latest data ? image

This is in home assistant adon

GewoonJaap commented 6 months ago

@vineethktpla Is there newer data available in the psa dashboard? Because the api returns the exact same data

vineethktpla commented 6 months ago

@vineethktpla Is there newer data available in the psa dashboard? Because the api returns the exact same data

Yes there are. However the api returns the oldest entry