@switchbot/homebridge-switchbot 4.3.2-beta.2 → 4.3.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.
Files changed (111) hide show
  1. package/dist/device/airpurifier.d.ts +54 -0
  2. package/dist/device/airpurifier.d.ts.map +1 -0
  3. package/dist/device/airpurifier.js +527 -0
  4. package/dist/device/airpurifier.js.map +1 -0
  5. package/dist/device/blindtilt.d.ts.map +1 -1
  6. package/dist/device/blindtilt.js +2 -8
  7. package/dist/device/blindtilt.js.map +1 -1
  8. package/dist/device/bot.d.ts.map +1 -1
  9. package/dist/device/bot.js +2 -8
  10. package/dist/device/bot.js.map +1 -1
  11. package/dist/device/ceilinglight.d.ts.map +1 -1
  12. package/dist/device/ceilinglight.js +2 -8
  13. package/dist/device/ceilinglight.js.map +1 -1
  14. package/dist/device/colorbulb.d.ts.map +1 -1
  15. package/dist/device/colorbulb.js +2 -8
  16. package/dist/device/colorbulb.js.map +1 -1
  17. package/dist/device/contact.d.ts.map +1 -1
  18. package/dist/device/contact.js +1 -4
  19. package/dist/device/contact.js.map +1 -1
  20. package/dist/device/curtain.d.ts.map +1 -1
  21. package/dist/device/curtain.js +2 -8
  22. package/dist/device/curtain.js.map +1 -1
  23. package/dist/device/fan.d.ts.map +1 -1
  24. package/dist/device/fan.js +2 -8
  25. package/dist/device/fan.js.map +1 -1
  26. package/dist/device/hub.d.ts.map +1 -1
  27. package/dist/device/hub.js +1 -4
  28. package/dist/device/hub.js.map +1 -1
  29. package/dist/device/humidifier.d.ts.map +1 -1
  30. package/dist/device/humidifier.js +2 -8
  31. package/dist/device/humidifier.js.map +1 -1
  32. package/dist/device/iosensor.d.ts.map +1 -1
  33. package/dist/device/iosensor.js +1 -4
  34. package/dist/device/iosensor.js.map +1 -1
  35. package/dist/device/lightstrip.d.ts.map +1 -1
  36. package/dist/device/lightstrip.js +2 -8
  37. package/dist/device/lightstrip.js.map +1 -1
  38. package/dist/device/lock.d.ts.map +1 -1
  39. package/dist/device/lock.js +2 -8
  40. package/dist/device/lock.js.map +1 -1
  41. package/dist/device/meter.d.ts.map +1 -1
  42. package/dist/device/meter.js +1 -4
  43. package/dist/device/meter.js.map +1 -1
  44. package/dist/device/meterplus.d.ts.map +1 -1
  45. package/dist/device/meterplus.js +1 -4
  46. package/dist/device/meterplus.js.map +1 -1
  47. package/dist/device/meterpro.d.ts.map +1 -1
  48. package/dist/device/meterpro.js +3 -5
  49. package/dist/device/meterpro.js.map +1 -1
  50. package/dist/device/motion.d.ts.map +1 -1
  51. package/dist/device/motion.js +1 -4
  52. package/dist/device/motion.js.map +1 -1
  53. package/dist/device/plug.d.ts.map +1 -1
  54. package/dist/device/plug.js +2 -8
  55. package/dist/device/plug.js.map +1 -1
  56. package/dist/device/relayswitch.d.ts.map +1 -1
  57. package/dist/device/relayswitch.js +2 -8
  58. package/dist/device/relayswitch.js.map +1 -1
  59. package/dist/device/robotvacuumcleaner.d.ts.map +1 -1
  60. package/dist/device/robotvacuumcleaner.js +2 -8
  61. package/dist/device/robotvacuumcleaner.js.map +1 -1
  62. package/dist/device/waterdetector.d.ts.map +1 -1
  63. package/dist/device/waterdetector.js +1 -4
  64. package/dist/device/waterdetector.js.map +1 -1
  65. package/dist/irdevice/airpurifier.d.ts +1 -1
  66. package/dist/irdevice/airpurifier.d.ts.map +1 -1
  67. package/dist/irdevice/airpurifier.js +4 -4
  68. package/dist/irdevice/airpurifier.js.map +1 -1
  69. package/dist/platform.d.ts +2 -1
  70. package/dist/platform.d.ts.map +1 -1
  71. package/dist/platform.js +68 -7
  72. package/dist/platform.js.map +1 -1
  73. package/docs/assets/main.js +5 -5
  74. package/docs/assets/navigation.js +1 -0
  75. package/docs/assets/search.js +1 -0
  76. package/docs/assets/style.css +251 -229
  77. package/docs/hierarchy.html +1 -0
  78. package/docs/index.html +18 -19
  79. package/docs/modules.html +1 -2
  80. package/docs/variables/default.html +1 -0
  81. package/package.json +8 -10
  82. package/src/device/airpurifier.ts +563 -0
  83. package/src/device/blindtilt.ts +2 -6
  84. package/src/device/bot.ts +2 -6
  85. package/src/device/ceilinglight.ts +2 -6
  86. package/src/device/colorbulb.ts +2 -6
  87. package/src/device/contact.ts +1 -3
  88. package/src/device/curtain.ts +2 -6
  89. package/src/device/fan.ts +2 -6
  90. package/src/device/hub.ts +1 -3
  91. package/src/device/humidifier.ts +2 -6
  92. package/src/device/iosensor.ts +1 -3
  93. package/src/device/lightstrip.ts +2 -6
  94. package/src/device/lock.ts +2 -6
  95. package/src/device/meter.ts +2 -4
  96. package/src/device/meterplus.ts +1 -3
  97. package/src/device/meterpro.ts +3 -4
  98. package/src/device/motion.ts +1 -3
  99. package/src/device/plug.ts +2 -6
  100. package/src/device/relayswitch.ts +2 -6
  101. package/src/device/robotvacuumcleaner.ts +2 -6
  102. package/src/device/waterdetector.ts +1 -3
  103. package/src/irdevice/airpurifier.ts +4 -4
  104. package/src/platform.ts +78 -8
  105. package/typedoc.json +0 -4
  106. package/docs/assets/dmt/dmt-component-data.js +0 -1
  107. package/docs/assets/dmt/dmt-components.css +0 -20
  108. package/docs/assets/dmt/dmt-components.js +0 -67
  109. package/docs/assets/dmt/dmt-search.cmp +0 -0
  110. package/docs/assets/dmt/dmt-theme.css +0 -1
  111. package/docs/functions/default.html +0 -2
