]> git.basschouten.com Git - openhab-addons.git/commit
[homekit] fix BooleanItemReader to work with DimmerItems (#13507)
authorCody Cutrer <cody@cutrer.us>
Mon, 10 Oct 2022 11:36:23 +0000 (05:36 -0600)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2022 11:36:23 +0000 (13:36 +0200)
commit507e714dd02e522ebc79a0af7a4196a47e48b101
tree0efb82e72c9f2bc9a34a34a2ec02543885a8df5a
parentd83c32cd2437836fabf1345bc44322202d7fc8aa
[homekit] fix BooleanItemReader to work with DimmerItems (#13507)

* [homekit] fix BooleanItemReader to work with DimmerItems

DimmerItems have a PercentType state, which is easily convertible
to OnOffType, but is not inherited from it. So take that into account.

i.e. a variable speed fan can use a single DimmerItem for both
ActiveStatus and RotationSpeed.

* [homekit] Document that Dimmer is a possible item type for several booleans

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/BooleanItemReader.java