node-switchbot 1.6.0-beta.11 → 1.6.0-beta.12
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.
|
@@ -386,6 +386,7 @@ class SwitchbotAdvertising {
|
|
|
386
386
|
let byte9 = buf.readUInt8(9);
|
|
387
387
|
let byte10 = buf.readUInt8(10);//bulb mode
|
|
388
388
|
|
|
389
|
+
let power = byte1;
|
|
389
390
|
let red = byte3;
|
|
390
391
|
let green = byte4;
|
|
391
392
|
let blue = byte5;
|
|
@@ -402,6 +403,7 @@ class SwitchbotAdvertising {
|
|
|
402
403
|
model: "u",
|
|
403
404
|
modelName: "WoBulb",
|
|
404
405
|
color_temperature: color_temperature,
|
|
406
|
+
power: power,
|
|
405
407
|
state: state,
|
|
406
408
|
red: red,
|
|
407
409
|
green: green,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-switchbot",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.12",
|
|
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": [
|