Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Smart Battery Control Toggle #10

Closed
doppelrittberger opened this issue Apr 11, 2021 · 0 comments
Closed

Add Smart Battery Control Toggle #10

doppelrittberger opened this issue Apr 11, 2021 · 0 comments

Comments

@doppelrittberger
Copy link

Hi there,
I just used your awesome implementation and wonder if it is possible for you to add also a method to toggle the Smart Battery Control using the following code:
def setBatterySmartControlEnable(self, value):
url = self.BASE_URL + "/settings"
datareq = [{"moduleid":"devices:local","settings":[{"id":"Battery:SmartBatteryControl:Enable","value":str(value)}]}]
datareq = json.dumps(datareq)
requests.put(url = url, data=datareq, headers = self.headers, timeout=10)
return True

Could you please integrate this in a future release?
Thanks a lot
Markus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants