]> git.basschouten.com Git - openhab-addons.git/commit
[homekit] use quantity type conversions for temperature characteristics (#12083)
authorCody Cutrer <cody@cutrer.us>
Sun, 23 Jan 2022 12:40:14 +0000 (05:40 -0700)
committerGitHub <noreply@github.com>
Sun, 23 Jan 2022 12:40:14 +0000 (13:40 +0100)
commitd4fb20d529d1508c08df6140773b7ac9643c523f
treedf3115d12d9dd2cb7cccb78c2153251f97406c0f
parent6bd37cb02a9a9775bfd09cad96c7d016c8b39139
[homekit] use quantity type conversions for temperature characteristics (#12083)

if an Item associated with a temperature characteristic has a QuantityType
(of dimension Temperature) as its state, regardless of current unit,
use that to convert to celsius instead of any other configuration.

Note that this is only for supply values to HomeKit; commands coming from
HomeKit will still send a DecimalType with units according to the HomeKit-wide
useFahrenheit configuration.

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/AbstractHomekitAccessoryImpl.java
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitCharacteristicFactory.java
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitHeaterCoolerImpl.java
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitTemperatureSensorImpl.java
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitThermostatImpl.java