Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComfoCool mode #51

Merged
merged 5 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions custom_components/comfoconnect/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
VentilationMode,
VentilationSetting,
VentilationTemperatureProfile,
ComfoCoolMode,
)
from aiocomfoconnect.sensors import (
SENSOR_BYPASS_ACTIVATION_STATE,
Expand Down Expand Up @@ -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",
),
)


Expand Down
6 changes: 6 additions & 0 deletions custom_components/comfoconnect/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"normal": "Normal",
"cool": "Cool"
}
},
"comfocool": {
"state": {
"auto": "Auto",
"off": "Off"
}
}
}
},
Expand Down
8 changes: 7 additions & 1 deletion custom_components/comfoconnect/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@
"normal": "Normal",
"warm": "Warm"
}
},
"comfocool": {
"state": {
"auto": "Auto",
"off": "Off"
}
}
}
}
}
}
Loading