]> git.basschouten.com Git - openhab-addons.git/commit
[homekit] Make Thermostat.CurrentHeatingCoolingMode optional (#17191)
authorCody Cutrer <cody@cutrer.us>
Tue, 20 Aug 2024 13:30:47 +0000 (07:30 -0600)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2024 13:30:47 +0000 (15:30 +0200)
commita03056d30abb37192001320c6c9cd644ca7c1bb2
tree71aa187cb5ca7777d0b10f9ea31df6ab13873157
parent9ed05ad4086d27c13ede4da09554936cb71d9abc
[homekit] Make Thermostat.CurrentHeatingCoolingMode optional (#17191)

Just default it to OFF if it's not linked. The experience in Home
app is still decent - it says "Cool to X", "Heat to X", or
"Set to X", instead of "Cooling to X", "Heating to X" if it was
actually running. I thought about defaulting it to "HEAT" or "COOL"
depending on the current target mode, but if it's set to "AUTO",
that's not a valid state for the current mode.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.io.homekit/README.md
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitAccessoryFactory.java
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitThermostatImpl.java