Fixing bugs
All checks were successful
continuous-integration/drone/push Build is passing

- Only RGB lights
- Fixing on/off bug
This commit is contained in:
Brandon Watson 2022-09-07 21:41:26 -05:00
parent 51b82fc8d2
commit a9833729f7
2 changed files with 3 additions and 2 deletions

View File

@ -314,7 +314,7 @@ export class FluxAccessory {
private updateWizLight = async (wizBulb: WizBulb): Promise<void> => {
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 (

View File

@ -91,7 +91,8 @@ export class Platform implements DynamicPlatformPlugin {
if (
!bulbs.some(
(manualBulb) => manualBulb.getIp() === bulb.getIp()
)
) &&
bulb.isRGB()
) {
filtered.push(bulb);
}