-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: heat pump mode (dual with only one switch)
Fixes #143
- Loading branch information
=
committed
Jul 23, 2024
1 parent
998b9a8
commit c097138
Showing
28 changed files
with
1,882 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
{ | ||
"python.pythonPath": "/usr/bin/python3", | ||
"python.formatting.provider": "black", | ||
"editor.formatOnSave": true, | ||
"python.analysis.diagnosticSeverityOverrides": {}, | ||
"python.analysis.indexing": true, | ||
"python.analysis.autoImportCompletions": true, | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.formatOnSave": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
custom_components/dual_smart_thermostat/hvac_action_reason/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Hvac Action Reason Module""" |
1 change: 1 addition & 0 deletions
1
custom_components/dual_smart_thermostat/hvac_controller/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""HVAC controller module for Dual Smart Thermostat.""" |
42 changes: 42 additions & 0 deletions
42
custom_components/dual_smart_thermostat/hvac_controller/cooler_controller.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from datetime import timedelta | ||
import logging | ||
from typing import Callable | ||
|
||
from homeassistant.core import HomeAssistant | ||
|
||
from custom_components.dual_smart_thermostat.hvac_controller.generic_controller import ( | ||
GenericHvacController, | ||
) | ||
from custom_components.dual_smart_thermostat.managers.environment_manager import ( | ||
EnvironmentManager, | ||
) | ||
from custom_components.dual_smart_thermostat.managers.opening_manager import ( | ||
OpeningManager, | ||
) | ||
|
||
_LOGGER = logging.getLogger(__name__) | ||
|
||
|
||
class CoolerHvacController(GenericHvacController): | ||
|
||
def __init__( | ||
self, | ||
hass: HomeAssistant, | ||
entity_id, | ||
min_cycle_duration: timedelta, | ||
environment: EnvironmentManager, | ||
openings: OpeningManager, | ||
turn_on_callback: Callable, | ||
turn_off_callback: Callable, | ||
) -> None: | ||
self._controller_type = self.__class__.__name__ | ||
|
||
super().__init__( | ||
hass, | ||
entity_id, | ||
min_cycle_duration, | ||
environment, | ||
openings, | ||
turn_on_callback, | ||
turn_off_callback, | ||
) |
Oops, something went wrong.