From 2e32d6ebf60bfead7b787622750d200d87cd6821 Mon Sep 17 00:00:00 2001 From: mvn23 Date: Sun, 23 Sep 2018 17:19:45 +0200 Subject: [PATCH] Improve opentherm_gw state detection Only show the platform in STATE_HEAT when the boiler is actually heating. --- homeassistant/components/climate/opentherm_gw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/climate/opentherm_gw.py b/homeassistant/components/climate/opentherm_gw.py index c1f7afa61b0aee..00049d26b7f994 100644 --- a/homeassistant/components/climate/opentherm_gw.py +++ b/homeassistant/components/climate/opentherm_gw.py @@ -72,8 +72,9 @@ async def receive_report(self, status): """Receive and handle a new report from the Gateway.""" _LOGGER.debug("Received report: %s", status) ch_active = status.get(self.pyotgw.DATA_SLAVE_CH_ACTIVE) + flame_on = status.get(self.pyotgw.DATA_SLAVE_FLAME_ON) cooling_active = status.get(self.pyotgw.DATA_SLAVE_COOLING_ACTIVE) - if ch_active: + if ch_active and flame_on: self._current_operation = STATE_HEAT elif cooling_active: self._current_operation = STATE_COOL