Skip to content

Commit

Permalink
Fix for issue #98
Browse files Browse the repository at this point in the history
  • Loading branch information
msp1974 committed Apr 30, 2020
1 parent 38f69bc commit 4941e70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom_components/wiser/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from homeassistant.core import callback

from homeassistant.components.climate.const import (
CURRENT_HVAC_HEAT,
CURRENT_HVAC_IDLE,
HVAC_MODE_AUTO,
SUPPORT_TARGET_TEMPERATURE,
SUPPORT_PRESET_MODE,
Expand Down Expand Up @@ -332,6 +334,13 @@ def device_info(self):
"model": ROOM.title(),
}

@property
def hvac_action(self):
if self.data.wiserhub.getRoom(self.room_id).get("ControlOutputState") == "On":
return CURRENT_HVAC_HEAT
else:
return CURRENT_HVAC_IDLE

@property
def hvac_mode(self):
state = self.data.wiserhub.getRoom(self.room_id).get("Mode")
Expand Down

0 comments on commit 4941e70

Please sign in to comment.