@@ -0,0 +1,54 @@
1
+ import type { CharacteristicValue, PlatformAccessory } from 'homebridge';
2
+ import type { airPurifierServiceData, airPurifierStatus, airPurifierTableServiceData, airPurifierTableStatus, airPurifierTableWebhookContext, airPurifierWebhookContext, device, SwitchBotBLE } from 'node-switchbot';
3
+ import type { SwitchBotPlatform } from '../platform.js';
4
+ import type { devicesConfig } from '../settings.js';
5
+ import { Subject } from 'rxjs';
6
+ import { deviceBase } from './device.js';
7
+ export declare class AirPurifier extends deviceBase {
8
+ readonly platform: SwitchBotPlatform;
9
+ private AirPurifier;
10
+ deviceStatus: airPurifierStatus | airPurifierTableStatus;
11
+ webhookContext: airPurifierWebhookContext | airPurifierTableWebhookContext;
12
+ serviceData: airPurifierServiceData | airPurifierTableServiceData;
13
+ airPurifierUpdateInProgress: boolean;
14
+ doAirPurifierUpdate: Subject<void>;
15
+ constructor(platform: SwitchBotPlatform, accessory: PlatformAccessory, device: device & devicesConfig);
16
+ BLEparseStatus(): Promise<void>;
17
+ openAPIparseStatus(): Promise<void>;
18
+ parseStatusWebhook(): Promise<void>;
19
+ /**
20
+ * Asks the SwitchBot API for the latest device information
21
+ */
22
+ refreshStatus(): Promise<void>;
23
+ BLERefreshStatus(): Promise<void>;
24
+ registerPlatformBLE(): Promise<void>;
25
+ openAPIRefreshStatus(): Promise<void>;
26
+ registerWebhook(): Promise<void>;
27
+ /**
28
+ * Pushes the requested changes to the SwitchBot API
29
+ * commandType command parameter Description
30
+ * "command" "turnOff" "default" = set to OFF state
31
+ * "command" "turnOn" "default" = set to ON state
32
+ * "command" "setNightLightMode" "off, 1, or 2" = off, turn off nightlight, (1, bright) (2, dim)
33
+ * "command" "setWindMode" "direct, natural, sleep, or baby" = Set fan mode
34
+ * "command" "setWindSpeed" "{1-100} e.g. 10" = Set fan speed 1~100
35
+ */
36
+ pushChanges(): Promise<void>;
37
+ BLEpushChanges(): Promise<void>;
38
+ openAPIpushChanges(): Promise<void>;
39
+ pushRotationSpeedChanges(): Promise<void>;
40
+ /**
41
+ * Handle requests to set the value of the "On" characteristic
42
+ */
43
+ ActiveSet(value: CharacteristicValue): Promise<void>;
44
+ /**
45
+ * Handle requests to set the value of the "On" characteristic
46
+ */
47
+ RotationSpeedSet(value: CharacteristicValue): Promise<void>;
48
+ updateHomeKitCharacteristics(): Promise<void>;
49
+ BLEPushConnection(): Promise<void>;
50
+ BLERefreshConnection(switchbot: SwitchBotBLE): Promise<void>;
51
+ offlineOff(): Promise<void>;
52
+ apiError(e: any): Promise<void>;
53
+ }
54
+ //# sourceMappingURL=airpurifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airpurifier.d.ts","sourceRoot":"","sources":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;;;;;;;;OAQG;IAEG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B5B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IA6C/B,kBAAkB;IA4BlB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IA2B/C;;OAEG;IACG,SAAS,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAW1D;;OAEG;IACG,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAW3D,4BAA4B,IAAI,OAAO,CAAC,IAAI,CAAC;IAa7C,iBAAiB;IAOjB,oBAAoB,CAAC,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ5D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAU3B,QAAQ,CAAC,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAOtC"}
@@ -0,0 +1,527 @@
1
+ /*
2
+ * For Testing Locally:
3
+ * import { SwitchBotBLEModel, SwitchBotBLEModelName } from '/Users/Shared/GitHub/OpenWonderLabs/node-switchbot/dist/index.js';
4
+ */
5
+ import { SwitchBotBLEModel, SwitchBotBLEModelName } from 'node-switchbot';
6
+ import { debounceTime, interval, skipWhile, Subject, take, tap } from 'rxjs';
7
+ import { formatDeviceIdAsMac } from '../utils.js';
8
+ import { deviceBase } from './device.js';
9
+ export class AirPurifier extends deviceBase {
10
+ platform;
11
+ // Services
12
+ AirPurifier;
13
+ // OpenAPI
14
+ deviceStatus;
15
+ // Webhook
16
+ webhookContext;
17
+ // BLE
18
+ serviceData;
19
+ // Updates
20
+ airPurifierUpdateInProgress;
21
+ doAirPurifierUpdate;
22
+ constructor(platform, accessory, device) {
23
+ super(platform, accessory, device);
24
+ this.platform = platform;
25
+ // Set category
26
+ accessory.category = 19 /* this.hap.Categories.AIR_PURIFIER */;
27
+ // this is subject we use to track when we need to POST changes to the SwitchBot API
28
+ this.doAirPurifierUpdate = new Subject();
29
+ this.airPurifierUpdateInProgress = false;
30
+ // Initialize AirPurifier Service
31
+ accessory.context.AirPurifier = accessory.context.AirPurifier ?? {};
32
+ this.AirPurifier = {
33
+ Name: accessory.displayName,
34
+ Service: accessory.getService(this.hap.Service.AirPurifier) ?? accessory.addService(this.hap.Service.AirPurifier),
35
+ Active: accessory.context.Active ?? this.hap.Characteristic.Active.INACTIVE,
36
+ RotationSpeed: accessory.context.RotationSpeed ?? 0,
37
+ CurrentAirPurifierState: accessory.context.CurrentAirPurifierState ?? this.hap.Characteristic.CurrentAirPurifierState.INACTIVE,
38
+ TargetAirPurifierState: accessory.context.TargetAirPurifierState ?? this.hap.Characteristic.TargetAirPurifierState.AUTO,
39
+ CurrentHeaterCoolerState: accessory.context.CurrentHeaterCoolerState ?? this.hap.Characteristic.CurrentHeaterCoolerState.INACTIVE,
40
+ };
41
+ accessory.context.AirPurifier = this.AirPurifier;
42
+ // Initialize AirPurifier Service
43
+ this.AirPurifier.Service.setCharacteristic(this.hap.Characteristic.Name, this.AirPurifier.Name).getCharacteristic(this.hap.Characteristic.Active).onGet(() => {
44
+ return this.AirPurifier.Active;
45
+ }).onSet(this.ActiveSet.bind(this));
46
+ // Initialize Fan RotationSpeed Characteristic
47
+ this.AirPurifier.Service.getCharacteristic(this.hap.Characteristic.RotationSpeed).onGet(() => {
48
+ return this.AirPurifier.RotationSpeed;
49
+ }).onSet(this.RotationSpeedSet.bind(this));
50
+ // Retrieve initial values and updateHomekit
51
+ try {
52
+ this.debugLog('Retrieve initial values and update Homekit');
53
+ this.refreshStatus();
54
+ }
55
+ catch (e) {
56
+ this.errorLog(`failed to retrieve initial values and update Homekit, Error: ${e.message ?? e}`);
57
+ }
58
+ // regisiter webhook event handler if enabled
59
+ try {
60
+ this.debugLog('Registering Webhook Event Handler');
61
+ this.registerWebhook();
62
+ }
63
+ catch (e) {
64
+ this.errorLog(`failed to registerWebhook, Error: ${e.message ?? e}`);
65
+ }
66
+ // regisiter platform BLE event handler if enabled
67
+ try {
68
+ this.debugLog('Registering Platform BLE Event Handler');
69
+ this.registerPlatformBLE();
70
+ }
71
+ catch (e) {
72
+ this.errorLog(`failed to registerPlatformBLE, Error: ${e.message ?? e}`);
73
+ }
74
+ // Start an update interval
75
+ interval(this.deviceRefreshRate * 1000)
76
+ .pipe(skipWhile(() => this.airPurifierUpdateInProgress))
77
+ .subscribe(async () => {
78
+ await this.refreshStatus();
79
+ });
80
+ // Watch for Plug change events
81
+ // We put in a debounce of 100ms so we don't make duplicate calls
82
+ this.doAirPurifierUpdate
83
+ .pipe(tap(() => {
84
+ this.airPurifierUpdateInProgress = true;
85
+ }), debounceTime(this.devicePushRate * 1000))
86
+ .subscribe(async () => {
87
+ try {
88
+ await this.pushChanges();
89
+ }
90
+ catch (e) {
91
+ await this.apiError(e);
92
+ this.errorLog(`failed pushChanges with ${device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
93
+ }
94
+ this.airPurifierUpdateInProgress = false;
95
+ });
96
+ }
97
+ async BLEparseStatus() {
98
+ this.debugLog('BLEparseStatus');
99
+ this.debugLog(`(powerState, fanSpeed) = BLE:(${this.serviceData.isOn}, ${this.serviceData.speed}), current:(${this.AirPurifier.Active}, ${this.AirPurifier.RotationSpeed})`);
100
+ // Active
101
+ this.AirPurifier.Active = this.serviceData.isOn ? this.hap.Characteristic.Active.ACTIVE : this.hap.Characteristic.Active.INACTIVE;
102
+ this.debugLog(`Active: ${this.AirPurifier.Active}`);
103
+ // RotationSpeed
104
+ this.AirPurifier.RotationSpeed = this.serviceData.speed;
105
+ this.debugLog(`RotationSpeed: ${this.AirPurifier.RotationSpeed}`);
106
+ }
107
+ async openAPIparseStatus() {
108
+ this.debugLog('openAPIparseStatus');
109
+ this.debugLog(`(version, power, mode, childLock) = OpenAPI:(${this.deviceStatus.version}, ${this.deviceStatus.power}, ${this.deviceStatus.mode}, ${this.deviceStatus.childLock}), current:(${this.accessory.context.version}, ${this.AirPurifier.Active}, ${this.AirPurifier.TargetAirPurifierState})`);
110
+ // Active - handle both "ON"/"on" and "OFF"/"off"
111
+ this.AirPurifier.Active = (this.deviceStatus.power === 'ON' || this.deviceStatus.power === 'on')
112
+ ? this.hap.Characteristic.Active.ACTIVE
113
+ : this.hap.Characteristic.Active.INACTIVE;
114
+ this.debugLog(`Active: ${this.AirPurifier.Active}`);
115
+ // Map mode to TargetAirPurifierState
116
+ if (this.deviceStatus.mode !== undefined) {
117
+ switch (this.deviceStatus.mode) {
118
+ case 1: // normal/fan mode
119
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.MANUAL;
120
+ break;
121
+ case 2: // auto mode
122
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.AUTO;
123
+ break;
124
+ case 3: // sleep mode
125
+ case 4: // pet mode
126
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.MANUAL;
127
+ break;
128
+ default:
129
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.AUTO;
130
+ }
131
+ this.debugLog(`TargetAirPurifierState (mode ${this.deviceStatus.mode}): ${this.AirPurifier.TargetAirPurifierState}`);
132
+ }
133
+ // CurrentAirPurifierState based on power
134
+ this.AirPurifier.CurrentAirPurifierState = this.AirPurifier.Active
135
+ ? this.hap.Characteristic.CurrentAirPurifierState.PURIFYING_AIR
136
+ : this.hap.Characteristic.CurrentAirPurifierState.INACTIVE;
137
+ this.debugLog(`CurrentAirPurifierState: ${this.AirPurifier.CurrentAirPurifierState}`);
138
+ // Firmware Version
139
+ if (this.deviceStatus.version) {
140
+ const version = this.deviceStatus.version;
141
+ this.debugLog(`Firmware Version: ${version.replace(/^V|-.*$/g, '')}`);
142
+ const deviceVersion = version.replace(/^V|-.*$/g, '') ?? '0.0.0';
143
+ this.accessory
144
+ .getService(this.hap.Service.AccessoryInformation)
145
+ .setCharacteristic(this.hap.Characteristic.HardwareRevision, deviceVersion)
146
+ .setCharacteristic(this.hap.Characteristic.FirmwareRevision, deviceVersion)
147
+ .getCharacteristic(this.hap.Characteristic.FirmwareRevision)
148
+ .updateValue(deviceVersion);
149
+ this.accessory.context.version = deviceVersion;
150
+ this.debugSuccessLog(`version: ${this.accessory.context.version}`);
151
+ }
152
+ }
153
+ async parseStatusWebhook() {
154
+ this.debugLog('parseStatusWebhook');
155
+ this.debugLog(`(power, mode, childLock) = Webhook:(${this.webhookContext.power}, ${this.webhookContext.mode}, ${this.webhookContext.childLock}), current:(${this.AirPurifier.Active}, ${this.AirPurifier.TargetAirPurifierState})`);
156
+ // Active - handle webhook power state
157
+ this.AirPurifier.Active = (this.webhookContext.power === 'ON' || this.webhookContext.power === 'on')
158
+ ? this.hap.Characteristic.Active.ACTIVE
159
+ : this.hap.Characteristic.Active.INACTIVE;
160
+ this.debugLog(`Active: ${this.AirPurifier.Active}`);
161
+ // Handle mode from webhook if available
162
+ if (this.webhookContext.mode !== undefined) {
163
+ switch (this.webhookContext.mode) {
164
+ case 1:
165
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.MANUAL;
166
+ break;
167
+ case 2:
168
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.AUTO;
169
+ break;
170
+ case 3:
171
+ case 4:
172
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.MANUAL;
173
+ break;
174
+ default:
175
+ this.AirPurifier.TargetAirPurifierState = this.hap.Characteristic.TargetAirPurifierState.AUTO;
176
+ }
177
+ this.debugLog(`TargetAirPurifierState: ${this.AirPurifier.TargetAirPurifierState}`);
178
+ }
179
+ // FirmwareVersion
180
+ /* if (this.webhookContext.version) {
181
+ const deviceVersion = this.webhookContext.version.replace(/^V|-.*$/g, '') ?? '0.0.0'
182
+ this.accessory
183
+ .getService(this.hap.Service.AccessoryInformation)!
184
+ .setCharacteristic(this.hap.Characteristic.HardwareRevision, deviceVersion)
185
+ .setCharacteristic(this.hap.Characteristic.FirmwareRevision, deviceVersion)
186
+ .getCharacteristic(this.hap.Characteristic.FirmwareRevision)
187
+ .updateValue(deviceVersion)
188
+ this.accessory.context.version = deviceVersion
189
+ this.debugSuccessLog(`version: ${this.accessory.context.version}`)
190
+ } */
191
+ }
192
+ /**
193
+ * Asks the SwitchBot API for the latest device information
194
+ */
195
+ async refreshStatus() {
196
+ if (this.BLE) {
197
+ await this.BLERefreshStatus();
198
+ }
199
+ else if (this.OpenAPI && this.platform.config.credentials?.token) {
200
+ await this.openAPIRefreshStatus();
201
+ }
202
+ else {
203
+ await this.offlineOff();
204
+ this.debugWarnLog(`Connection Type: ${this.device.connectionType}, refreshStatus will not happen.`);
205
+ }
206
+ }
207
+ async BLERefreshStatus() {
208
+ this.debugLog('BLERefreshStatus');
209
+ const switchBotBLE = await this.switchbotBLE();
210
+ if (switchBotBLE === undefined) {
211
+ await this.BLERefreshConnection(switchBotBLE);
212
+ }
213
+ else {
214
+ // Start to monitor advertisement packets
215
+ (async () => {
216
+ // Start to monitor advertisement packets
217
+ const serviceData = await this.monitorAdvertisementPackets(switchBotBLE);
218
+ // Update HomeKit
219
+ if ((serviceData.model === SwitchBotBLEModel.AirPurifier && SwitchBotBLEModelName.AirPurifier) ?? (serviceData.model === SwitchBotBLEModel.AirPurifierTable && SwitchBotBLEModelName.AirPurifierTable)) {
220
+ this.serviceData = serviceData;
221
+ if (serviceData !== undefined || serviceData !== null) {
222
+ await this.BLEparseStatus();
223
+ await this.updateHomeKitCharacteristics();
224
+ }
225
+ else {
226
+ this.errorLog(`serviceData is either undefined or null, serviceData: ${JSON.stringify(serviceData)}`);
227
+ await this.BLERefreshConnection(switchBotBLE);
228
+ }
229
+ }
230
+ else {
231
+ this.errorLog(`failed to get serviceData, serviceData: ${JSON.stringify(serviceData)}`);
232
+ await this.BLERefreshConnection(switchBotBLE);
233
+ }
234
+ })();
235
+ }
236
+ }
237
+ async registerPlatformBLE() {
238
+ this.debugLog('registerPlatformBLE');
239
+ if (this.config.options?.BLE && !this.device.disablePlatformBLE) {
240
+ this.debugLog('is listening to Platform BLE.');
241
+ try {
242
+ const formattedDeviceId = formatDeviceIdAsMac(this.device.deviceId);
243
+ this.device.bleMac = formattedDeviceId;
244
+ this.debugLog(`bleMac: ${this.device.bleMac}`);
245
+ this.platform.bleEventHandler[this.device.bleMac] = async (context) => {
246
+ try {
247
+ this.serviceData = context;
248
+ if (context !== undefined || context !== null) {
249
+ this.debugLog(`received BLE: ${JSON.stringify(context)}`);
250
+ await this.BLEparseStatus();
251
+ await this.updateHomeKitCharacteristics();
252
+ }
253
+ else {
254
+ this.errorLog(`context is either undefined or null, context: ${JSON.stringify(context)}`);
255
+ await this.BLERefreshConnection(context);
256
+ }
257
+ }
258
+ catch (e) {
259
+ this.errorLog(`failed to handle BLE. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`);
260
+ }
261
+ };
262
+ }
263
+ catch (error) {
264
+ this.errorLog(`failed to format device ID as MAC, Error: ${error}`);
265
+ }
266
+ }
267
+ else {
268
+ this.debugLog('is not listening to Platform BLE');
269
+ }
270
+ }
271
+ async openAPIRefreshStatus() {
272
+ this.debugLog('openAPIRefreshStatus');
273
+ try {
274
+ const deviceStatus = await this.deviceRefreshStatus();
275
+ this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
276
+ if (await this.successfulStatusCodes(deviceStatus)) {
277
+ this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
278
+ this.deviceStatus = deviceStatus.body;
279
+ await this.openAPIparseStatus();
280
+ await this.updateHomeKitCharacteristics();
281
+ }
282
+ else {
283
+ this.debugWarnLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
284
+ }
285
+ }
286
+ catch (e) {
287
+ await this.apiError(e);
288
+ this.errorLog(`failed openAPIRefreshStatus with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
289
+ }
290
+ }
291
+ async registerWebhook() {
292
+ if (this.device.webhook) {
293
+ this.debugLog('is listening webhook.');
294
+ this.platform.webhookEventHandler[this.device.deviceId] = async (context) => {
295
+ try {
296
+ this.webhookContext = context;
297
+ if (context !== undefined || context !== null) {
298
+ this.debugLog(`received Webhook: ${JSON.stringify(context)}`);
299
+ await this.parseStatusWebhook();
300
+ await this.updateHomeKitCharacteristics();
301
+ }
302
+ else {
303
+ this.errorLog(`context is either undefined or null, context: ${JSON.stringify(context)}`);
304
+ }
305
+ }
306
+ catch (e) {
307
+ this.errorLog(`failed to handle webhook. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`);
308
+ }
309
+ };
310
+ }
311
+ else {
312
+ this.debugLog('is not listening webhook.');
313
+ }
314
+ }
315
+ /**
316
+ * Pushes the requested changes to the SwitchBot API
317
+ * commandType command parameter Description
318
+ * "command" "turnOff" "default" = set to OFF state
319
+ * "command" "turnOn" "default" = set to ON state
320
+ * "command" "setNightLightMode" "off, 1, or 2" = off, turn off nightlight, (1, bright) (2, dim)
321
+ * "command" "setWindMode" "direct, natural, sleep, or baby" = Set fan mode
322
+ * "command" "setWindSpeed" "{1-100} e.g. 10" = Set fan speed 1~100
323
+ */
324
+ async pushChanges() {
325
+ if (this.BLE) {
326
+ await this.BLEpushChanges();
327
+ }
328
+ else if (this.OpenAPI && this.platform.config.credentials?.token) {
329
+ await this.openAPIpushChanges();
330
+ if (this.AirPurifier.Active) {
331
+ this.debugLog(`Active: ${this.AirPurifier.Active}`);
332
+ // Push RotationSpeed Update
333
+ this.debugLog(`RotationSpeed: ${this.AirPurifier.RotationSpeed}`);
334
+ await this.pushRotationSpeedChanges();
335
+ }
336
+ else {
337
+ this.debugLog('BLE (RotationSpeed) & (SwingMode) changes will not happen, as the device is Off.');
338
+ }
339
+ }
340
+ else {
341
+ await this.offlineOff();
342
+ this.debugWarnLog(`Connection Type: ${this.device.connectionType}, pushChanges will not happen.`);
343
+ }
344
+ // Refresh the status from the API
345
+ interval(15000)
346
+ .pipe(skipWhile(() => this.airPurifierUpdateInProgress))
347
+ .pipe(take(1))
348
+ .subscribe(async () => {
349
+ await this.refreshStatus();
350
+ });
351
+ }
352
+ async BLEpushChanges() {
353
+ this.debugLog('BLEpushChanges');
354
+ if (this.AirPurifier.Active !== this.accessory.context.Active) {
355
+ this.debugLog(`BLEpushChanges On: ${this.AirPurifier.Active} OnCached: ${this.accessory.context.Active}`);
356
+ const switchBotBLE = await this.platform.connectBLE(this.accessory, this.device);
357
+ try {
358
+ const formattedDeviceId = formatDeviceIdAsMac(this.device.deviceId);
359
+ this.device.bleMac = formattedDeviceId;
360
+ this.debugLog(`bleMac: ${this.device.bleMac}`);
361
+ if (switchBotBLE !== false) {
362
+ switchBotBLE
363
+ .discover({ model: this.device.bleModel, id: this.device.bleMac })
364
+ .then(async (device_list) => {
365
+ return await this.retryBLE({
366
+ max: this.maxRetryBLE(),
367
+ fn: async () => {
368
+ if (this.AirPurifier.Active) {
369
+ return await device_list[0].turnOn();
370
+ }
371
+ else {
372
+ return await device_list[0].turnOff();
373
+ }
374
+ },
375
+ });
376
+ })
377
+ .then(async () => {
378
+ this.successLog(`Active: ${this.AirPurifier.Active} sent over SwitchBot BLE, sent successfully`);
379
+ await this.updateHomeKitCharacteristics();
380
+ })
381
+ .catch(async (e) => {
382
+ await this.apiError(e);
383
+ this.errorLog(`failed BLEpushChanges with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
384
+ await this.BLEPushConnection();
385
+ });
386
+ }
387
+ else {
388
+ this.errorLog(`wasn't able to establish BLE Connection, node-switchbot: ${JSON.stringify(switchBotBLE)}`);
389
+ await this.BLEPushConnection();
390
+ }
391
+ }
392
+ catch (error) {
393
+ this.errorLog(`failed to format device ID as MAC, Error: ${error}`);
394
+ }
395
+ }
396
+ else {
397
+ this.debugLog(`No change (BLEpushChanges), Active: ${this.AirPurifier.Active}, ActiveCached: ${this.accessory.context.Active}`);
398
+ }
399
+ }
400
+ async openAPIpushChanges() {
401
+ this.debugLog('openAPIpushChanges');
402
+ if (this.AirPurifier.Active !== this.accessory.context.Active) {
403
+ const command = this.AirPurifier.Active ? 'turnOn' : 'turnOff';
404
+ const bodyChange = {
405
+ command: `${command}`,
406
+ parameter: 'default',
407
+ commandType: 'command',
408
+ };
409
+ this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`);
410
+ try {
411
+ const deviceStatus = await this.pushChangeRequest(bodyChange);
412
+ this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
413
+ if (await this.successfulStatusCodes(deviceStatus)) {
414
+ this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
415
+ await this.updateHomeKitCharacteristics();
416
+ }
417
+ else {
418
+ await this.statusCode(deviceStatus.statusCode);
419
+ }
420
+ }
421
+ catch (e) {
422
+ await this.apiError(e);
423
+ this.errorLog(`failed openAPIpushChanges with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
424
+ }
425
+ }
426
+ else {
427
+ this.debugLog(`No changes (openAPIpushChanges), Active: ${this.AirPurifier.Active}, ActiveCached: ${this.accessory.context.Active}`);
428
+ }
429
+ }
430
+ async pushRotationSpeedChanges() {
431
+ this.debugLog('pushRotationSpeedChanges');
432
+ if (this.AirPurifier.RotationSpeed !== this.accessory.context.RotationSpeed) {
433
+ const bodyChange = {
434
+ command: 'setWindSpeed',
435
+ parameter: `${this.AirPurifier.RotationSpeed}`,
436
+ commandType: 'command',
437
+ };
438
+ this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`);
439
+ try {
440
+ const deviceStatus = await this.pushChangeRequest(bodyChange);
441
+ this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
442
+ if (await this.successfulStatusCodes(deviceStatus)) {
443
+ this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`);
444
+ await this.updateHomeKitCharacteristics();
445
+ }
446
+ else {
447
+ await this.statusCode(deviceStatus.statusCode);
448
+ }
449
+ }
450
+ catch (e) {
451
+ await this.apiError(e);
452
+ this.errorLog(`failed pushRotationSpeedChanges with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`);
453
+ }
454
+ }
455
+ else {
456
+ this.debugLog(`No changes (pushRotationSpeedChanges), RotationSpeed: ${this.AirPurifier.RotationSpeed}, RotationSpeedCached: ${this.accessory.context.RotationSpeed}`);
457
+ }
458
+ }
459
+ /**
460
+ * Handle requests to set the value of the "On" characteristic
461
+ */
462
+ async ActiveSet(value) {
463
+ if (this.AirPurifier.Active !== this.accessory.context.Active) {
464
+ this.infoLog(`Set Active: ${value}`);
465
+ }
466
+ else {
467
+ this.debugLog(`No Changes, Active: ${value}`);
468
+ }
469
+ this.AirPurifier.Active = value;
470
+ this.doAirPurifierUpdate.next();
471
+ }
472
+ /**
473
+ * Handle requests to set the value of the "On" characteristic
474
+ */
475
+ async RotationSpeedSet(value) {
476
+ if (this.AirPurifier.RotationSpeed !== this.accessory.context.RotationSpeed) {
477
+ this.infoLog(`Set RotationSpeed ${value}`);
478
+ }
479
+ else {
480
+ this.debugLog(`No Changes, RotationSpeed: ${value}`);
481
+ }
482
+ this.AirPurifier.RotationSpeed = value;
483
+ this.doAirPurifierUpdate.next();
484
+ }
485
+ async updateHomeKitCharacteristics() {
486
+ // Active
487
+ await this.updateCharacteristic(this.AirPurifier.Service, this.hap.Characteristic.Active, this.AirPurifier.Active, 'Active');
488
+ // RotationSpeed
489
+ await this.updateCharacteristic(this.AirPurifier.Service, this.hap.Characteristic.RotationSpeed, this.AirPurifier.RotationSpeed, 'RotationSpeed');
490
+ // CurrentAirPurifierState
491
+ await this.updateCharacteristic(this.AirPurifier.Service, this.hap.Characteristic.CurrentAirPurifierState, this.AirPurifier.CurrentAirPurifierState, 'CurrentAirPurifierState');
492
+ // TargetAirPurifierState
493
+ await this.updateCharacteristic(this.AirPurifier.Service, this.hap.Characteristic.TargetAirPurifierState, this.AirPurifier.TargetAirPurifierState, 'TargetAirPurifierState');
494
+ // CurrentHeaterCoolerState
495
+ await this.updateCharacteristic(this.AirPurifier.Service, this.hap.Characteristic.CurrentHeaterCoolerState, this.AirPurifier.CurrentHeaterCoolerState, 'CurrentHeaterCoolerState');
496
+ }
497
+ async BLEPushConnection() {
498
+ if (this.platform.config.credentials?.token && this.device.connectionType === 'BLE/OpenAPI') {
499
+ this.warnLog('Using OpenAPI Connection to Push Changes');
500
+ await this.openAPIpushChanges();
501
+ }
502
+ }
503
+ async BLERefreshConnection(switchbot) {
504
+ this.errorLog(`wasn't able to establish BLE Connection, node-switchbot: ${switchbot}`);
505
+ if (this.platform.config.credentials?.token && this.device.connectionType === 'BLE/OpenAPI') {
506
+ this.warnLog('Using OpenAPI Connection to Refresh Status');
507
+ await this.openAPIRefreshStatus();
508
+ }
509
+ }
510
+ async offlineOff() {
511
+ if (this.device.offline) {
512
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.Active, this.hap.Characteristic.Active.INACTIVE);
513
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.RotationSpeed, 0);
514
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.CurrentAirPurifierState, this.hap.Characteristic.CurrentAirPurifierState.INACTIVE);
515
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.TargetAirPurifierState, this.hap.Characteristic.TargetAirPurifierState.AUTO);
516
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.CurrentHeaterCoolerState, this.hap.Characteristic.CurrentHeaterCoolerState.INACTIVE);
517
+ }
518
+ }
519
+ async apiError(e) {
520
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.Active, e);
521
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.RotationSpeed, e);
522
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.CurrentAirPurifierState, e);
523
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.TargetAirPurifierState, e);
524
+ this.AirPurifier.Service.updateCharacteristic(this.hap.Characteristic.CurrentHeaterCoolerState, e);
525
+ }
526
+ }
527
+ //# sourceMappingURL=airpurifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airpurifier.js","sourceRoot":"","sources":["../../src/device/airpurifier.ts"],"names":[],"mappings":"AAUA;;;EAGE;AACF,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,OAAO,WAAY,SAAQ,UAAU;IA0B9B;IAzBX,WAAW;IACH,WAAW,CAQlB;IAED,UAAU;IACV,YAAY,CAA6C;IAEzD,UAAU;IACV,cAAc,CAA6D;IAE3E,MAAM;IACN,WAAW,CAAuD;IAElE,UAAU;IACV,2BAA2B,CAAU;IACrC,mBAAmB,CAAgB;IAEnC,YACW,QAA2B,EACpC,SAA4B,EAC5B,MAA8B;QAE9B,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;QAJzB,aAAQ,GAAR,QAAQ,CAAmB;QAKpC,eAAe;QACf,SAAS,CAAC,QAAQ,4CAAmC,CAAA;QAErD,oFAAoF;QACpF,IAAI,CAAC,mBAAmB,GAAG,IAAI,OAAO,EAAE,CAAA;QACxC,IAAI,CAAC,2BAA2B,GAAG,KAAK,CAAA;QAExC,iCAAiC;QACjC,SAAS,CAAC,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,WAAW,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