Skip to content

Commit

Permalink
Merge pull request #4 from bj00rn/chore/add-mode-expiry-time-sensors
Browse files Browse the repository at this point in the history
add sensors for time left for boost and fireplace modes
  • Loading branch information
bj00rn authored Oct 12, 2023
2 parents f72fb7c + 41462b8 commit 10f5371
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

Name | Description | Unit |
-- | -- | --
`boost_mode_minutes_left` | minutes left until boost mode expires | `min`
`extract_fan_speed` | fan speed | `%`
`supply_fan_speed` | fan speed | `%`
`filter_months_left` | filter months left | `m`
`fireplace_mode_minutes_left` | minutes left until fireplace mode expires | `min`
`heat_exchanger_rotor_speed` | rotor speed of heat exchanger | `rpm`
`heat_exchanger_rotor_speed_percent` | rotor speed of heat exchanger | `%`
`heater_air_temperature` | air temperature at heater | `°C`
Expand Down
2 changes: 1 addition & 1 deletion custom_components/saleryd_hrv/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"requirements": [
"pysaleryd>=3.0.6"
],
"version": "2.2.2"
"version": "2.2.3"
}
22 changes: 22 additions & 0 deletions custom_components/saleryd_hrv/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,28 @@ def extra_state_attributes(self) -> dict[str, Any] | None:
native_unit_of_measurement=UnitOfTime.MONTHS,
),
},
"boost_mode_minutes_left": {
"klass": SalerydLokeSensor,
"description": SensorEntityDescription(
key="*FI",
icon="mdi:wrench-clock",
name="Boost mode minutes left",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.MINUTES,
),
},
"fireplace_mode_minutes_left": {
"klass": SalerydLokeSensor,
"description": SensorEntityDescription(
key="*ME",
icon="mdi:wrench-clock",
name="Fireplace mode minutes left",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.MINUTES,
),
},
"control_system_name": {
"klass": SalerydLokeSensor,
"description": SensorEntityDescription(
Expand Down

0 comments on commit 10f5371

Please sign in to comment.