Expose detailed Ecobee equipment status (#20767)
* ecobee: expose detailed equipment status * Fix #18244 for ecobee by moving current_operation property to current_operation_mode which is more accurate and defining current_operation properly, thanks @ZetaPhoenix * fix docstring and lint issue * Revert "fix docstring and lint issue" This reverts commitd3a645f075
. * Revert "Fix #18244 for ecobee by moving current_operation property to current_operation_mode which is more accurate and defining current_operation properly, thanks @ZetaPhoenix" This reverts commitbfd90551ef
.
This commit is contained in:
parent
f272ed3b91
commit
c59d45caa3
2 changed files with 11 additions and 5 deletions
|
@ -279,6 +279,7 @@ class Thermostat(ClimateDevice):
|
|||
"fan": self.fan,
|
||||
"climate_mode": self.mode,
|
||||
"operation": operation,
|
||||
"equipment_running": status,
|
||||
"climate_list": self.climate_list,
|
||||
"fan_min_on_time": self.fan_min_on_time
|
||||
}
|
||||
|
|
|
@ -183,7 +183,8 @@ class TestEcobee(unittest.TestCase):
|
|||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'heat'} == \
|
||||
'operation': 'heat',
|
||||
'equipment_running': 'heatPump2'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
|
||||
self.ecobee['equipmentStatus'] = 'auxHeat2'
|
||||
|
@ -192,7 +193,8 @@ class TestEcobee(unittest.TestCase):
|
|||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'heat'} == \
|
||||
'operation': 'heat',
|
||||
'equipment_running': 'auxHeat2'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
self.ecobee['equipmentStatus'] = 'compCool1'
|
||||
assert {'actual_humidity': 15,
|
||||
|
@ -200,7 +202,8 @@ class TestEcobee(unittest.TestCase):
|
|||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'cool'} == \
|
||||
'operation': 'cool',
|
||||
'equipment_running': 'compCool1'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
self.ecobee['equipmentStatus'] = ''
|
||||
assert {'actual_humidity': 15,
|
||||
|
@ -208,7 +211,8 @@ class TestEcobee(unittest.TestCase):
|
|||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'idle'} == \
|
||||
'operation': 'idle',
|
||||
'equipment_running': ''} == \
|
||||
self.thermostat.device_state_attributes
|
||||
|
||||
self.ecobee['equipmentStatus'] = 'Unknown'
|
||||
|
@ -217,7 +221,8 @@ class TestEcobee(unittest.TestCase):
|
|||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'Unknown'} == \
|
||||
'operation': 'Unknown',
|
||||
'equipment_running': 'Unknown'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
|
||||
def test_is_away_mode_on(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue