From a56d3e5f88e599bfd3a3de92e59439f50ba26bb3 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 8 May 2023 19:39:52 +0200 Subject: [PATCH] Fix missing temperature #38 --- README.md | 2 ++ custom_components/hon/manifest.json | 2 +- custom_components/hon/sensor.py | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cbe19e1..bad973d 100644 --- a/README.md +++ b/README.md @@ -322,6 +322,7 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0 | Acqua Plus | | `binary_sensor` | `acquaplus` | | Anti-Crease | | `binary_sensor` | `anticrease` | | Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` | +| Current Temperature | `thermometer` | `sensor` | `temp` | | Current Water Used | `water` | `sensor` | `currentWaterUsed` | | Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | | Door | | `binary_sensor` | `doorStatus` | @@ -384,6 +385,7 @@ I moved the api related stuff into the package [pyhOn](https://github.com/Andre0 | --- | --- | --- | --- | | Acqua Plus | | `binary_sensor` | `acquaplus` | | Current Electricity Used | `lightning-bolt` | `sensor` | `currentElectricityUsed` | +| Current Temperature | `thermometer` | `sensor` | `temp` | | Current Water Used | `water` | `sensor` | `currentWaterUsed` | | Dirt level | `liquid-spot` | `sensor` | `dirtyLevel` | | Door | | `binary_sensor` | `doorStatus` | diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index f7a9afc..ea962e3 100644 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -7,5 +7,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/Andre0512/hon/issues", "requirements": ["pyhOn==0.10.6"], - "version": "0.7.3-beta.0" + "version": "0.7.3-beta.1" } diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index 0dd08dd..79b0648 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -161,6 +161,14 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { native_unit_of_measurement=UnitOfMass.KILOGRAMS, translation_key="suggested_load", ), + SensorEntityDescription( + key="temp", + name="Current Temperature", + icon="mdi:thermometer", + state_class=SensorStateClass.MEASUREMENT, + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + translation_key="temperature", + ), ), "TD": ( SensorEntityDescription(