Workaround for incorrectly reported fan state (#12145)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
parent
4cad5dab1e
commit
78e214651f
|
@ -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:
|
||||||
|
// 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();
|
return data.getThermostatData().getFanStatus();
|
||||||
|
}
|
||||||
case DAY:
|
case DAY:
|
||||||
return data.getThermostatData().getTime().getDayOfWeek();
|
return data.getThermostatData().getTime().getDayOfWeek();
|
||||||
case HOUR:
|
case HOUR:
|
||||||
|
|
Loading…
Reference in New Issue