diff --git a/src/chase.ts b/src/chase.ts index 833c5cd..1d81adc 100644 --- a/src/chase.ts +++ b/src/chase.ts @@ -62,7 +62,6 @@ export class Chase implements IAccessory { 'lightbulbService' ) - this.getLights(); this._lightbulbService.getCharacteristic(Characteristic.On) //@ts-ignore .on("set", this.onPowerSet) @@ -95,7 +94,7 @@ export class Chase implements IAccessory { */ private onPowerSet = async (activeState: boolean, callback: (error?: Error | null | undefined) => void) => { if (this._isActive != activeState) { - activeState ? this.chase() : this.stopAndSetOff(); + activeState ? this.chase() : this.stop(); } return callback(); }