node-switchbot 2.0.2-beta.8 → 2.0.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +30 -21
  2. package/README.md +7 -8
  3. package/dist/advertising.d.ts +0 -155
  4. package/dist/advertising.d.ts.map +1 -1
  5. package/dist/advertising.js +26 -466
  6. package/dist/advertising.js.map +1 -1
  7. package/dist/device/woblindtilt.d.ts +10 -1
  8. package/dist/device/woblindtilt.d.ts.map +1 -1
  9. package/dist/device/woblindtilt.js +26 -1
  10. package/dist/device/woblindtilt.js.map +1 -1
  11. package/dist/device/wobulb.d.ts +17 -1
  12. package/dist/device/wobulb.d.ts.map +1 -1
  13. package/dist/device/wobulb.js +48 -1
  14. package/dist/device/wobulb.js.map +1 -1
  15. package/dist/device/wocontact.d.ts +13 -1
  16. package/dist/device/wocontact.d.ts.map +1 -1
  17. package/dist/device/wocontact.js +38 -1
  18. package/dist/device/wocontact.js.map +1 -1
  19. package/dist/device/wocurtain.d.ts +11 -1
  20. package/dist/device/wocurtain.d.ts.map +1 -1
  21. package/dist/device/wocurtain.js +31 -1
  22. package/dist/device/wocurtain.js.map +1 -1
  23. package/dist/device/wohand.d.ts +8 -1
  24. package/dist/device/wohand.d.ts.map +1 -1
  25. package/dist/device/wohand.js +22 -1
  26. package/dist/device/wohand.js.map +1 -1
  27. package/dist/device/wohumi.d.ts +8 -1
  28. package/dist/device/wohumi.d.ts.map +1 -1
  29. package/dist/device/wohumi.js +22 -1
  30. package/dist/device/wohumi.js.map +1 -1
  31. package/dist/device/woiosensorth.d.ts +12 -1
  32. package/dist/device/woiosensorth.d.ts.map +1 -1
  33. package/dist/device/woiosensorth.js +35 -1
  34. package/dist/device/woiosensorth.js.map +1 -1
  35. package/dist/device/woplugmini.d.ts +23 -1
  36. package/dist/device/woplugmini.d.ts.map +1 -1
  37. package/dist/device/woplugmini.js +67 -1
  38. package/dist/device/woplugmini.js.map +1 -1
  39. package/dist/device/wopresence.d.ts +13 -1
  40. package/dist/device/wopresence.d.ts.map +1 -1
  41. package/dist/device/wopresence.js +33 -1
  42. package/dist/device/wopresence.js.map +1 -1
  43. package/dist/device/wosensorth.d.ts +23 -1
  44. package/dist/device/wosensorth.d.ts.map +1 -1
  45. package/dist/device/wosensorth.js +55 -1
  46. package/dist/device/wosensorth.js.map +1 -1
  47. package/dist/device/wosmartlock.d.ts +17 -0
  48. package/dist/device/wosmartlock.d.ts.map +1 -0
  49. package/dist/device/wosmartlock.js +52 -0
  50. package/dist/device/wosmartlock.js.map +1 -0
  51. package/dist/device/wostrip.d.ts +15 -1
  52. package/dist/device/wostrip.d.ts.map +1 -1
  53. package/dist/device/wostrip.js +43 -1
  54. package/dist/device/wostrip.js.map +1 -1
  55. package/dist/device.d.ts +4 -2
  56. package/dist/device.d.ts.map +1 -1
  57. package/dist/device.js +8 -4
  58. package/dist/device.js.map +1 -1
  59. package/dist/switchbot.d.ts +3 -3
  60. package/dist/switchbot.d.ts.map +1 -1
  61. package/dist/switchbot.js +8 -8
  62. package/dist/switchbot.js.map +1 -1
  63. package/package.json +2 -2
  64. package/.github/npm-version-script.cjs +0 -81
package/CHANGELOG.md CHANGED
@@ -2,10 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
4
4
 
