diff --git a/src/fluxAccessory.ts b/src/fluxAccessory.ts index f4ec616..ab5758a 100644 --- a/src/fluxAccessory.ts +++ b/src/fluxAccessory.ts @@ -314,7 +314,7 @@ export class FluxAccessory { private updateWizLight = async (wizBulb: WizBulb): Promise => { const pilot = await wizBulb.get(); this._platform.log.info(`Adjusting wiz bulb: ${wizBulb.getMac()}`); - wizBulb.set(this._wizRGB, pilot?.dimming, this._fade); + wizBulb.set(this._wizRGB, pilot?.state ? pilot.dimming : 0, this._fade); }; private updateHueLight = async ( diff --git a/src/platform.ts b/src/platform.ts index c764ce1..2f9292f 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -91,7 +91,8 @@ export class Platform implements DynamicPlatformPlugin { if ( !bulbs.some( (manualBulb) => manualBulb.getIp() === bulb.getIp() - ) + ) && + bulb.isRGB() ) { filtered.push(bulb); }