@switchbot/homebridge-switchbot 1.4.1-beta.2 → 1.4.1-beta.3
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/CHANGELOG.md +7 -3
- package/config.schema.json +1 -1
- package/dist/devices/bots.d.ts.map +1 -1
- package/dist/devices/bots.js +15 -0
- package/dist/devices/bots.js.map +1 -1
- package/dist/devices/colorbulb.d.ts.map +1 -1
- package/dist/devices/colorbulb.js +15 -0
- package/dist/devices/colorbulb.js.map +1 -1
- package/dist/devices/contact.d.ts.map +1 -1
- package/dist/devices/contact.js +15 -0
- package/dist/devices/contact.js.map +1 -1
- package/dist/devices/curtains.d.ts.map +1 -1
- package/dist/devices/curtains.js +18 -0
- package/dist/devices/curtains.js.map +1 -1
- package/dist/devices/humidifiers.d.ts.map +1 -1
- package/dist/devices/humidifiers.js +15 -0
- package/dist/devices/humidifiers.js.map +1 -1
- package/dist/devices/meters.d.ts.map +1 -1
- package/dist/devices/meters.js +15 -0
- package/dist/devices/meters.js.map +1 -1
- package/dist/devices/motion.d.ts.map +1 -1
- package/dist/devices/motion.js +15 -0
- package/dist/devices/motion.js.map +1 -1
- package/dist/devices/plugs.d.ts.map +1 -1
- package/dist/devices/plugs.js +15 -0
- package/dist/devices/plugs.js.map +1 -1
- package/package.json +10 -6
- package/src/devices/bots.ts +15 -0
- package/src/devices/colorbulb.ts +15 -0
- package/src/devices/contact.ts +15 -0
- package/src/devices/curtains.ts +18 -0
- package/src/devices/humidifiers.ts +15 -0
- package/src/devices/meters.ts +15 -0
- package/src/devices/motion.ts +15 -0
- package/src/devices/plugs.ts +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugs.js","sourceRoot":"","sources":["../../src/devices/plugs.ts"],"names":[],"mappings":";;;AAEA,+BAAyC;AAEzC,8CAAoE;AAEpE,0CAA8F;AAE9F,MAAa,IAAI;IAmBf,YACmB,QAA2B,EACpC,SAA4B,EAC7B,MAA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;QACpB,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE;YAChC,IAAI,IAAI,CAAC,aAAa,KAAK,OAAO,EAAE;gBAClC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;aACnD;iBAAM;gBACL,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;aACzC;SACF;IACH,CAAC;IAED,qBAAqB;QACnB,OAAO,IAAI,CAAC,aAAa,KAAK,OAAO,IAAI,IAAI,CAAC,aAAa,KAAK,UAAU,CAAC;IAC7E,CAAC;CACF;AAhTD,oBAgTC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Homebridge SwitchBot",
|
|
3
3
|
"name": "@switchbot/homebridge-switchbot",
|
|
4
|
-
"version": "1.4.1-beta.
|
|
4
|
+
"version": "1.4.1-beta.3",
|
|
5
5
|
"description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
|
|
6
6
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
7
7
|
"license": "ISC",
|
|
@@ -28,7 +28,11 @@
|
|
|
28
28
|
"funding": [
|
|
29
29
|
{
|
|
30
30
|
"type": "Paypal",
|
|
31
|
-
"url": "https://
|
|
31
|
+
"url": "https://paypal.me/donavanbecker"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "GitHub",
|
|
35
|
+
"url": "https://github.com/sponsors/donavanbecker"
|
|
32
36
|
}
|
|
33
37
|
],
|
|
34
38
|
"publishConfig": {
|
|
@@ -53,10 +57,10 @@
|
|
|
53
57
|
"rxjs": "^7.4.0"
|
|
54
58
|
},
|
|
55
59
|
"devDependencies": {
|
|
56
|
-
"@types/node": "^17.0.
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
58
|
-
"@typescript-eslint/parser": "^5.
|
|
59
|
-
"eslint": "^8.
|
|
60
|
+
"@types/node": "^17.0.4",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
|
62
|
+
"@typescript-eslint/parser": "^5.8.0",
|
|
63
|
+
"eslint": "^8.5.0",
|
|
60
64
|
"homebridge": "^1.3.8",
|
|
61
65
|
"nodemon": "^2.0.15",
|
|
62
66
|
"npm-check-updates": "^12.0.5",
|
package/src/devices/bots.ts
CHANGED
|
@@ -170,18 +170,33 @@ export class Bot {
|
|
|
170
170
|
refreshRate() {
|
|
171
171
|
if (this.device.refreshRate) {
|
|
172
172
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
173
|
+
if (this.platform.debugMode) {
|
|
174
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
175
|
+
}
|
|
173
176
|
} else if (this.platform.config.options!.refreshRate) {
|
|
174
177
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
178
|
+
if (this.platform.debugMode) {
|
|
179
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
180
|
+
}
|
|
175
181
|
}
|
|
176
182
|
}
|
|
177
183
|
|
|
178
184
|
logs() {
|
|
179
185
|
if (this.device.logging) {
|
|
180
186
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
187
|
+
if (this.platform.debugMode) {
|
|
188
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
189
|
+
}
|
|
181
190
|
} else if (this.platform.config.options?.logging) {
|
|
182
191
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
192
|
+
if (this.platform.debugMode) {
|
|
193
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
194
|
+
}
|
|
183
195
|
} else {
|
|
184
196
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
197
|
+
if (this.platform.debugMode) {
|
|
198
|
+
this.warnLog('Using Device Standard Logging');
|
|
199
|
+
}
|
|
185
200
|
}
|
|
186
201
|
}
|
|
187
202
|
|
package/src/devices/colorbulb.ts
CHANGED
|
@@ -200,18 +200,33 @@ export class ColorBulb {
|
|
|
200
200
|
refreshRate() {
|
|
201
201
|
if (this.device.refreshRate) {
|
|
202
202
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
203
|
+
if (this.platform.debugMode) {
|
|
204
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
205
|
+
}
|
|
203
206
|
} else if (this.platform.config.options!.refreshRate) {
|
|
204
207
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
208
|
+
if (this.platform.debugMode) {
|
|
209
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
210
|
+
}
|
|
205
211
|
}
|
|
206
212
|
}
|
|
207
213
|
|
|
208
214
|
logs() {
|
|
209
215
|
if (this.device.logging) {
|
|
210
216
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
217
|
+
if (this.platform.debugMode) {
|
|
218
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
219
|
+
}
|
|
211
220
|
} else if (this.platform.config.options?.logging) {
|
|
212
221
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
222
|
+
if (this.platform.debugMode) {
|
|
223
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
224
|
+
}
|
|
213
225
|
} else {
|
|
214
226
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
227
|
+
if (this.platform.debugMode) {
|
|
228
|
+
this.warnLog('Using Device Standard Logging');
|
|
229
|
+
}
|
|
215
230
|
}
|
|
216
231
|
}
|
|
217
232
|
|
package/src/devices/contact.ts
CHANGED
|
@@ -146,18 +146,33 @@ export class Contact {
|
|
|
146
146
|
refreshRate() {
|
|
147
147
|
if (this.device.refreshRate) {
|
|
148
148
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
149
|
+
if (this.platform.debugMode) {
|
|
150
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
151
|
+
}
|
|
149
152
|
} else if (this.platform.config.options!.refreshRate) {
|
|
150
153
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
154
|
+
if (this.platform.debugMode) {
|
|
155
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
156
|
+
}
|
|
151
157
|
}
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
logs() {
|
|
155
161
|
if (this.device.logging) {
|
|
156
162
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
163
|
+
if (this.platform.debugMode) {
|
|
164
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
165
|
+
}
|
|
157
166
|
} else if (this.platform.config.options?.logging) {
|
|
158
167
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
168
|
+
if (this.platform.debugMode) {
|
|
169
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
170
|
+
}
|
|
159
171
|
} else {
|
|
160
172
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
173
|
+
if (this.platform.debugMode) {
|
|
174
|
+
this.warnLog('Using Device Standard Logging');
|
|
175
|
+
}
|
|
161
176
|
}
|
|
162
177
|
}
|
|
163
178
|
|
package/src/devices/curtains.ts
CHANGED
|
@@ -196,12 +196,21 @@ export class Curtain {
|
|
|
196
196
|
// refreshRate
|
|
197
197
|
if (this.device.refreshRate) {
|
|
198
198
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
199
|
+
if (this.platform.debugMode) {
|
|
200
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
201
|
+
}
|
|
199
202
|
} else if (this.platform.config.options!.refreshRate) {
|
|
200
203
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
204
|
+
if (this.platform.debugMode) {
|
|
205
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
206
|
+
}
|
|
201
207
|
}
|
|
202
208
|
// curtainRefreshRate
|
|
203
209
|
if (this.device?.curtain?.refreshRate) {
|
|
204
210
|
this.curtainRefreshRate = this.device?.curtain?.refreshRate;
|
|
211
|
+
if (this.platform.debugMode) {
|
|
212
|
+
this.warnLog(`Using Device Config Curtain refreshRate: ${this.deviceRefreshRate}`);
|
|
213
|
+
}
|
|
205
214
|
} else {
|
|
206
215
|
this.curtainRefreshRate = 5;
|
|
207
216
|
if (this.deviceLogging === 'debug') {
|
|
@@ -213,10 +222,19 @@ export class Curtain {
|
|
|
213
222
|
logs() {
|
|
214
223
|
if (this.device.logging) {
|
|
215
224
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
225
|
+
if (this.platform.debugMode) {
|
|
226
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
227
|
+
}
|
|
216
228
|
} else if (this.platform.config.options?.logging) {
|
|
217
229
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
230
|
+
if (this.platform.debugMode) {
|
|
231
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
232
|
+
}
|
|
218
233
|
} else {
|
|
219
234
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
235
|
+
if (this.platform.debugMode) {
|
|
236
|
+
this.warnLog('Using Device Standard Logging');
|
|
237
|
+
}
|
|
220
238
|
}
|
|
221
239
|
}
|
|
222
240
|
|
|
@@ -193,18 +193,33 @@ export class Humidifier {
|
|
|
193
193
|
refreshRate() {
|
|
194
194
|
if (this.device.refreshRate) {
|
|
195
195
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
196
|
+
if (this.platform.debugMode) {
|
|
197
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
198
|
+
}
|
|
196
199
|
} else if (this.platform.config.options!.refreshRate) {
|
|
197
200
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
201
|
+
if (this.platform.debugMode) {
|
|
202
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
203
|
+
}
|
|
198
204
|
}
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
logs() {
|
|
202
208
|
if (this.device.logging) {
|
|
203
209
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
210
|
+
if (this.platform.debugMode) {
|
|
211
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
212
|
+
}
|
|
204
213
|
} else if (this.platform.config.options?.logging) {
|
|
205
214
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
215
|
+
if (this.platform.debugMode) {
|
|
216
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
217
|
+
}
|
|
206
218
|
} else {
|
|
207
219
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
220
|
+
if (this.platform.debugMode) {
|
|
221
|
+
this.warnLog('Using Device Standard Logging');
|
|
222
|
+
}
|
|
208
223
|
}
|
|
209
224
|
}
|
|
210
225
|
|
package/src/devices/meters.ts
CHANGED
|
@@ -183,18 +183,33 @@ export class Meter {
|
|
|
183
183
|
refreshRate() {
|
|
184
184
|
if (this.device.refreshRate) {
|
|
185
185
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
186
|
+
if (this.platform.debugMode) {
|
|
187
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
188
|
+
}
|
|
186
189
|
} else if (this.platform.config.options!.refreshRate) {
|
|
187
190
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
191
|
+
if (this.platform.debugMode) {
|
|
192
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
193
|
+
}
|
|
188
194
|
}
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
logs() {
|
|
192
198
|
if (this.device.logging) {
|
|
193
199
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
200
|
+
if (this.platform.debugMode) {
|
|
201
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
202
|
+
}
|
|
194
203
|
} else if (this.platform.config.options?.logging) {
|
|
195
204
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
205
|
+
if (this.platform.debugMode) {
|
|
206
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
207
|
+
}
|
|
196
208
|
} else {
|
|
197
209
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
210
|
+
if (this.platform.debugMode) {
|
|
211
|
+
this.warnLog('Using Device Standard Logging');
|
|
212
|
+
}
|
|
198
213
|
}
|
|
199
214
|
}
|
|
200
215
|
|
package/src/devices/motion.ts
CHANGED
|
@@ -114,18 +114,33 @@ export class Motion {
|
|
|
114
114
|
refreshRate() {
|
|
115
115
|
if (this.device.refreshRate) {
|
|
116
116
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
117
|
+
if (this.platform.debugMode) {
|
|
118
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
119
|
+
}
|
|
117
120
|
} else if (this.platform.config.options!.refreshRate) {
|
|
118
121
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
122
|
+
if (this.platform.debugMode) {
|
|
123
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
124
|
+
}
|
|
119
125
|
}
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
logs() {
|
|
123
129
|
if (this.device.logging) {
|
|
124
130
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
131
|
+
if (this.platform.debugMode) {
|
|
132
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
133
|
+
}
|
|
125
134
|
} else if (this.platform.config.options?.logging) {
|
|
126
135
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
136
|
+
if (this.platform.debugMode) {
|
|
137
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
138
|
+
}
|
|
127
139
|
} else {
|
|
128
140
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
141
|
+
if (this.platform.debugMode) {
|
|
142
|
+
this.warnLog('Using Device Standard Logging');
|
|
143
|
+
}
|
|
129
144
|
}
|
|
130
145
|
}
|
|
131
146
|
|
package/src/devices/plugs.ts
CHANGED
|
@@ -117,18 +117,33 @@ export class Plug {
|
|
|
117
117
|
refreshRate() {
|
|
118
118
|
if (this.device.refreshRate) {
|
|
119
119
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.device.refreshRate;
|
|
120
|
+
if (this.platform.debugMode) {
|
|
121
|
+
this.warnLog(`Using Device Config refreshRate: ${this.deviceRefreshRate}`);
|
|
122
|
+
}
|
|
120
123
|
} else if (this.platform.config.options!.refreshRate) {
|
|
121
124
|
this.deviceRefreshRate = this.accessory.context.refreshRate = this.platform.config.options!.refreshRate;
|
|
125
|
+
if (this.platform.debugMode) {
|
|
126
|
+
this.warnLog(`Using Platform Config refreshRate: ${this.deviceRefreshRate}`);
|
|
127
|
+
}
|
|
122
128
|
}
|
|
123
129
|
}
|
|
124
130
|
|
|
125
131
|
logs() {
|
|
126
132
|
if (this.device.logging) {
|
|
127
133
|
this.deviceLogging = this.accessory.context.logging = this.device.logging;
|
|
134
|
+
if (this.platform.debugMode) {
|
|
135
|
+
this.warnLog(`Using Device Config Logging: ${this.deviceLogging}`);
|
|
136
|
+
}
|
|
128
137
|
} else if (this.platform.config.options?.logging) {
|
|
129
138
|
this.deviceLogging = this.accessory.context.logging = this.platform.config.options?.logging;
|
|
139
|
+
if (this.platform.debugMode) {
|
|
140
|
+
this.warnLog(`Using Platform Config Logging: ${this.deviceLogging}`);
|
|
141
|
+
}
|
|
130
142
|
} else {
|
|
131
143
|
this.deviceLogging = this.accessory.context.logging = 'standard';
|
|
144
|
+
if (this.platform.debugMode) {
|
|
145
|
+
this.warnLog('Using Device Standard Logging');
|
|
146
|
+
}
|
|
132
147
|
}
|
|
133
148
|
}
|
|
134
149
|
|