Skip to content

implement set_battery_reserve_relative_to_current_charge_level #79

@atimgraves

Description

@atimgraves

Hi Stefan
in the underlying ha_sonnen py library there is the capability to set the battery reserve level (minimum to be retained) and also to set it relative to the current battery level.
As you seem to have a way better understanding of how HA works than I do (I looked at this stuff on and off for 6 months before giving up) could you make these capabilities available.
The use case is that when my car starts charging on overnight or cheap rate power I want to trigger an automation to stop the sonnen battery being used to charge the car (I.e. set the required reserve = to the current level) which will force the use of the cheaper grid power. Unfortunately the times of the cheap rate can vary. Offering the minimum reserve option to the underlying for the relative reserve call (implemented already in the underlying library) will enable a suitable reserve to always be available in case of a power cut.
When the overnight or cheap rate finishes (again the time can vary) then a different automation woudl trigger using an absolute set_reserve call to return it to the previous level.
Thanks, Tim

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