diff --git a/README.md b/README.md index 3d6ddaf..dc5eb65 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,8 @@ 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 diff --git a/custom_components/alfen_wallbox/number.py b/custom_components/alfen_wallbox/number.py index 17be3b8..284a7f6 100644 --- a/custom_components/alfen_wallbox/number.py +++ b/custom_components/alfen_wallbox/number.py @@ -186,7 +186,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, ), @@ -381,7 +381,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 ), @@ -397,7 +397,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 ), @@ -413,7 +413,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 ),