From b9652688af9b5c84890a82dd2da4e47d00d20c4a Mon Sep 17 00:00:00 2001 From: Tuen Lee Date: Wed, 8 Nov 2023 22:43:56 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3d6ddaf..4e6a1d1 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ data: > After reverse engineering the API myself I found out that there is already a Python libary wrapping the Alfen API. > https://gitlab.com/LordGaav/alfen-eve/-/tree/develop/alfeneve +> https://github.com/leeyuentuen/alfen_wallbox/wiki/API-paramID ## Installation From fc89a26494e1eeea28445736ba80577cbe2b8b65 Mon Sep 17 00:00:00 2001 From: Tuen Lee Date: Wed, 8 Nov 2023 22:44:18 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4e6a1d1..dc5eb65 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ data: > After reverse engineering the API myself I found out that there is already a Python libary wrapping the Alfen API. > https://gitlab.com/LordGaav/alfen-eve/-/tree/develop/alfeneve +> > https://github.com/leeyuentuen/alfen_wallbox/wiki/API-paramID ## Installation From 47dd1ad8afc3bf681502cc41acb998d57b5471b7 Mon Sep 17 00:00:00 2001 From: Thomas Dedeyne Date: Fri, 12 Jan 2024 11:14:24 +0100 Subject: [PATCH 3/3] Use the correct units --- custom_components/alfen_wallbox/number.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/alfen_wallbox/number.py b/custom_components/alfen_wallbox/number.py index 5226736..66216a1 100644 --- a/custom_components/alfen_wallbox/number.py +++ b/custom_components/alfen_wallbox/number.py @@ -173,7 +173,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi native_max_value=30, native_step=1, custom_mode=None, - unit_of_measurement=UnitOfElectricCurrent.AMPERE, + unit_of_measurement=UnitOfTime.SECONDS, api_param="21B9_0", round_digits=None, ), @@ -368,7 +368,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi native_max_value=30, native_step=1, custom_mode=None, - unit_of_measurement=CURRENCY_EURO, + unit_of_measurement=UnitOfTime.SECONDS, api_param="2136_0", round_digits=None ), @@ -384,7 +384,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi native_max_value=30, native_step=1, custom_mode=None, - unit_of_measurement=CURRENCY_EURO, + unit_of_measurement=UnitOfTime.SECONDS, api_param="2184_0", round_digits=None ), @@ -400,7 +400,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi native_max_value=30, native_step=1, custom_mode=None, - unit_of_measurement=CURRENCY_EURO, + unit_of_measurement=UnitOfTime.SECONDS, api_param="2168_0", round_digits=None ),