mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[homekit] fix thermostats with auto mode and only target temperature (#17136)
allow configuring such an accessory, and it's up to the user to be okay with how the Home app deals with it Signed-off-by: Cody Cutrer <cody@cutrer.us> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
c20b0a6304
commit
8eff7c88cd
@ -83,13 +83,6 @@ class HomekitThermostatImpl extends AbstractHomekitAccessoryImpl {
|
||||
|
||||
var targetHeatingCoolingStateCharacteristic = getCharacteristic(TargetHeatingCoolingStateCharacteristic.class)
|
||||
.get();
|
||||
if (Arrays.stream(targetHeatingCoolingStateCharacteristic.getValidValues())
|
||||
.anyMatch(v -> v.equals(TargetHeatingCoolingStateEnum.AUTO))
|
||||
&& (!coolingThresholdTemperatureCharacteristic.isPresent()
|
||||
|| !heatingThresholdTemperatureCharacteristic.isPresent())) {
|
||||
throw new HomekitException(
|
||||
"Both HeatingThresholdTemperature and CoolingThresholdTemperature must be provided if AUTO mode is allowed.");
|
||||
}
|
||||
|
||||
// TargetTemperature not provided; simulate by forwarding to HeatingThresholdTemperature and
|
||||
// CoolingThresholdTemperature
|
||||
|
Loading…
Reference in New Issue
Block a user