Skip to content

Commit

Permalink
Add an example entity.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Oct 19, 2023
1 parent 5fc8d6d commit 7d433e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/plum_ecomax/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ class EcomaxNumberEntityDescription(NumberEntityDescription):
native_unit_of_measurement=CALORIFIC_KWH_KG,
product_types={ProductType.ECOMAX_P},
),
EcomaxNumberEntityDescription(
key="water_heater_hysteresis", # Entity key as provided by PyPlumio.
name="Water heater hysteresis", # Entity name as it will be displayed in HASS.
native_step=1, # Slider step.
native_unit_of_measurement=UnitOfTemperature.CELSIUS, # This entity value is in degrees Celsius.
product_types={ProductType.ECOMAX_P}, # This entity will be added for ecoMAX P.
),
)


Expand Down

0 comments on commit 7d433e6

Please sign in to comment.