Workaround for incorrectly reported fan state (#12145)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
mlobstein
2022-01-28 15:00:52 -06:00
committed by GitHub
parent 4cad5dab1e
commit 78e214651f

View File

@@ -478,7 +478,12 @@ public class RadioThermostatHandler extends BaseThingHandler implements RadioThe
case STATUS: case STATUS:
return data.getThermostatData().getStatus(); return data.getThermostatData().getStatus();
case FAN_STATUS: 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: case DAY:
return data.getThermostatData().getTime().getDayOfWeek(); return data.getThermostatData().getTime().getDayOfWeek();
case HOUR: case HOUR: