From: mlobstein Date: Fri, 28 Jan 2022 21:00:52 +0000 (-0600) Subject: Workaround for incorrectly reported fan state (#12145) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=78e214651fa5ea715a65d8464df1108f1632290c;p=openhab-addons.git Workaround for incorrectly reported fan state (#12145) Signed-off-by: Michael Lobstein --- diff --git a/bundles/org.openhab.binding.radiothermostat/src/main/java/org/openhab/binding/radiothermostat/internal/handler/RadioThermostatHandler.java b/bundles/org.openhab.binding.radiothermostat/src/main/java/org/openhab/binding/radiothermostat/internal/handler/RadioThermostatHandler.java index b7eb61d852..99b3e201b9 100644 --- a/bundles/org.openhab.binding.radiothermostat/src/main/java/org/openhab/binding/radiothermostat/internal/handler/RadioThermostatHandler.java +++ b/bundles/org.openhab.binding.radiothermostat/src/main/java/org/openhab/binding/radiothermostat/internal/handler/RadioThermostatHandler.java @@ -478,7 +478,12 @@ public class RadioThermostatHandler extends BaseThingHandler implements RadioThe case STATUS: return data.getThermostatData().getStatus(); case FAN_STATUS: - return data.getThermostatData().getFanStatus(); + // workaround for some thermostats that don't report that the fan is on during heating or cooling + if (data.getThermostatData().getStatus() > 0) { + return 1; + } else { + return data.getThermostatData().getFanStatus(); + } case DAY: return data.getThermostatData().getTime().getDayOfWeek(); case HOUR: