- Only RGB lights - Fixing on/off bug
This commit is contained in:
parent
51b82fc8d2
commit
a9833729f7
@ -314,7 +314,7 @@ export class FluxAccessory {
|
|||||||
private updateWizLight = async (wizBulb: WizBulb): Promise<void> => {
|
private updateWizLight = async (wizBulb: WizBulb): Promise<void> => {
|
||||||
const pilot = await wizBulb.get();
|
const pilot = await wizBulb.get();
|
||||||
this._platform.log.info(`Adjusting wiz bulb: ${wizBulb.getMac()}`);
|
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 (
|
private updateHueLight = async (
|
||||||
|
@ -91,7 +91,8 @@ export class Platform implements DynamicPlatformPlugin {
|
|||||||
if (
|
if (
|
||||||
!bulbs.some(
|
!bulbs.some(
|
||||||
(manualBulb) => manualBulb.getIp() === bulb.getIp()
|
(manualBulb) => manualBulb.getIp() === bulb.getIp()
|
||||||
)
|
) &&
|
||||||
|
bulb.isRGB()
|
||||||
) {
|
) {
|
||||||
filtered.push(bulb);
|
filtered.push(bulb);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user