From 4941e70b184ec5cfd1ea4ccf7df7c564be7599dd Mon Sep 17 00:00:00 2001 From: msp1974 Date: Thu, 30 Apr 2020 23:37:07 +0100 Subject: [PATCH] Fix for issue #98 --- custom_components/wiser/climate.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/custom_components/wiser/climate.py b/custom_components/wiser/climate.py index 542d089..80db8b6 100755 --- a/custom_components/wiser/climate.py +++ b/custom_components/wiser/climate.py @@ -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, @@ -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")