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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

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