flobz / psa_car_controller

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

Wrong price used for charging #704

Closed JaySea77 closed 6 months ago

JaySea77 commented 7 months ago

Describe the bug When setting up the dc and fast dc charging prices, the dc charging price is used when ac charging

To Reproduce Steps to reproduce the behavior: Enter dc and fast dc prices in the config

Config file Part of the config.ini

price by kw/h

day price = 0.30 night price

ex: 22h30

night hour start

ex: 6h00

night hour end dc charge price = 0.65 high speed dc charge price = 0.89

Environment (please complete the following information):

Additional context In the charge tab it says: Consumption: 19.32kWh Price: 12.56€ Charging mode: Slow (which means ac) The price that should have been used is 0.30, instead it used 0.65 and it was corrected with the charger efficiency.

JaySea77 commented 7 months ago

The correction was not applied, I was wrong about that. It seems the correction is only applied when the ac price is used and that was before I set up dc prices.

Might the problem be that I didn't set up the night price? By default that price is not set either.