flobz / psa_car_controller

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

Integration with Dynamic Charging Prices (like Tibber) #629

Open mhellmeier opened 8 months ago

mhellmeier commented 8 months ago

The app currently uses a fixed value set in the config file to calculate the charge price. There are limited options to calculate it with dynamic prices by using the "night price" option.

When using a solar energy system or other special electricity provider that changes prices every hour (like Tibber), the price calculation isn't correct. Therefore, it would be great if things like Tibber could be integrated to enable a correct calculation. They offer a free API for it, see: https://developer.tibber.com/docs/overview

JaySea77 commented 8 months ago

I have tried this, but since pas controller is more offline than online, it isn't really useful

Edit: Seems I have not read this correctly. I thought you were automating the charging times, but you are trying to get the calculations correctly. This would be a nice feature indeed.

flobz commented 5 months ago

You can change price with API now: https://github.com/flobz/psa_car_controller/tree/master/docs/api So one solution is to create a script to get price from tibber and call psacc api.