diff --git a/src/Accessories/DeviceButton.ts b/src/Accessories/DeviceButton.ts index ce5f5e0..ba7e284 100644 --- a/src/Accessories/DeviceButton.ts +++ b/src/Accessories/DeviceButton.ts @@ -109,7 +109,7 @@ export class DeviceButton implements IAccessory { //change state if stateful if (this._buttonInfo.IsStateful) { - this._buttonState != this._buttonState + this._buttonState = !this._buttonState } else { this._switchService.getCharacteristic(Characteristic.On).updateValue(false); return callback(new Error("Normal Response"));