@switchbot/homebridge-switchbot 5.0.0-beta.13 → 5.0.0-beta.14
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/dist/platform-hap.d.ts +10 -14
- package/dist/platform-hap.d.ts.map +1 -1
- package/dist/platform-hap.js +27 -65
- package/dist/platform-hap.js.map +1 -1
- package/dist/platform-matter.d.ts.map +1 -1
- package/dist/platform-matter.js +4 -40
- package/dist/platform-matter.js.map +1 -1
- package/dist/utils.d.ts +53 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +155 -0
- package/dist/utils.js.map +1 -1
- package/dist/verifyconfig.test.js +2 -2
- package/dist/verifyconfig.test.js.map +1 -1
- package/docs/variables/default.html +1 -1
- package/package.json +1 -1
- package/src/platform-hap.ts +29 -74
- package/src/platform-matter.ts +4 -40
- package/src/utils.ts +158 -1
- package/src/verifyconfig.test.ts +11 -10
package/dist/platform-hap.d.ts
CHANGED
|
@@ -13,6 +13,16 @@ export declare class SwitchBotHAPPlatform implements DynamicPlatformPlugin {
|
|
|
13
13
|
accessories: PlatformAccessory[];
|
|
14
14
|
readonly api: API;
|
|
15
15
|
readonly log: Logging;
|
|
16
|
+
infoLog: (...log: any[]) => Promise<void>;
|
|
17
|
+
successLog: (...log: any[]) => Promise<void>;
|
|
18
|
+
debugSuccessLog: (...log: any[]) => Promise<void>;
|
|
19
|
+
warnLog: (...log: any[]) => Promise<void>;
|
|
20
|
+
debugWarnLog: (...log: any[]) => Promise<void>;
|
|
21
|
+
errorLog: (...log: any[]) => Promise<void>;
|
|
22
|
+
debugErrorLog: (...log: any[]) => Promise<void>;
|
|
23
|
+
debugLog: (...log: any[]) => Promise<void>;
|
|
24
|
+
loggingIsDebug: () => Promise<boolean>;
|
|
25
|
+
enablingPlatformLogging: () => Promise<boolean>;
|
|
16
26
|
platformConfig: SwitchBotPlatformConfig;
|
|
17
27
|
platformLogging: options['logging'];
|
|
18
28
|
platformRefreshRate: options['refreshRate'];
|
|
@@ -131,19 +141,5 @@ export declare class SwitchBotHAPPlatform implements DynamicPlatformPlugin {
|
|
|
131
141
|
* @returns The cleaned string value.
|
|
132
142
|
*/
|
|
133
143
|
validateAndCleanDisplayName(displayName: string, name: string, value: string): Promise<string>;
|
|
134
|
-
/**
|
|
135
|
-
* If device level logging is turned on, log to log.warn
|
|
136
|
-
* Otherwise send debug logs to log.debug
|
|
137
|
-
*/
|
|
138
|
-
infoLog(...log: any[]): Promise<void>;
|
|
139
|
-
successLog(...log: any[]): Promise<void>;
|
|
140
|
-
debugSuccessLog(...log: any[]): Promise<void>;
|
|
141
|
-
warnLog(...log: any[]): Promise<void>;
|
|
142
|
-
debugWarnLog(...log: any[]): Promise<void>;
|
|
143
|
-
errorLog(...log: any[]): Promise<void>;
|
|
144
|
-
debugErrorLog(...log: any[]): Promise<void>;
|
|
145
|
-
debugLog(...log: any[]): Promise<void>;
|
|
146
|
-
loggingIsDebug(): Promise<boolean>;
|
|
147
|
-
enablingPlatformLogging(): Promise<boolean>;
|
|
148
144
|
}
|
|
149
145
|
//# sourceMappingURL=platform-hap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-hap.d.ts","sourceRoot":"","sources":["../src/platform-hap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,OAAO,KAAK,EAAE,GAAG,EAAE,qBAAqB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACxF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAMtC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAErH,OAAO,KAAK,EAAkC,aAAa,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAA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CHANGED
|
@@ -36,7 +36,7 @@ import { TV } from './irdevice/tv.js';
|
|
|
36
36
|
import { VacuumCleaner } from './irdevice/vacuumcleaner.js';
|
|
37
37
|
import { WaterHeater } from './irdevice/waterheater.js';
|
|
38
38
|
import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
|
|
39
|
-
import { cleanDeviceConfig, formatDeviceIdAsMac, isBlindTiltDevice, isCurtainDevice, safeStringify, sleep } from './utils.js';
|
|
39
|
+
import { cleanDeviceConfig, createPlatformLogger, formatDeviceIdAsMac, isBlindTiltDevice, isCurtainDevice, safeStringify, sleep } from './utils.js';
|
|
40
40
|
/**
|
|
41
41
|
* HomebridgePlatform
|
|
42
42
|
* This class is the main constructor for your plugin, this is where you should
|
|
@@ -47,6 +47,17 @@ export class SwitchBotHAPPlatform {
|
|
|
47
47
|
accessories = [];
|
|
48
48
|
api;
|
|
49
49
|
log;
|
|
50
|
+
// Logging helper functions (attached from utils.createPlatformLogger in constructor)
|
|
51
|
+
infoLog;
|
|
52
|
+
successLog;
|
|
53
|
+
debugSuccessLog;
|
|
54
|
+
warnLog;
|
|
55
|
+
debugWarnLog;
|
|
56
|
+
errorLog;
|
|
57
|
+
debugErrorLog;
|
|
58
|
+
debugLog;
|
|
59
|
+
loggingIsDebug;
|
|
60
|
+
enablingPlatformLogging;
|
|
50
61
|
// Configuration properties
|
|
51
62
|
platformConfig;
|
|
52
63
|
platformLogging;
|
|
@@ -73,6 +84,18 @@ export class SwitchBotHAPPlatform {
|
|
|
73
84
|
constructor(log, config, api) {
|
|
74
85
|
this.api = api;
|
|
75
86
|
this.log = log;
|
|
87
|
+
// Attach shared platform logging helpers (moved to utils for reuse)
|
|
88
|
+
const _pl = createPlatformLogger(async () => this.platformLogging, this.log);
|
|
89
|
+
this.infoLog = _pl.infoLog;
|
|
90
|
+
this.successLog = _pl.successLog;
|
|
91
|
+
this.debugSuccessLog = _pl.debugSuccessLog;
|
|
92
|
+
this.warnLog = _pl.warnLog;
|
|
93
|
+
this.debugWarnLog = _pl.debugWarnLog;
|
|
94
|
+
this.errorLog = _pl.errorLog;
|
|
95
|
+
this.debugErrorLog = _pl.debugErrorLog;
|
|
96
|
+
this.debugLog = _pl.debugLog;
|
|
97
|
+
this.loggingIsDebug = _pl.loggingIsDebug;
|
|
98
|
+
this.enablingPlatformLogging = _pl.enablingPlatformLogging;
|
|
76
99
|
// only load if configured
|
|
77
100
|
if (!config) {
|
|
78
101
|
this.log.error('No configuration found for the plugin, please check your config.');
|
|
@@ -175,16 +198,16 @@ export class SwitchBotHAPPlatform {
|
|
|
175
198
|
try {
|
|
176
199
|
// Does the user have a version of Homebridge that is compatible with matter?
|
|
177
200
|
if (!this.api.isMatterAvailable?.()) {
|
|
178
|
-
this.
|
|
201
|
+
this.debugLog(`Matter is not available in this version of Homebridge. Please update Homebridge to use this plugin, ${this.api.isMatterAvailable?.() ? '' : ' (Matter is not available in this version of Homebridge)'}`);
|
|
179
202
|
}
|
|
180
203
|
if (!this.api.isMatterEnabled?.()) {
|
|
181
|
-
this.
|
|
204
|
+
this.debugLog(`Matter is not enabled in Homebridge. Please enable Matter in the Homebridge settings to use this plugin, ${this.api.isMatterEnabled?.() ? '' : ' (Matter is not enabled in Homebridge)'}`);
|
|
182
205
|
}
|
|
183
206
|
if (!this.api.isMatterAvailable?.() && !this.api.isMatterEnabled?.()) {
|
|
184
207
|
await this.discoverDevices();
|
|
185
208
|
}
|
|
186
209
|
else {
|
|
187
|
-
this.
|
|
210
|
+
this.infoLog('Matter is enabled in Homebridge. SwitchBot Matter devices will be handled by the Matter platform.');
|
|
188
211
|
}
|
|
189
212
|
}
|
|
190
213
|
catch (e) {
|
|
@@ -2796,66 +2819,5 @@ export class SwitchBotHAPPlatform {
|
|
|
2796
2819
|
return value;
|
|
2797
2820
|
}
|
|
2798
2821
|
}
|
|
2799
|
-
/**
|
|
2800
|
-
* If device level logging is turned on, log to log.warn
|
|
2801
|
-
* Otherwise send debug logs to log.debug
|
|
2802
|
-
*/
|
|
2803
|
-
async infoLog(...log) {
|
|
2804
|
-
if (await this.enablingPlatformLogging()) {
|
|
2805
|
-
this.log.info(String(...log));
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
async successLog(...log) {
|
|
2809
|
-
if (await this.enablingPlatformLogging()) {
|
|
2810
|
-
this.log.success(String(...log));
|
|
2811
|
-
}
|
|
2812
|
-
}
|
|
2813
|
-
async debugSuccessLog(...log) {
|
|
2814
|
-
if (await this.enablingPlatformLogging()) {
|
|
2815
|
-
if (await this.loggingIsDebug()) {
|
|
2816
|
-
this.log.success('[DEBUG]', String(...log));
|
|
2817
|
-
}
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
async warnLog(...log) {
|
|
2821
|
-
if (await this.enablingPlatformLogging()) {
|
|
2822
|
-
this.log.warn(String(...log));
|
|
2823
|
-
}
|
|
2824
|
-
}
|
|
2825
|
-
async debugWarnLog(...log) {
|
|
2826
|
-
if (await this.enablingPlatformLogging()) {
|
|
2827
|
-
if (await this.loggingIsDebug()) {
|
|
2828
|
-
this.log.warn('[DEBUG]', String(...log));
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
async errorLog(...log) {
|
|
2833
|
-
if (await this.enablingPlatformLogging()) {
|
|
2834
|
-
this.log.error(String(...log));
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
async debugErrorLog(...log) {
|
|
2838
|
-
if (await this.enablingPlatformLogging()) {
|
|
2839
|
-
if (await this.loggingIsDebug()) {
|
|
2840
|
-
this.log.error('[DEBUG]', String(...log));
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
2844
|
-
async debugLog(...log) {
|
|
2845
|
-
if (await this.enablingPlatformLogging()) {
|
|
2846
|
-
if (this.platformLogging === 'debug') {
|
|
2847
|
-
this.log.info('[DEBUG]', String(...log));
|
|
2848
|
-
}
|
|
2849
|
-
else if (this.platformLogging === 'debugMode') {
|
|
2850
|
-
this.log.debug(String(...log));
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
async loggingIsDebug() {
|
|
2855
|
-
return this.platformLogging === 'debugMode' || this.platformLogging === 'debug';
|
|
2856
|
-
}
|
|
2857
|
-
async enablingPlatformLogging() {
|
|
2858
|
-
return this.platformLogging === 'debugMode' || this.platformLogging === 'debug' || this.platformLogging === 'standard';
|
|
2859
|
-
}
|
|
2860
2822
|
}
|
|
2861
2823
|
//# sourceMappingURL=platform-hap.js.map
|