Skip to content

Commit

Permalink
Add more sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl authored and tetienne committed Aug 3, 2021
1 parent 47afb76 commit f959364
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions custom_components/tahoma/state_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ class StateDescription:
icon="mdi:shower-head",
value=lambda value: round(value),
),
"core:NumberOfShowerRemainingState": StateDescription(
key="core:NumberOfShowerRemainingState",
name="Number of Shower Remaining",
icon="mdi:shower-head",
value=lambda value: round(value),
),
# V40 is measured in litres (L) and shows the amount of warm (mixed) water with a temperature of 40 C, which can be drained from a switched off electric water heater.
"core:V40WaterVolumeEstimationState": StateDescription(
key="core:V40WaterVolumeEstimationState",
name="Water Volume Estimation at 40 °C",
icon="mdi:water",
value=lambda value: round(value),
unit=VOLUME_LITERS,
default_enabled=False,
),
"core:WaterConsumptionState": StateDescription(
key="core:WaterConsumptionState",
name="Water Consumption",
Expand Down Expand Up @@ -76,6 +91,12 @@ class StateDescription:
value=lambda value: round(value),
device_class=sensor.DEVICE_CLASS_TEMPERATURE,
),
"io:MiddleWaterTemperatureState": StateDescription(
key="io:MiddleWaterTemperatureState",
name="Middle Water Temperature",
value=lambda value: round(value),
device_class=sensor.DEVICE_CLASS_TEMPERATURE,
),
}


Expand Down

0 comments on commit f959364

Please sign in to comment.