Skip to content

Commit

Permalink
Allow power boost configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nanomad committed Apr 11, 2024
1 parent 61364a6 commit 59421a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wallbox/wallbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,15 @@ def setEnergyCost(self, chargerId, energyCost):
except requests.exceptions.HTTPError as err:
raise (err)
return json.loads(response.text)

def setIcpMaxCurrent(self, chargerId, newIcpMaxCurrentValue):
try:
response = requests.post(
f"{self.baseUrl}chargers/config/{chargerId}",
headers=self.headers,
json={'icp_max_current': newIcpMaxCurrentValue},
)
response.raise_for_status()
except requests.exceptions.HTTPError as err:
raise (err)
return json.loads(response.text)

0 comments on commit 59421a8

Please sign in to comment.