Closed matt-oneill closed 2 years ago
I have just pushed a new branch in which I want to incorporate current system settings (including the discharge/charge settings) into the response returned back from the GetData query.
That code and your code for grabbing the response from the GetCustomUseESSSetting API call are very similar but I have changed my code slightly.
Could you please take that new branch and revise your code so that your methods for setting charge and discharge use my code for the GetCustomUseESSSetting's call - that will ensure that we only need one method for getting the settings and not two. I'll accept the pull request against the revised branch and once that's working I can push the combined changes to the mainline
@CharlesGillanders I've replicated the api calls to set the battery charge/discharge state and added 2 methods to set charge/discharge settings. If this is accepted then I can look into adding the service to the home assistant integration.