diff --git a/package.json b/package.json index 5a799d6..0650235 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "displayName": "Levoit Air Purifier", "main": "dist/index.js", "license": "Apache-2.0", - "version": "3.0.0", + "version": "3.0.1", "private": false, "bugs": { "url": "https://github.com/RaresAil/homebridge-levoit-air-purifier/issues" diff --git a/src/api/VeSyncFan.ts b/src/api/VeSyncFan.ts index 462144a..29a5398 100644 --- a/src/api/VeSyncFan.ts +++ b/src/api/VeSyncFan.ts @@ -109,7 +109,7 @@ export default class VeSyncFan implements VeSyncGeneric { powerSwitch: power ? 1 : 0, switchIdx: 0 } : { - switch: power, + enabled: power, id: 0 }; const success = await this.client.sendCommand(this, BypassMethod.SWITCH, data);