Skip to content

Charge for Peak does not kick in when time to full charge is less than an hour #7

@chaosd0gg

Description

@chaosd0gg

My start_charging_time was set as 15.5 as the time to charge time was only 30 mins. Peak was 16 and local_time.hour was 15, so the code never triggered.
I have made the following change on my code so that time to full charge will be a minimum of 1:
time_to_full_charge = max(1, remaining_energy_kWh / max_charge_rate_kW)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions