File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
homeassistant/components/advantage_air Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 14
14
FAN_MEDIUM ,
15
15
ClimateEntity ,
16
16
ClimateEntityFeature ,
17
+ HVACAction ,
17
18
HVACMode ,
18
19
)
19
20
from homeassistant .const import ATTR_TEMPERATURE , PRECISION_WHOLE , UnitOfTemperature
49
50
ADVANTAGE_AIR_HEAT_TARGET = "myAutoHeatTargetTemp"
50
51
ADVANTAGE_AIR_COOL_TARGET = "myAutoCoolTargetTemp"
51
52
ADVANTAGE_AIR_MYFAN = "autoAA"
53
+ ADVANTAGE_AIR_MYAUTO_MODE_SET = "myAutoModeCurrentSetMode"
54
+
55
+ HVAC_ACTIONS = {
56
+ "cool" : HVACAction .COOLING ,
57
+ "heat" : HVACAction .HEATING ,
58
+ "vent" : HVACAction .FAN ,
59
+ "dry" : HVACAction .DRYING ,
60
+ }
52
61
53
62
HVAC_MODES = [
54
63
HVACMode .OFF ,
@@ -175,6 +184,17 @@ def hvac_mode(self) -> HVACMode | None:
175
184
return ADVANTAGE_AIR_HVAC_MODES .get (self ._ac ["mode" ])
176
185
return HVACMode .OFF
177
186
187
+ @property
188
+ def hvac_action (self ) -> HVACAction | None :
189
+ """Return the current running HVAC action."""
190
+ if self ._ac ["state" ] == ADVANTAGE_AIR_STATE_OFF :
191
+ return HVACAction .OFF
192
+ if self ._ac ["mode" ] == "myauto" :
193
+ return HVAC_ACTIONS .get (
194
+ self ._ac .get (ADVANTAGE_AIR_MYAUTO_MODE_SET , HVACAction .OFF )
195
+ )
196
+ return HVAC_ACTIONS .get (self ._ac ["mode" ])
197
+
178
198
@property
179
199
def fan_mode (self ) -> str | None :
180
200
"""Return the current fan modes."""
You can’t perform that action at this time.
0 commit comments