diff --git a/HomeKitBridge/LIFX/HKBLightAccessoryLIFX.m b/HomeKitBridge/LIFX/HKBLightAccessoryLIFX.m index f1ab3ba..f218263 100644 --- a/HomeKitBridge/LIFX/HKBLightAccessoryLIFX.m +++ b/HomeKitBridge/LIFX/HKBLightAccessoryLIFX.m @@ -80,9 +80,10 @@ -(void)characteristicDidUpdateValue:(HAKCharacteristic*)characteristic #pragma mark - LFXLightObserver --(void)light:(LFXLight *)light didChangeLabel:(NSString *)label{ - self.accessory.name = light.label; -} +// I choose not to bridge label=name as I have my LIFX bulbs and HomeKit bulbs named very differently +//-(void)light:(LFXLight *)light didChangeLabel:(NSString *)label{ +// self.accessory.name = light.label; +//} -(void)light:(LFXLight *)light didChangeColor:(LFXHSBKColor *)color{ [self updateHKColorValues]; } @@ -127,9 +128,8 @@ -(void)updateHomeKitKelvin:(NSUInteger)kelvin{ #pragma mark - Update LIFX API to HomeKit changes --(void)updateExternalPowerState:(BOOL)_powerState{ - LFXPowerState powerState = _powerState ? LFXPowerStateOn : LFXPowerStateOff; - [self.lifxBulb setPowerState:powerState]; +-(void)updateExternalPowerState:(BOOL)powerState{ + [self.lifxBulb setPowerState:powerState ? LFXPowerStateOn : LFXPowerStateOff]; } -(void)updateExternalBrightness:(NSInteger)brightness{