Only control wiz lights if they are already on
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Brandon Watson 2022-10-30 10:47:08 -05:00
parent e61ec0cc3c
commit e1ac0a3a5b

View File

@ -331,8 +331,9 @@ export class FluxAccessory {
} catch (err: any) {
this._platform.log.error(err.message);
}
if (pilot) {
if (pilot && pilot.state) {
this._platform.log.info(`Adjusting wiz bulb: ${wizBulb.getMac()}`);
await wizBulb.set(
this._wizRGB,
on ? 100 : pilot.dimming,