mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[homekit] Fix linking a Lighting to a Group:Dimmer (#17139)
Signed-off-by: Cody Cutrer <cody@cutrer.us> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
f697cc6c5c
commit
c20b0a6304
@ -97,7 +97,7 @@ public class HomekitOHItemProxy {
|
||||
final PercentType brightness = (PercentType) commandCache.remove(BRIGHTNESS_COMMAND);
|
||||
final DecimalType hue = (DecimalType) commandCache.remove(HUE_COMMAND);
|
||||
final PercentType saturation = (PercentType) commandCache.remove(SATURATION_COMMAND);
|
||||
final @Nullable OnOffType currentOnState = ((DimmerItem) item).getStateAs(OnOffType.class);
|
||||
final @Nullable OnOffType currentOnState = item.getStateAs(OnOffType.class);
|
||||
if (on != null) {
|
||||
// always sends OFF.
|
||||
// sends ON only if
|
||||
|
Loading…
Reference in New Issue
Block a user