Skip to content

Suggestion: Use openWB daily_imported topic to trigger SoC retrieval #387

@jmerifjKriwe

Description

@jmerifjKriwe

I've noticed that the current calculation used to determine the timing of the next data retrieval (SoC) doesn't work very well when charging with PV, especially when the PV yield fluctuates heavily due to clouds.
The calculated time was often far off, resulting in me charging to almost 90% instead of it stopping at 80%.
Therefore, here's an idea, although it only works if you use an openWB – but there's already special handling for that anyway. Specifically, one could use the topic openWB/chargepoint/3/get/daily_imported. It outputs how much energy (in watt-hours) has already been charged into the car. And now, one could calculate how many watt-hours are needed to reach CHARGE_MIN_PERCENTAGE, taking BATTERY_CAPACITY into account. So, you subscribe to the topic above, take the current value, add this calculated watt-hour amount, and react as soon as this calculated value is reached. Then you perform the data retrieval and get the new, current SoC. (Calculating the SoC based solely on daily_imported instead of retrieving the value doesn't make sense due to highly variable charging losses.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions