mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
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:
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user