Skip to content

Commit

Permalink
Handle system state = 3 (System Waiting)
Browse files Browse the repository at this point in the history
  • Loading branch information
thevoltagesource committed Dec 8, 2021
1 parent e12ab2f commit b1f1aa7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions custom_components/myicomfort/climate.py
Expand Up @@ -16,6 +16,9 @@
Ideas/Future:
Change log:
202112xx - Map api state = 3 (system waiting) as CURRENT_HVAC_IDLE. Add
item system_waiting to extra_device_attributes as (boolean) True
when state = 3 otherwise False.
20211206 - Added SUPPORT_AUX_HEAT. Made required changes to integration to
handle aux/emergency heat mode. API also required changes so the
required version was updated (>= v0.5.x).
Expand Down Expand Up @@ -172,8 +175,9 @@ def update(self):
@property
def extra_state_attributes(self):
"""Return device specific state attributes."""
return {
}
data = {}
data["system_waiting"] = True if self._api.state == 3 else False
return data

@property
def name(self):
Expand Down Expand Up @@ -252,6 +256,8 @@ def hvac_modes(self):
@property
def hvac_action(self):
"""Return the current hvac state/action."""
if self._api.state == 3:
return CURRENT_HVAC_IDLE
return HVAC_ACTIONS[self._api.state]

@property
Expand Down
4 changes: 2 additions & 2 deletions custom_components/myicomfort/manifest.json
@@ -1,11 +1,11 @@
{
"domain": "myicomfort",
"name": "Lennox iComfort WiFI",
"version": "3.0.3",
"version": "3.2.0",
"documentation": "https://github.com/thevoltagesource/LennoxiComfort",
"issue_tracker": "https://github.com/thevoltagesource/LennoxiComfort/issues",
"dependencies": [],
"codeowners": ["@thevoltagesource"],
"requirements": ["voluptuous", "myicomfort==0.5.0"],
"requirements": ["voluptuous", "myicomfort==0.6.0"],
"iot_class": "Cloud Polling"
}
2 changes: 1 addition & 1 deletion hacs.json
@@ -1,6 +1,6 @@
{
"name": "Lennox iComfort WiFi Thermostat Integration",
"domains": ["climate"],
"homeassistant": "0.96.0",
"homeassistant": "2021.4.0",
"iot_class": "Cloud Polling"
}

0 comments on commit b1f1aa7

Please sign in to comment.