You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: