From 61364a68e4e89b52334977d7266fda70265dc55b Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Thu, 11 Apr 2024 22:43:50 +0200 Subject: [PATCH 1/3] Update .gitignore for PyCharm --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index e7d52ec..0e5a5bc 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,6 @@ dmypy.json test_liviu.py APIDEBUG.md .DS_Store + +# PyCharm +.idea/ \ No newline at end of file From 59421a8cbd44bddefc1543d6713934bf15864ce4 Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Thu, 11 Apr 2024 22:45:22 +0200 Subject: [PATCH 2/3] Allow power boost configuration Co-authored-by: @rubens73 (https://github.com/rubenms73) Fixes #32 --- wallbox/wallbox.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wallbox/wallbox.py b/wallbox/wallbox.py index 50091ee..97fa4cf 100644 --- a/wallbox/wallbox.py +++ b/wallbox/wallbox.py @@ -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) From a56edf920154bd6d31d7bed2b8fda468ba9e3af9 Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Mon, 20 May 2024 09:24:12 +0000 Subject: [PATCH 3/3] Readme update --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 79fce70..fbc489c 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,12 @@ pip install wallbox - a full charger reboot can take a few minutes. Charger status will be slow to update (ie: READY (10s) -> DISCONNECTED (90s) -> READY) CAUTION: use this method with care!! Check if the charger is not in the middle of a firmware upgrade as this can brick your charger. +### setIcpMaxCurrent(chargerId, newIcpMaxCurrentValue) + +- sets charger Maximum ICP Current available (Amps). + +Please note that the wallbox may refuse this action if not setup properly of if not supported by your model + ## Simple example ```python