5
+ ## [2.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v2.0.2) (2024-02-09)
6
+
7
+ ### What's Changed
8
+ - Fix various 2.0.0 issues [#224](https://github.com/OpenWonderLabs/node-switchbot/pull/224), Thanks [@dnicolson](https://github.com/dnicolson)
9
+ - Code Cleanup [#225](https://github.com/OpenWonderLabs/node-switchbot/pull/225) [#226](https://github.com/OpenWonderLabs/node-switchbot/pull/226), Thanks [@dnicolson](https://github.com/dnicolson)
10
+ - Housekeeping and update dependencies
11
+
12
+ **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.1...v2.0.2
13
+
5
14
  ## [2.0.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v2.0.1) (2024-02-06)
6
15
 
7
16
  ### What's Changed
8
- - Fix async constructor, Thanks [@dnicolson](https://github.com/dnicolson) [#229](https://github.com/OpenWonderLabs/node-switchbot/pull/220)
17
+ - Fix async constructor [#220](https://github.com/OpenWonderLabs/node-switchbot/pull/220), Thanks [@dnicolson](https://github.com/dnicolson)
9
18
  - Housekeeping and update dependencies
10
19
 
11
20
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.0...v2.0.1
@@ -14,8 +23,8 @@ All notable changes to this project will be documented in this file. This projec
14
23
 
15
24
  ### What's Changed
16
25
  - Rewrite into Typescript and Convert CommonJS to ES Module
17
- - Fix Linting, Thanks [@dnicolson](https://github.com/dnicolson) [#216](https://github.com/OpenWonderLabs/node-switchbot/pull/216)
18
- - Code Cleaup, Thanks [@dnicolson](https://github.com/dnicolson) [#217](https://github.com/OpenWonderLabs/node-switchbot/pull/217)
26
+ - Fix Linting [#216](https://github.com/OpenWonderLabs/node-switchbot/pull/216), Thanks [@dnicolson](https://github.com/dnicolson)
27
+ - Code Cleaup [#217](https://github.com/OpenWonderLabs/node-switchbot/pull/217), Thanks [@dnicolson](https://github.com/dnicolson)
19
28
  - Housekeeping and update dependencies
20
29
 
21
30
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.10.0...v2.0.0
@@ -23,8 +32,8 @@ All notable changes to this project will be documented in this file. This projec
23
32
  ## [1.10.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.10.0) (2024-01-05)
24
33
 
25
34
  ### What's Changed
26
- - Fix reversed bot state reporting, Thanks [@grelca](https://github.com/grelca) [#207](https://github.com/OpenWonderLabs/node-switchbot/pull/207)
27
- - Add support for Curtain 3, Thanks [@tsia](https://github.com/tsia) [#209](https://github.com/OpenWonderLabs/node-switchbot/pull/209)
35
+ - Fix reversed bot state reporting [#207](https://github.com/OpenWonderLabs/node-switchbot/pull/207), Thanks [@grelca](https://github.com/grelca)
36
+ - Add support for Curtain 3 [#209](https://github.com/OpenWonderLabs/node-switchbot/pull/209), Thanks [@tsia](https://github.com/tsia)
28
37
  - Housekeeping and update dependencies
29
38
 
30
39
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.9.1...v1.10.0
@@ -39,8 +48,8 @@ All notable changes to this project will be documented in this file. This projec
39
48
  ## [1.9.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.9.0) (2023-09-16)
40
49
 
41
50
  ### What's Changed
42
- - Add support for the Indoor/Outdoor Thermo-Hygrometer (WoIOSensorTH), Thanks [@moritzmhmk](https://github.com/moritzmhmk) [#200](https://github.com/OpenWonderLabs/node-switchbot/pull/200)
43
- - Handle noble not being "poweredOn" on init, Thanks [@moritzmhmk](https://github.com/moritzmhmk) [#199](https://github.com/OpenWonderLabs/node-switchbot/pull/199)
51
+ - Add support for the Indoor/Outdoor Thermo-Hygrometer (WoIOSensorTH) [#200](https://github.com/OpenWonderLabs/node-switchbot/pull/200), Thanks [@moritzmhmk](https://github.com/moritzmhmk)
52
+ - Handle noble not being "poweredOn" on init [#199](https://github.com/OpenWonderLabs/node-switchbot/pull/199), Thanks [@moritzmhmk](https://github.com/moritzmhmk)
44
53
  - Housekeeping and update dependencies
45
54
 
46
55
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.2...v1.9.0
@@ -48,10 +57,10 @@ All notable changes to this project will be documented in this file. This projec
48
57
  ## [1.8.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.8.2) (2023-07-25)
49
58
 
50
59
  ### What's Changed
51
- - Added Lint Script, Thanks [@dnicolson](https://github.com/dnicolson) [#195](https://github.com/OpenWonderLabs/node-switchbot/pull/195)
52
- - Fixed a Linting Issues, Thanks [@dnicolson](https://github.com/dnicolson) [#196](https://github.com/OpenWonderLabs/node-switchbot/pull/196)
53
- - Fixed 'TypeError: Assignment to constant variable', Thanks [@banboobee](https://github.com/banboobee) [#194](https://github.com/OpenWonderLabs/node-switchbot/pull/194)
54
- - Fix issue of re-assigning to constant for Temperature, Thanks [@gravity-addiction](https://github.com/gravity-addiction) [#191](https://github.com/OpenWonderLabs/node-switchbot/pull/191)
60
+ - Added Lint Script [#195](https://github.com/OpenWonderLabs/node-switchbot/pull/195), Thanks [@dnicolson](https://github.com/dnicolson)
61
+ - Fixed a Linting Issues [#196](https://github.com/OpenWonderLabs/node-switchbot/pull/196), Thanks [@dnicolson](https://github.com/dnicolson)
62
+ - Fixed 'TypeError: Assignment to constant variable' [#194](https://github.com/OpenWonderLabs/node-switchbot/pull/194), Thanks [@banboobee](https://github.com/banboobee)
63
+ - Fix issue of re-assigning to constant for Temperature [#191](https://github.com/OpenWonderLabs/node-switchbot/pull/191), Thanks [@gravity-addiction](https://github.com/gravity-addiction)
55
64
  - Housekeeping and update dependencies
56
65
 
57
66
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.1...v1.8.2
@@ -59,8 +68,8 @@ All notable changes to this project will be documented in this file. This projec
59
68
  ## [1.8.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.8.1) (2023-04-08)
60
69
 
61
70
  ### What's Changed
62
- - Use const keyword for immutable variables, Thanks [@dnicolson](https://github.com/dnicolson/). [#184](https://github.com/OpenWonderLabs/node-switchbot/pull/184)
63
- - Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/). [#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181)
71
+ - Use const keyword for immutable variables [#184](https://github.com/OpenWonderLabs/node-switchbot/pull/184), Thanks [@dnicolson](https://github.com/dnicolson/)
72
+ - Use Error object for promise rejection [#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181), Thanks [@dnicolson](https://github.com/dnicolson/)
64
73
  - Housekeeping and update dependencies
65
74
 
66
75
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.0...v1.8.1
@@ -70,7 +79,7 @@ All notable changes to this project will be documented in this file. This projec
70
79
  ### What's Changed
71
80
 
72
81
  - Add Support for BlindTilt (Read Only)
73
- - Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/). [#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181)
82
+ - Use Error object for promise rejection [#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181), Thanks [@dnicolson](https://github.com/dnicolson/)
74
83
  - Housekeeping and update dependencies
75
84
 
76
85
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.3...v1.8.0
@@ -79,7 +88,7 @@ All notable changes to this project will be documented in this file. This projec
79
88
 
80
89
  ### What's Changed
81
90
 
82
- - Improve error handling, Thanks [@dnicolson](https://github.com/dnicolson/). [#175](https://github.com/OpenWonderLabs/node-switchbot/pull/175)
91
+ - Improve error handling [#175](https://github.com/OpenWonderLabs/node-switchbot/pull/175), Thanks [@dnicolson](https://github.com/dnicolson/)
83
92
  - Housekeeping and update dependencies
84
93
 
85
94
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.2...v1.7.3
@@ -275,7 +284,7 @@ All notable changes to this project will be documented in this file. This projec
275
284
 
276
285
  ### What's Changed
277
286
 
278
- - Modify Curtain's action command to support group and running mode. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/7/))
287
+ - Modify Curtain's action command to support group and running mode [#7](https://github.com/OpenWonderLabs/node-switchbot/pull/7), Thanks [@SwitchBot-Wonderlabs](https://github.com/SwitchBot-Wonderlabs)
279
288
 
280
289
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.1.0...v0.2.0
281
290
 
@@ -283,8 +292,8 @@ All notable changes to this project will be documented in this file. This projec
283
292
 
284
293
  ### What's Changed
285
294
 
286
- - Added support for SwitchBot Curtain. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/6/))
287
- - Added support for running on the Raspberry Pi Zero W. (Thanks to [@zizi4n5](https://github.com/OpenWonderLabs/node-switchbot/pull/5))
295
+ - Added support for SwitchBot Curtain [#6](https://github.com/OpenWonderLabs/node-switchbot/pull/6), Thanks [@SwitchBot-Wonderlabs](https://github.com/SwitchBot-Wonderlabs)
296
+ - Added support for running on the Raspberry Pi Zero W [#5](https://github.com/OpenWonderLabs/node-switchbot/pull/5), Thanks [@Szizi4n5](https://github.com/zizi4n5)
288
297
 
289
298
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.5...v0.1.0
290
299
 
@@ -292,7 +301,7 @@ All notable changes to this project will be documented in this file. This projec
292
301
 
293
302
  ### What's Changed
294
303
 
295
- - Improved the stability of discovering the BLE characteristics. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/3))
304
+ - Improved the stability of discovering the BLE characteristics [#3](https://github.com/OpenWonderLabs/node-switchbot/pull/3), Thanks [@dnicolson](https://github.com/dnicolson)
296
305
 
297
306
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.4...v0.0.5
298
307
 
@@ -300,7 +309,7 @@ All notable changes to this project will be documented in this file. This projec
300
309
 
301
310
  ### What's Changed
302
311
 
303
- - Fixed the bug that temperature value lower than 0 degC could not be handled. (Thanks to [@musimasami](https://github.com/OpenWonderLabs/node-switchbot/issues/2))
312
+ - Fixed the bug that temperature value lower than 0 degC could not be handled [#2](https://github.com/OpenWonderLabs/node-switchbot/pull/2), Thanks [@musimasami](https://github.com/musimasami)
304
313
 
305
314
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.3...v0.0.4
306
315
 
@@ -308,7 +317,7 @@ All notable changes to this project will be documented in this file. This projec
308
317
 
309
318
  ### What's Changed
310
319
 
311
- - Now the characteristic UUID `0x2a00` (Device Name) is not mandatory. Some models of Bot don't seem to support the characteristic. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/1))
320
+ - Now the characteristic UUID `0x2a00` (Device Name) is not mandatory. Some models of Bot don't seem to support the characteristic [#3](https://github.com/OpenWonderLabs/node-switchbot/pull/1), Thanks [@dnicolson](https://github.com/dnicolson)
312
321
  - Fixed the bug that the `turnOn()` method returns an error if the "Press mode" is selected on the Bot.
313
322
 
314
323
  **Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.2...v0.0.3
package/README.md CHANGED
@@ -111,7 +111,7 @@ Monitoring the advertising packets, you can find your devices and know the lates
111
111
  ```Typescript
112
112
  // Load the node-switchbot and get a `Switchbot` constructor object
113
113
  import { SwitchBot } from 'node-switchbot';
114
- // Create an `Switchbot` object
114
+ // Create a `Switchbot` object
115
115
  const switchbot = new SwitchBot();
116
116
 
117
117
  (async () => {
@@ -138,7 +138,7 @@ The [`startScan()`](#startscan-method) and [`wait()`](#Switchbot-wait-method) me
138
138
  ```Typescript
139
139
  // Load the node-switchbot and get a `Switchbot` constructor object
140
140
  const Switchbot = require("node-switchbot");
141
- // Create an `Switchbot` object
141
+ // Create a `Switchbot` object
142
142
  const switchbot = new Switchbot();
143
143
 
144
144
  // Start to monitor advertisement packets
@@ -214,7 +214,7 @@ This sample discovers a Bot (WoHand), then put the Bot's arm down, finally put i
214
214
  ```Typescript
215
215
  // Load the node-switchbot and get a `Switchbot` constructor object
216
216
  import { SwitchBot } from 'node-switchbot';
217
- // Create an `Switchbot` object
217
+ // Create a `Switchbot` object
218
218
  const switchbot = new SwitchBot();
219
219
 
220
220
  (async () => {
@@ -249,7 +249,7 @@ In order to use the node-switchbot, you have to load the node-switchbot module a
249
249
  import { SwitchBot } from 'node-switchbot';
250
250
  ```
251
251
 
252
- You can get an `SwitchBot` constructor from the code above. Then you have to create an `SwitchBot` object from the `SwitchBot` constructor as follows:
252
+ You can get an `SwitchBot` constructor from the code above. Then you have to create a `SwitchBot` object from the `SwitchBot` constructor as follows:
253
253
 
254
254
  ```typescript
255
255
  const switchbot = new SwitchBot();
@@ -303,9 +303,8 @@ If you want a quick response, you can set the `quick` property to `true`.
303
303
 
304
304
  ```Typescript
305
305
  switchbot.discover({
306
- duration: 5000,
307
- quick: true
308
- });
306
+ duration: 5000,
307
+ quick: true
309
308
  }).then((device_list) => {
310
309
  // Do something...
311
310
  }).catch((error) => {
@@ -749,7 +748,7 @@ Actually, the `WoCurtain` is an object inherited from the [`SwitchbotDevice`](#S
749
748
 
750
749
  ### `open()` method
751
750
 
752
- The `open()` method sends a open command to the Curtain. This method returns a `Promise` object. Nothing will be passed to the `resove()`.
751
+ The `open()` method sends an open command to the Curtain. This method returns a `Promise` object. Nothing will be passed to the `resove()`.
753
752
 
754
753
  If no connection is established with the device, this method automatically establishes a connection with the device, then finally closes the connection. You don't have to call the [`connect()`](#SwitchbotDevice-connect-method) method in advance.
755
754
 
@@ -13,160 +13,5 @@ export declare class Advertising {
13
13
  rssi: any;
14
14
  serviceData: any;
15
15
  } | null;
16
- static parseServiceDataForWoHand(buf: any, onlog: any): {
17
- model: string;
18
- modelName: string;
19
- mode: boolean;
20
- state: boolean;
21
- battery: number;
22
- } | null;
23
- static parseServiceDataForWoSensorTH(buf: any, onlog: any): {
24
- model: string;
25
- modelName: string;
26
- temperature: {
27
- c: number;
28
- f: number;
29
- };
30
- fahrenheit: boolean;
31
- humidity: number;
32
- battery: number;
33
- } | null;
34
- static parseServiceDataForWoHumi(buf: any, onlog: any): {
35
- model: string;
36
- modelName: string;
37
- onState: boolean;
38
- autoMode: boolean;
39
- percentage: number;
40
- } | null;
41
- static parseServiceDataForWoPresence(buf: any, onlog: any): {
42
- model: string;
43
- modelName: string;
44
- tested: boolean;
45
- movement: boolean;
46
- battery: number;
47
- led: number;
48
- iot: number;
49
- sense_distance: number;
50
- lightLevel: string;
51
- is_light: boolean;
52
- } | null;
53
- static parseServiceDataForWoContact(buf: any, onlog: any): {
54
- model: string;
55
- modelName: string;
56
- movement: boolean;
57
- tested: number;
58
- battery: number;
59
- contact_open: boolean;
60
- contact_timeout: boolean;
61
- lightLevel: string;
62
- button_count: number;
63
- doorState: string;
64
- } | null;
65
- static parseServiceDataForWoCurtain(buf: any, onlog: any): {
66
- model: any;
67
- modelName: string;
68
- calibration: boolean;
69
- battery: number;
70
- inMotion: boolean;
71
- position: number;
72
- lightLevel: number;
73
- deviceChain: number;
74
- } | null;
75
- static parseServiceDataForWoBlindTilt(buf: any, onlog: any): {
76
- model: string;
77
- modelName: string;
78
- calibration: boolean;
79
- battery: number;
80
- inMotion: boolean;
81
- tilt: number;
82
- lightLevel: number;
83
- } | null;
84
- static parseServiceDataForWoBulb(manufacturerData: any, onlog: any): {
85
- model: string;
86
- modelName: string;
87
- color_temperature: any;
88
- power: any;
89
- state: boolean;
90
- red: any;
91
- green: any;
92
- blue: any;
93
- brightness: number;
94
- delay: number;
95
- preset: number;
96
- color_mode: number;
97
- speed: number;
98
- loop_index: number;
99
- } | null;
100
- static parseServiceDataForWoPlugMiniUS(manufacturerData: any, onlog: any): {
101
- model: string;
102
- modelName: string;
103
- state: string | null;
104
- delay: boolean;
105
- timer: boolean;
106
- syncUtcTime: boolean;
107
- wifiRssi: any;
108
- overload: boolean;
109
- currentPower: number;
110
- } | null;
111
- static parseServiceDataForWoPlugMiniJP(manufacturerData: any, onlog: any): {
112
- model: string;
113
- modelName: string;
114
- state: string | null;
115
- delay: boolean;
116
- timer: boolean;
117
- syncUtcTime: boolean;
118
- wifiRssi: any;
119
- overload: boolean;
120
- currentPower: number;
121
- } | null;
122
- static parseServiceDataForWoSmartLock(manufacturerData: any, onlog: any): {
123
- model: string;
124
- modelName: string;
125
- battery: number;
126
- calibration: boolean;
127
- status: any;
128
- update_from_secondary_lock: boolean;
129
- door_open: boolean;
130
- double_lock_mode: boolean;
131
- unclosed_alarm: boolean;
132
- unlocked_alarm: boolean;
133
- auto_lock_paused: boolean;
134
- } | null;
135
- static parseServiceDataForWoSensorTHPlus(buf: any, onlog: any): {
136
- model: string;
137
- modelName: string;
138
- temperature: {
139
- c: number;
140
- f: number;
141
- };
142
- fahrenheit: boolean;
143
- humidity: number;
144
- battery: number;
145
- } | null;
146
- static parseServiceDataForWoStrip(buf: any, onlog: any): {
147
- model: string;
148
- modelName: string;
149
- state: boolean;
150
- brightness: number;
151
- red: any;
152
- green: any;
153
- blue: any;
154
- delay: number;
155
- preset: number;
156
- color_mode: number;
157
- speed: number;
158
- loop_index: number;
159
- } | null;
160
- static parseServiceDataForWoIOSensorTH(serviceDataBuf: any, manufacturerDataBuf: any, onlog: any): {
161
- model: string;
162
- modelName: string;
163
- temperature: {
164
- c: number;
165
- f: number;
166
- };
167
- fahrenheit: boolean;
168
- humidity: number;
169
- battery: number;
170
- } | null;
171
16
  }
172
17
  //# sourceMappingURL=advertising.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"advertising.d.ts","sourceRoot":"","sources":["../src/advertising.ts"],"names":[],"mappings":"AAEA,qBAAa,WAAW;;IA6DtB;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,KAAA;;;;;;IAoG/B,MAAM,CAAC,yBAAyB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;IA2B3C,MAAM,CAAC,6BAA6B,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;IAiC/C,MAAM,CAAC,yBAAyB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;IA4B3C,MAAM,CAAC,6BAA6B,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;;IAwC/C,MAAM,CAAC,4BAA4B,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;;IA6C9C,MAAM,CAAC,4BAA4B,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;IAoC9C,MAAM,CAAC,8BAA8B,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;IA+BhD,MAAM,CAAC,yBAAyB,CAAC,gBAAgB,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;;;;;;IAqDxD,MAAM,CAAC,+BAA+B,CAAC,gBAAgB,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;IAuC9D,MAAM,CAAC,+BAA+B,CAAC,gBAAgB,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;IAuC9D,MAAM,CAAC,8BAA8B,CAAC,gBAAgB,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;;;IAmD7D,MAAM,CAAC,iCAAiC,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;IAiCnD,MAAM,CAAC,0BAA0B,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;;;;IAiD5C,MAAM,CAAC,+BAA+B,CAAC,cAAc,KAAA,EAAE,mBAAmB,KAAA,EAAE,KAAK,KAAA;;;;;;;;;;;CA0ClF"}
1
+ {"version":3,"file":"advertising.d.ts","sourceRoot":"","sources":["../src/advertising.ts"],"names":[],"mappings":"AAeA,qBAAa,WAAW;;IA6DtB;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,KAAA;;;;;;CAmGhC"}