Only control wiz lights if they are already on
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
e61ec0cc3c
commit
e1ac0a3a5b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user