Skip to content

Commit

Permalink
Merge pull request #125 from aritmeester/other_tariff
Browse files Browse the repository at this point in the history
Other tariff
  • Loading branch information
leeyuentuen authored May 24, 2024
2 parents afeeb6b + fd2724b commit e45a2fc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions custom_components/alfen_wallbox/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,21 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi
api_param="3262_4",
round_digits=2
),
AlfenNumberDescription(
key="price_price_other",
name="Price other",
state=None,
icon="mdi:currency-eur",
assumed_state=False,
device_class=None,
native_min_value=-5,
native_max_value=5,
native_step=0.01,
custom_mode=NumberMode.BOX,
unit_of_measurement=CURRENCY_EURO,
api_param="3262_6",
round_digits=2
),
AlfenNumberDescription(
key="ev_disconnection_timeout",
name="Car Disconnection Timeout (s)",
Expand Down
7 changes: 7 additions & 0 deletions custom_components/alfen_wallbox/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ class AlfenTextDescription(TextEntityDescription, AlfenTextDescriptionMixin):
mode=TextMode.PASSWORD,
api_param="2116_1"
),
AlfenTextDescription(
key="price_other_description",
name="Price other description",
icon="mdi:tag-text-outline",
mode=TextMode.TEXT,
api_param="3262_7"
),
)


Expand Down

0 comments on commit e45a2fc

Please sign in to comment.