From 89890807466f0ec171d314a9913697fb43f845a2 Mon Sep 17 00:00:00 2001 From: pksobon <55964396+pksobon@users.noreply.github.com> Date: Mon, 29 May 2023 21:27:25 +0200 Subject: [PATCH 1/3] Update button.py --- custom_components/hon/button.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/custom_components/hon/button.py b/custom_components/hon/button.py index a4d089d..1309914 100644 --- a/custom_components/hon/button.py +++ b/custom_components/hon/button.py @@ -35,6 +35,20 @@ BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = { translation_key="stop_program", ), ), + "HO": ( + ButtonEntityDescription( + key="startProgram", + name="Start Program", + icon="mdi:hvac", + translation_key="start_program", + ), + ButtonEntityDescription( + key="stopProgram", + name="Stop Program", + icon="mdi:hvac-off", + translation_key="stop_program", + ), + ), } -- 2.35.3 From 36c8d97f73a2fb533262ae054275f979e02cf642 Mon Sep 17 00:00:00 2001 From: pksobon <55964396+pksobon@users.noreply.github.com> Date: Mon, 29 May 2023 21:28:00 +0200 Subject: [PATCH 2/3] Update number.py --- custom_components/hon/number.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index 0d6268b..ad1c6bc 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -162,6 +162,20 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { translation_key="freezer_temp_sel", ), ), + "HO": ( + HonNumberEntityDescription( + key="startProgram.windSpeed", + name="Wind speed", + icon="mdi:fan", + entity_category=EntityCategory.CONFIG, + ), + HonNumberEntityDescription( + key="startProgram.lightStatus", + name="Light status", + icon="mdi:lightbulb", + entity_category=EntityCategory.CONFIG, + ), + ), } NUMBERS["WD"] = unique_entities(NUMBERS["WM"], NUMBERS["TD"]) -- 2.35.3 From 8d6789a049f6b9949a19ce35419300f4786697d8 Mon Sep 17 00:00:00 2001 From: pksobon <55964396+pksobon@users.noreply.github.com> Date: Mon, 29 May 2023 21:28:37 +0200 Subject: [PATCH 3/3] Update sensor.py --- custom_components/hon/sensor.py | 65 +++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index 3ec086f..31affd8 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -535,6 +535,71 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { key="errors", name="Error", icon="mdi:math-log", translation_key="errors" ), ), + "HO": ( + HonSensorEntityDescription( + key="delayTime", + name="Delay time", + icon="mdi:clock-start", + state_class=SensorStateClass.MEASUREMENT, + native_unit_of_measurement=UnitOfTime.MINUTES, + ), + HonSensorEntityDescription( + key="delayTimeStatus", + name="Delay time status", + icon="mdi:clock-start", + ), + HonSensorEntityDescription( + key="errors", + name="Errors", + icon="mdi:alert-circle", + ), + HonSensorEntityDescription( + key="filterCleaningAlarmStatus", + name="Filter Cleaning Alarm Status", + ), + HonSensorEntityDescription( + key="filterCleaningStatus", + name="Filter Cleaning Status", + ), + HonSensorEntityDescription( + key="lastWorkTime", + name="Last Work Time", + icon="mdi:clock-start", + ), + HonSensorEntityDescription( + key="lightStatus", + name="Light Status", + icon="mdi:lightbulb", + ), + HonSensorEntityDescription( + key="machMode", + name="Mach Mode", + ), + HonSensorEntityDescription( + key="onOffStatus", + name="On / Off Status", + icon="mdi:lightbulb", + ), + HonSensorEntityDescription( + key="quickDelayTimeStatus", + name="Quick Delay Time Status", + ), + HonSensorEntityDescription( + key="rgbLightColors", + name="RGB Light Color", + icon="mdi:lightbulb", + ), + HonSensorEntityDescription( + key="rgbLightStatus", + name="RGB Light Status", + icon="mdi:lightbulb", + ), + HonSensorEntityDescription( + key="windSpeed", + name="Wind Speed", + icon="mdi:fan", + ), + ), } SENSORS["WD"] = unique_entities(SENSORS["WM"], SENSORS["TD"]) -- 2.35.3