mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[homekit] Fix linking a Lighting to a Group:Dimmer (#17139)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
parent
730333193d
commit
0158befacc
@ -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