diff --git a/custom_components/cozytouch/capability.py b/custom_components/cozytouch/capability.py index cd24d62..0f32e7c 100644 --- a/custom_components/cozytouch/capability.py +++ b/custom_components/cozytouch/capability.py @@ -720,6 +720,16 @@ def get_capability_infos(modelInfos: dict, capabilityId: int, capabilityValue: s capability["category"] = "sensor" capability["icon"] = "mdi:heat-wave" + elif capabilityId == 104047: + # Boost timeout max. in minutes + capability["name"] = "boost_timeout_max" + capability["type"] = "minutes_adjustment_number" + capability["category"] = "diag" + capability["icon"] = "mdi:clock-outline" + capability["lowest_value"] = 5 + capability["highest_value"] = 60 + capability["step"] = 5 + elif capabilityId == 105906: capability["name"] = "Target 105906" capability["type"] = "temperature_percent_adjustment_number" diff --git a/custom_components/cozytouch/number.py b/custom_components/cozytouch/number.py index e0ace2c..2954520 100644 --- a/custom_components/cozytouch/number.py +++ b/custom_components/cozytouch/number.py @@ -5,6 +5,7 @@ from homeassistant.components.number import NumberDeviceClass, NumberEntity from homeassistant.config_entries import ConfigEntry +from homeassistant.const import UnitOfTime from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -331,6 +332,7 @@ def __init__( ) self._attr_device_class = None self._attr_mode = "auto" + self._attr_native_unit_of_measurement = UnitOfTime.MINUTES self._attr_native_step = capability.get("step", 1) self._attr_native_min_value = capability.get("lowest_value", 0) self._attr_native_max_value = capability.get("highest_value", 60) diff --git a/custom_components/cozytouch/strings.json b/custom_components/cozytouch/strings.json index 76b6413..770ab20 100644 --- a/custom_components/cozytouch/strings.json +++ b/custom_components/cozytouch/strings.json @@ -140,6 +140,7 @@ }, "number": { "away_mode_temperature": { "name": "Away Mode Temperature" }, + "boost_timeout_max": { "name": "Boost Timeout Max." }, "override_total_time": { "name": "Override Total Time" }, "override_total_time_z1": { "name": "Override Total Time Z1" }, "override_total_time_z2": { "name": "Override Total Time Z2" }, diff --git a/custom_components/cozytouch/translations/en.json b/custom_components/cozytouch/translations/en.json index c8e8c9b..4bf3b4a 100644 --- a/custom_components/cozytouch/translations/en.json +++ b/custom_components/cozytouch/translations/en.json @@ -140,6 +140,7 @@ }, "number": { "away_mode_temperature": { "name": "Away Mode Temperature" }, + "boost_timeout_max": { "name": "Boost Timeout Max." }, "override_total_time": { "name": "Override Total Time" }, "override_total_time_z1": { "name": "Override Total Time Z1" }, "override_total_time_z2": { "name": "Override Total Time Z2" }, diff --git a/custom_components/cozytouch/translations/fr.json b/custom_components/cozytouch/translations/fr.json index 6af9f9d..9869933 100644 --- a/custom_components/cozytouch/translations/fr.json +++ b/custom_components/cozytouch/translations/fr.json @@ -140,6 +140,7 @@ }, "number": { "away_mode_temperature": { "name": "Température Absence" }, + "boost_timeout_max": { "name": "Temporisation Max. Boost" }, "override_total_time": { "name": "Durée Délégation" }, "override_total_time_z1": { "name": "Durée Délégation Z1" }, "override_total_time_z2": { "name": "Durée Délégation Z2" },