node-switchbot 1.9.0-beta.1 → 1.9.0-beta.2
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.
package/lib/switchbot.js
CHANGED
|
@@ -9,6 +9,7 @@ const SwitchbotDeviceWoBlindTilt = require("./switchbot-device-woblindtilt.js");
|
|
|
9
9
|
const SwitchbotDeviceWoPresence = require("./switchbot-device-wopresence.js");
|
|
10
10
|
const SwitchbotDeviceWoContact = require("./switchbot-device-wocontact.js");
|
|
11
11
|
const SwitchbotDeviceWoSensorTH = require("./switchbot-device-wosensorth.js");
|
|
12
|
+
const SwitchbotDeviceWoIOSensorTH = require("./switchbot-device-woiosensorth.js");
|
|
12
13
|
const SwitchbotDeviceWoHumi = require("./switchbot-device-wohumi.js");
|
|
13
14
|
const SwitchbotDeviceWoPlugMini = require("./switchbot-device-woplugmini.js");
|
|
14
15
|
const SwitchbotDeviceWoBulb = require("./switchbot-device-wobulb.js");
|
|
@@ -107,6 +108,7 @@ class Switchbot {
|
|
|
107
108
|
"i",
|
|
108
109
|
"r",
|
|
109
110
|
"x",
|
|
111
|
+
"w",
|
|
110
112
|
],
|
|
111
113
|
},
|
|
112
114
|
id: { required: false, type: "string", min: 12, max: 17 },
|
|
@@ -268,6 +270,9 @@ class Switchbot {
|
|
|
268
270
|
case "i":
|
|
269
271
|
device = new SwitchbotDeviceWoSensorTH(peripheral, this.noble);
|
|
270
272
|
break;
|
|
273
|
+
case "w":
|
|
274
|
+
device = new SwitchbotDeviceWoIOSensorTH(peripheral, this.noble);
|
|
275
|
+
break;
|
|
271
276
|
case "r":
|
|
272
277
|
device = new SwitchbotDeviceWoStrip(peripheral, this.noble);
|
|
273
278
|
break;
|
|
@@ -377,6 +382,7 @@ class Switchbot {
|
|
|
377
382
|
"i",
|
|
378
383
|
"r",
|
|
379
384
|
"x",
|
|
385
|
+
"w",
|
|
380
386
|
],
|
|
381
387
|
},
|
|
382
388
|
id: { required: false, type: "string", min: 12, max: 17 },
|
package/package.json
CHANGED