node-switchbot 1.4.2-beta.2 → 1.4.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,14 +9,14 @@ class SwitchbotDeviceWoPlugMini extends SwitchbotDevice {
9
9
  * @returns {Promise<boolean>} resolves with a boolean that tells whether the plug in ON(true) or OFF(false)
10
10
  */
11
11
  readState() {
12
- return this._operateBot([0x57, 0x0f, 0x51, 0x01]);
12
+ return this._operateBot([0x57, 0x0f, 0x48, 0x01]);
13
13
  }
14
14
 
15
15
  /**
16
16
  * @private
17
17
  */
18
18
  _setState(reqByteArray) {
19
- const base = [0x57, 0x0f, 0x50, 0x01];
19
+ const base = [0x57, 0x0f, 0x47, 0x01];
20
20
  return this._operateBot([].concat(base, reqByteArray));
21
21
  }
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-switchbot",
3
- "version": "1.4.2-beta.2",
4
- "description": "The node-switchbot is a Node.js module which allows you to move your Switchbot (Bot)'s arm and Switchbot Curtain(Curtain), also monitor the temperature/humidity from SwitchBot Thermometer & Hygrometer (Meter).",
3
+ "version": "1.4.2-beta.4",
4
+ "description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
5
5
  "main": "./lib/switchbot.js",
6
6
  "files": [
7
7
  "lib"
@@ -25,7 +25,7 @@
25
25
  "Bluetooth smart",
26
26
  "Bluetooth"
27
27
  ],
28
- "homepage": "https://github.com/OpenWonderLabs",
28
+ "homepage": "https://github.com/OpenWonderLabs/node-switchbot",
29
29
  "author": "OpenWonderLabs (https://github.com/OpenWonderLabs)",
30
30
  "license": "MIT",
31
31
  "repository": {