diff --git a/README.md b/README.md index 02258e0..c555ded 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Home Assistant Zehnder ComfoAirQ integration +# Home Assistant Zehnder ComfoAirQ / ComfoCoolQ integration [![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration) @@ -11,6 +11,7 @@ integration in Home Assistant. * Control ventilation speed * Control ventilation mode (auto / manual) +* Control ComfoCool mode (auto / off) * Show various sensors This integration supports the following additional features over the existing integration: diff --git a/custom_components/comfoconnect/select.py b/custom_components/comfoconnect/select.py index a93f5ff..3d29617 100644 --- a/custom_components/comfoconnect/select.py +++ b/custom_components/comfoconnect/select.py @@ -12,6 +12,7 @@ VentilationMode, VentilationSetting, VentilationTemperatureProfile, + ComfoCoolMode, ) from aiocomfoconnect.sensors import ( SENSOR_BYPASS_ACTIVATION_STATE, @@ -122,6 +123,20 @@ class ComfoconnectSelectEntityDescription( 2: VentilationTemperatureProfile.WARM, }.get(value), ), + ComfoconnectSelectEntityDescription( + key="comfocool", + name="ComfoCool Mode", + entity_category=EntityCategory.CONFIG, + get_value_fn=lambda ccb: cast(Coroutine, ccb.get_comfocool_mode()), + set_value_fn=lambda ccb, option: cast( + Coroutine, ccb.set_comfocool_mode(option) + ), + options=[ + ComfoCoolMode.AUTO, + ComfoCoolMode.OFF, + ], + # translation_key="comfocool", + ), ) diff --git a/custom_components/comfoconnect/strings.json b/custom_components/comfoconnect/strings.json index 0f73dc2..b873d6e 100644 --- a/custom_components/comfoconnect/strings.json +++ b/custom_components/comfoconnect/strings.json @@ -22,6 +22,12 @@ "normal": "Normal", "cool": "Cool" } + }, + "comfocool": { + "state": { + "auto": "Auto", + "off": "Off" + } } } }, diff --git a/custom_components/comfoconnect/translations/en.json b/custom_components/comfoconnect/translations/en.json index c7ed7ce..65e65e4 100644 --- a/custom_components/comfoconnect/translations/en.json +++ b/custom_components/comfoconnect/translations/en.json @@ -57,7 +57,13 @@ "normal": "Normal", "warm": "Warm" } + }, + "comfocool": { + "state": { + "auto": "Auto", + "off": "Off" + } } } } -} \ No newline at end of file +}