@switchbot/homebridge-switchbot 4.3.0 → 4.3.1-beta.1
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/.github/npm-version-script.cjs +81 -0
- package/config.schema.json +61 -104
- package/docs/functions/default.html +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#!/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This scripts queries the npm registry to pull out the latest version for a given tag.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const semver = require("semver");
|
|
9
|
+
const child_process = require("child_process");
|
|
10
|
+
const assert = require("assert");
|
|
11
|
+
|
|
12
|
+
const BRANCH_VERSION_PATTERN = /^([A-Za-z]*)-(\d+.\d+.\d+)$/
|
|
13
|
+
|
|
14
|
+
// Load the contents of the package.json file
|
|
15
|
+
const packageJSON = JSON.parse(fs.readFileSync("package.json", "utf8"));
|
|
16
|
+
|
|
17
|
+
let refArgument = process.argv[2];
|
|
18
|
+
let tagArgument = process.argv[3] || "latest";
|
|
19
|
+
|
|
20
|
+
if (refArgument == null) {
|
|
21
|
+
console.error("ref argument is missing");
|
|
22
|
+
console.error("Usage: npm-version-script.cjs <ref> [tag]");
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Queries the NPM registry for the latest version for the provided tag.
|
|
28
|
+
* @param tag The tag to query for.
|
|
29
|
+
* @returns {string} Returns the version.
|
|
30
|
+
*/
|
|
31
|
+
function getTagVersionFromNpm(tag) {
|
|
32
|
+
try {
|
|
33
|
+
return child_process.execSync(`npm info ${packageJSON.name} version --tag="${tag}"`).toString("utf8").trim();
|
|
34
|
+
} catch (e) {
|
|
35
|
+
throw e;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function desiredTargetVersion(ref) {
|
|
40
|
+
// ref is a GitHub action ref string
|
|
41
|
+
if (ref.startsWith("refs/pull/")) {
|
|
42
|
+
throw Error("The version script was executed inside a PR!");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
assert(ref.startsWith("refs/heads/"))
|
|
46
|
+
let branchName = ref.slice("refs/heads/".length);
|
|
47
|
+
|
|
48
|
+
let results = branchName.match(BRANCH_VERSION_PATTERN);
|
|
49
|
+
if (results != null) {
|
|
50
|
+
if (results[1] !== tagArgument) {
|
|
51
|
+
console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return results[2];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// legacy mode were we use the `betaVersion` property in the package.json
|
|
58
|
+
if (branchName === "beta" && packageJSON.betaVersion) {
|
|
59
|
+
return packageJSON.betaVersion
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
throw new Error("Malformed branch name for ref: " + ref + ". Can't derive the base version. Use a branch name like: beta-x.x.x!");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// derive the base version from the branch ref
|
|
66
|
+
const baseVersion = desiredTargetVersion(refArgument);
|
|
67
|
+
|
|
68
|
+
// query the npm registry for the latest version of the provided tag name
|
|
69
|
+
const latestReleasedVersion = getTagVersionFromNpm(tagArgument); // e.g. 0.7.0-beta.12
|
|
70
|
+
const latestReleaseBase = semver.inc(latestReleasedVersion, "patch"); // will produce 0.7.0 (removing the preid, needed for the equality check below)
|
|
71
|
+
|
|
72
|
+
let publishTag;
|
|
73
|
+
if (semver.eq(baseVersion, latestReleaseBase)) { // check if we are releasing another version for the latest beta
|
|
74
|
+
publishTag = latestReleasedVersion; // set the current latest beta to be incremented
|
|
75
|
+
} else {
|
|
76
|
+
publishTag = baseVersion; // start of with a new beta version
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// save the package.json
|
|
80
|
+
packageJSON.version = publishTag;
|
|
81
|
+
fs.writeFileSync("package.json", JSON.stringify(packageJSON, null, 2));
|
package/config.schema.json
CHANGED
|
@@ -364,7 +364,6 @@
|
|
|
364
364
|
"type": {
|
|
365
365
|
"title": "What Type of Device do you want to display in the Home App?",
|
|
366
366
|
"type": "string",
|
|
367
|
-
"required": true,
|
|
368
367
|
"default": "",
|
|
369
368
|
"placeholder": "outlet",
|
|
370
369
|
"condition": {
|
|
@@ -442,24 +441,31 @@
|
|
|
442
441
|
"mode": {
|
|
443
442
|
"title": "Bot Mode",
|
|
444
443
|
"type": "string",
|
|
445
|
-
"required": true,
|
|
446
444
|
"default": "",
|
|
447
445
|
"oneOf": [
|
|
448
446
|
{
|
|
449
447
|
"title": "Default",
|
|
450
|
-
"enum": [
|
|
448
|
+
"enum": [
|
|
449
|
+
""
|
|
450
|
+
]
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
"title": "Multi-Press",
|
|
454
|
-
"enum": [
|
|
454
|
+
"enum": [
|
|
455
|
+
"multipress"
|
|
456
|
+
]
|
|
455
457
|
},
|
|
456
458
|
{
|
|
457
459
|
"title": "Press",
|
|
458
|
-
"enum": [
|
|
460
|
+
"enum": [
|
|
461
|
+
"press"
|
|
462
|
+
]
|
|
459
463
|
},
|
|
460
464
|
{
|
|
461
465
|
"title": "Switch",
|
|
462
|
-
"enum": [
|
|
466
|
+
"enum": [
|
|
467
|
+
"switch"
|
|
468
|
+
]
|
|
463
469
|
}
|
|
464
470
|
],
|
|
465
471
|
"condition": {
|
|
@@ -469,32 +475,43 @@
|
|
|
469
475
|
"mapping": {
|
|
470
476
|
"title": "Mapping Mode",
|
|
471
477
|
"type": "string",
|
|
472
|
-
"required": true,
|
|
473
478
|
"default": "",
|
|
474
479
|
"oneOf": [
|
|
475
480
|
{
|
|
476
481
|
"title": "Default",
|
|
477
|
-
"enum": [
|
|
482
|
+
"enum": [
|
|
483
|
+
""
|
|
484
|
+
]
|
|
478
485
|
},
|
|
479
486
|
{
|
|
480
487
|
"title": "Down and Up",
|
|
481
|
-
"enum": [
|
|
488
|
+
"enum": [
|
|
489
|
+
"down_and_up"
|
|
490
|
+
]
|
|
482
491
|
},
|
|
483
492
|
{
|
|
484
493
|
"title": "Only Down",
|
|
485
|
-
"enum": [
|
|
494
|
+
"enum": [
|
|
495
|
+
"only_down"
|
|
496
|
+
]
|
|
486
497
|
},
|
|
487
498
|
{
|
|
488
499
|
"title": "Only Up",
|
|
489
|
-
"enum": [
|
|
500
|
+
"enum": [
|
|
501
|
+
"only_up"
|
|
502
|
+
]
|
|
490
503
|
},
|
|
491
504
|
{
|
|
492
505
|
"title": "Up and Down",
|
|
493
|
-
"enum": [
|
|
506
|
+
"enum": [
|
|
507
|
+
"up_and_down"
|
|
508
|
+
]
|
|
494
509
|
},
|
|
495
510
|
{
|
|
496
511
|
"title": "Use Tilt for Direction",
|
|
497
|
-
"enum": [
|
|
512
|
+
"enum": [
|
|
513
|
+
"use_tilt_for_direction"
|
|
514
|
+
]
|
|
498
515
|
}
|
|
499
516
|
],
|
|
500
517
|
"condition": {
|
|
@@ -797,7 +814,6 @@
|
|
|
797
814
|
"logging": {
|
|
798
815
|
"title": "Device Logging Override Setting",
|
|
799
816
|
"type": "string",
|
|
800
|
-
"required": true,
|
|
801
817
|
"default": "standard",
|
|
802
818
|
"condition": {
|
|
803
819
|
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType);"
|
|
@@ -851,8 +867,6 @@
|
|
|
851
867
|
}
|
|
852
868
|
}
|
|
853
869
|
},
|
|
854
|
-
"if": { "properties": "model.options.devices" },
|
|
855
|
-
"then": { "properties": { "model.options.devices[arrayIndices].logging": { "required": true } } },
|
|
856
870
|
"uniqueItems": true
|
|
857
871
|
},
|
|
858
872
|
"deviceConfig": {
|
|
@@ -1022,7 +1036,6 @@
|
|
|
1022
1036
|
"logging": {
|
|
1023
1037
|
"title": "Logging by Device Type",
|
|
1024
1038
|
"type": "string",
|
|
1025
|
-
"required": true,
|
|
1026
1039
|
"default": "",
|
|
1027
1040
|
"condition": {
|
|
1028
1041
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Humidifier'].hide_device);"
|
|
@@ -1244,7 +1257,6 @@
|
|
|
1244
1257
|
"logging": {
|
|
1245
1258
|
"title": "Logging by Device Type",
|
|
1246
1259
|
"type": "string",
|
|
1247
|
-
"required": true,
|
|
1248
1260
|
"default": "",
|
|
1249
1261
|
"condition": {
|
|
1250
1262
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Hub 2'].hide_device);"
|
|
@@ -1315,7 +1327,6 @@
|
|
|
1315
1327
|
"mode": {
|
|
1316
1328
|
"title": "Bot Mode",
|
|
1317
1329
|
"type": "string",
|
|
1318
|
-
"required": true,
|
|
1319
1330
|
"default": "",
|
|
1320
1331
|
"condition": {
|
|
1321
1332
|
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['Bot'] && !model.options.deviceConfig['Bot'].hide_device);"
|
|
@@ -1323,26 +1334,33 @@
|
|
|
1323
1334
|
"oneOf": [
|
|
1324
1335
|
{
|
|
1325
1336
|
"title": "Default",
|
|
1326
|
-
"enum": [
|
|
1337
|
+
"enum": [
|
|
1338
|
+
""
|
|
1339
|
+
]
|
|
1327
1340
|
},
|
|
1328
1341
|
{
|
|
1329
1342
|
"title": "Multi-Press",
|
|
1330
|
-
"enum": [
|
|
1343
|
+
"enum": [
|
|
1344
|
+
"multipress"
|
|
1345
|
+
]
|
|
1331
1346
|
},
|
|
1332
1347
|
{
|
|
1333
1348
|
"title": "Press",
|
|
1334
|
-
"enum": [
|
|
1349
|
+
"enum": [
|
|
1350
|
+
"press"
|
|
1351
|
+
]
|
|
1335
1352
|
},
|
|
1336
1353
|
{
|
|
1337
1354
|
"title": "Switch",
|
|
1338
|
-
"enum": [
|
|
1355
|
+
"enum": [
|
|
1356
|
+
"switch"
|
|
1357
|
+
]
|
|
1339
1358
|
}
|
|
1340
1359
|
]
|
|
1341
1360
|
},
|
|
1342
1361
|
"type": {
|
|
1343
1362
|
"title": "What Type of Device do you want to display in the Home App?",
|
|
1344
1363
|
"type": "string",
|
|
1345
|
-
"required": true,
|
|
1346
1364
|
"default": "",
|
|
1347
1365
|
"placeholder": "outlet",
|
|
1348
1366
|
"condition": {
|
|
@@ -1561,7 +1579,6 @@
|
|
|
1561
1579
|
"logging": {
|
|
1562
1580
|
"title": "Logging by Device Type",
|
|
1563
1581
|
"type": "string",
|
|
1564
|
-
"required": true,
|
|
1565
1582
|
"default": "",
|
|
1566
1583
|
"condition": {
|
|
1567
1584
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Bot'].hide_device);"
|
|
@@ -1632,7 +1649,6 @@
|
|
|
1632
1649
|
"type": {
|
|
1633
1650
|
"title": "What Type of Device do you want to display in the Home App?",
|
|
1634
1651
|
"type": "string",
|
|
1635
|
-
"required": true,
|
|
1636
1652
|
"default": "",
|
|
1637
1653
|
"placeholder": "outlet",
|
|
1638
1654
|
"condition": {
|
|
@@ -1834,7 +1850,6 @@
|
|
|
1834
1850
|
"logging": {
|
|
1835
1851
|
"title": "Logging by Device Type",
|
|
1836
1852
|
"type": "string",
|
|
1837
|
-
"required": true,
|
|
1838
1853
|
"default": "",
|
|
1839
1854
|
"condition": {
|
|
1840
1855
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Relay Switch 1'].hide_device);"
|
|
@@ -1905,7 +1920,6 @@
|
|
|
1905
1920
|
"type": {
|
|
1906
1921
|
"title": "What Type of Device do you want to display in the Home App?",
|
|
1907
1922
|
"type": "string",
|
|
1908
|
-
"required": true,
|
|
1909
1923
|
"default": "",
|
|
1910
1924
|
"placeholder": "outlet",
|
|
1911
1925
|
"condition": {
|
|
@@ -2107,7 +2121,6 @@
|
|
|
2107
2121
|
"logging": {
|
|
2108
2122
|
"title": "Logging by Device Type",
|
|
2109
2123
|
"type": "string",
|
|
2110
|
-
"required": true,
|
|
2111
2124
|
"default": "",
|
|
2112
2125
|
"condition": {
|
|
2113
2126
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Relay Switch 1PM'].hide_device);"
|
|
@@ -2329,7 +2342,6 @@
|
|
|
2329
2342
|
"logging": {
|
|
2330
2343
|
"title": "Logging by Device Type",
|
|
2331
2344
|
"type": "string",
|
|
2332
|
-
"required": true,
|
|
2333
2345
|
"default": "",
|
|
2334
2346
|
"condition": {
|
|
2335
2347
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Meter'].hide_device);"
|
|
@@ -2551,7 +2563,6 @@
|
|
|
2551
2563
|
"logging": {
|
|
2552
2564
|
"title": "Logging by Device Type",
|
|
2553
2565
|
"type": "string",
|
|
2554
|
-
"required": true,
|
|
2555
2566
|
"default": "",
|
|
2556
2567
|
"condition": {
|
|
2557
2568
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPlus'].hide_device);"
|
|
@@ -2773,7 +2784,6 @@
|
|
|
2773
2784
|
"logging": {
|
|
2774
2785
|
"title": "Logging by Device Type",
|
|
2775
2786
|
"type": "string",
|
|
2776
|
-
"required": true,
|
|
2777
2787
|
"default": "",
|
|
2778
2788
|
"condition": {
|
|
2779
2789
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Meter Plus (JP)'].hide_device);"
|
|
@@ -2995,7 +3005,6 @@
|
|
|
2995
3005
|
"logging": {
|
|
2996
3006
|
"title": "Logging by Device Type",
|
|
2997
3007
|
"type": "string",
|
|
2998
|
-
"required": true,
|
|
2999
3008
|
"default": "",
|
|
3000
3009
|
"condition": {
|
|
3001
3010
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['WoIOSensor'].hide_device);"
|
|
@@ -3197,7 +3206,6 @@
|
|
|
3197
3206
|
"logging": {
|
|
3198
3207
|
"title": "Logging by Device Type",
|
|
3199
3208
|
"type": "string",
|
|
3200
|
-
"required": true,
|
|
3201
3209
|
"default": "",
|
|
3202
3210
|
"condition": {
|
|
3203
3211
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Water Detector'].hide_device);"
|
|
@@ -3407,7 +3415,6 @@
|
|
|
3407
3415
|
"logging": {
|
|
3408
3416
|
"title": "Logging by Device Type",
|
|
3409
3417
|
"type": "string",
|
|
3410
|
-
"required": true,
|
|
3411
3418
|
"default": "",
|
|
3412
3419
|
"condition": {
|
|
3413
3420
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Water Detector'].hide_device);"
|
|
@@ -3624,7 +3631,6 @@
|
|
|
3624
3631
|
"logging": {
|
|
3625
3632
|
"title": "Logging by Device Type",
|
|
3626
3633
|
"type": "string",
|
|
3627
|
-
"required": true,
|
|
3628
3634
|
"default": "",
|
|
3629
3635
|
"condition": {
|
|
3630
3636
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Contact Sensor'].hide_device);"
|
|
@@ -3917,7 +3923,6 @@
|
|
|
3917
3923
|
"logging": {
|
|
3918
3924
|
"title": "Logging by Device Type",
|
|
3919
3925
|
"type": "string",
|
|
3920
|
-
"required": true,
|
|
3921
3926
|
"default": "",
|
|
3922
3927
|
"condition": {
|
|
3923
3928
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Curtain'].hide_device);"
|
|
@@ -4210,7 +4215,6 @@
|
|
|
4210
4215
|
"logging": {
|
|
4211
4216
|
"title": "Logging by Device Type",
|
|
4212
4217
|
"type": "string",
|
|
4213
|
-
"required": true,
|
|
4214
4218
|
"default": "",
|
|
4215
4219
|
"condition": {
|
|
4216
4220
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Curtain3'].hide_device);"
|
|
@@ -4503,7 +4507,6 @@
|
|
|
4503
4507
|
"logging": {
|
|
4504
4508
|
"title": "Logging by Device Type",
|
|
4505
4509
|
"type": "string",
|
|
4506
|
-
"required": true,
|
|
4507
4510
|
"default": "",
|
|
4508
4511
|
"condition": {
|
|
4509
4512
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['WoRollerShade'].hide_device);"
|
|
@@ -4796,7 +4799,6 @@
|
|
|
4796
4799
|
"logging": {
|
|
4797
4800
|
"title": "Logging by Device Type",
|
|
4798
4801
|
"type": "string",
|
|
4799
|
-
"required": true,
|
|
4800
4802
|
"default": "",
|
|
4801
4803
|
"condition": {
|
|
4802
4804
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Roller Shade'].hide_device);"
|
|
@@ -4874,32 +4876,43 @@
|
|
|
4874
4876
|
"mapping": {
|
|
4875
4877
|
"title": "Mapping Mode",
|
|
4876
4878
|
"type": "string",
|
|
4877
|
-
"required": true,
|
|
4878
4879
|
"default": "",
|
|
4879
4880
|
"oneOf": [
|
|
4880
4881
|
{
|
|
4881
4882
|
"title": "Default",
|
|
4882
|
-
"enum": [
|
|
4883
|
+
"enum": [
|
|
4884
|
+
""
|
|
4885
|
+
]
|
|
4883
4886
|
},
|
|
4884
4887
|
{
|
|
4885
4888
|
"title": "Down and Up",
|
|
4886
|
-
"enum": [
|
|
4889
|
+
"enum": [
|
|
4890
|
+
"down_and_up"
|
|
4891
|
+
]
|
|
4887
4892
|
},
|
|
4888
4893
|
{
|
|
4889
4894
|
"title": "Only Down",
|
|
4890
|
-
"enum": [
|
|
4895
|
+
"enum": [
|
|
4896
|
+
"only_down"
|
|
4897
|
+
]
|
|
4891
4898
|
},
|
|
4892
4899
|
{
|
|
4893
4900
|
"title": "Only Up",
|
|
4894
|
-
"enum": [
|
|
4901
|
+
"enum": [
|
|
4902
|
+
"only_up"
|
|
4903
|
+
]
|
|
4895
4904
|
},
|
|
4896
4905
|
{
|
|
4897
4906
|
"title": "Up and Down",
|
|
4898
|
-
"enum": [
|
|
4907
|
+
"enum": [
|
|
4908
|
+
"up_and_down"
|
|
4909
|
+
]
|
|
4899
4910
|
},
|
|
4900
4911
|
{
|
|
4901
4912
|
"title": "Use Tilt for Direction",
|
|
4902
|
-
"enum": [
|
|
4913
|
+
"enum": [
|
|
4914
|
+
"use_tilt_for_direction"
|
|
4915
|
+
]
|
|
4903
4916
|
}
|
|
4904
4917
|
],
|
|
4905
4918
|
"condition": {
|
|
@@ -5124,7 +5137,6 @@
|
|
|
5124
5137
|
"logging": {
|
|
5125
5138
|
"title": "Logging by Device Type",
|
|
5126
5139
|
"type": "string",
|
|
5127
|
-
"required": true,
|
|
5128
5140
|
"default": "",
|
|
5129
5141
|
"condition": {
|
|
5130
5142
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Blind Tilt'].hide_device);"
|
|
@@ -5311,7 +5323,6 @@
|
|
|
5311
5323
|
"logging": {
|
|
5312
5324
|
"title": "Logging by Device Type",
|
|
5313
5325
|
"type": "string",
|
|
5314
|
-
"required": true,
|
|
5315
5326
|
"default": "",
|
|
5316
5327
|
"condition": {
|
|
5317
5328
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Plug'].hide_device);"
|
|
@@ -5498,7 +5509,6 @@
|
|
|
5498
5509
|
"logging": {
|
|
5499
5510
|
"title": "Logging by Device Type",
|
|
5500
5511
|
"type": "string",
|
|
5501
|
-
"required": true,
|
|
5502
5512
|
"default": "",
|
|
5503
5513
|
"condition": {
|
|
5504
5514
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Plug Mini (US)'].hide_device);"
|
|
@@ -5685,7 +5695,6 @@
|
|
|
5685
5695
|
"logging": {
|
|
5686
5696
|
"title": "Logging by Device Type",
|
|
5687
5697
|
"type": "string",
|
|
5688
|
-
"required": true,
|
|
5689
5698
|
"default": "",
|
|
5690
5699
|
"condition": {
|
|
5691
5700
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Plug Mini (JP)'].hide_device);"
|
|
@@ -5886,7 +5895,6 @@
|
|
|
5886
5895
|
"logging": {
|
|
5887
5896
|
"title": "Logging by Device Type",
|
|
5888
5897
|
"type": "string",
|
|
5889
|
-
"required": true,
|
|
5890
5898
|
"default": "",
|
|
5891
5899
|
"condition": {
|
|
5892
5900
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Smart Lock'].hide_device);"
|
|
@@ -6087,7 +6095,6 @@
|
|
|
6087
6095
|
"logging": {
|
|
6088
6096
|
"title": "Logging by Device Type",
|
|
6089
6097
|
"type": "string",
|
|
6090
|
-
"required": true,
|
|
6091
6098
|
"default": "",
|
|
6092
6099
|
"condition": {
|
|
6093
6100
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Smart Lock Pro'].hide_device);"
|
|
@@ -6292,7 +6299,6 @@
|
|
|
6292
6299
|
"logging": {
|
|
6293
6300
|
"title": "Logging by Device Type",
|
|
6294
6301
|
"type": "string",
|
|
6295
|
-
"required": true,
|
|
6296
6302
|
"default": "",
|
|
6297
6303
|
"condition": {
|
|
6298
6304
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Color Bulb'].hide_device);"
|
|
@@ -6479,7 +6485,6 @@
|
|
|
6479
6485
|
"logging": {
|
|
6480
6486
|
"title": "Logging by Device Type",
|
|
6481
6487
|
"type": "string",
|
|
6482
|
-
"required": true,
|
|
6483
6488
|
"default": "",
|
|
6484
6489
|
"condition": {
|
|
6485
6490
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['K10+'].hide_device);"
|
|
@@ -6666,7 +6671,6 @@
|
|
|
6666
6671
|
"logging": {
|
|
6667
6672
|
"title": "Logging by Device Type",
|
|
6668
6673
|
"type": "string",
|
|
6669
|
-
"required": true,
|
|
6670
6674
|
"default": "",
|
|
6671
6675
|
"condition": {
|
|
6672
6676
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['K10+ Pro'].hide_device);"
|
|
@@ -6853,7 +6857,6 @@
|
|
|
6853
6857
|
"logging": {
|
|
6854
6858
|
"title": "Logging by Device Type",
|
|
6855
6859
|
"type": "string",
|
|
6856
|
-
"required": true,
|
|
6857
6860
|
"default": "",
|
|
6858
6861
|
"condition": {
|
|
6859
6862
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['WoSweeper'].hide_device);"
|
|
@@ -7040,7 +7043,6 @@
|
|
|
7040
7043
|
"logging": {
|
|
7041
7044
|
"title": "Logging by Device Type",
|
|
7042
7045
|
"type": "string",
|
|
7043
|
-
"required": true,
|
|
7044
7046
|
"default": "",
|
|
7045
7047
|
"condition": {
|
|
7046
7048
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['WoSweeperMini'].hide_device);"
|
|
@@ -7227,7 +7229,6 @@
|
|
|
7227
7229
|
"logging": {
|
|
7228
7230
|
"title": "Logging by Device Type",
|
|
7229
7231
|
"type": "string",
|
|
7230
|
-
"required": true,
|
|
7231
7232
|
"default": "",
|
|
7232
7233
|
"condition": {
|
|
7233
7234
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Robot Vacuum Cleaner S1'].hide_device);"
|
|
@@ -7414,7 +7415,6 @@
|
|
|
7414
7415
|
"logging": {
|
|
7415
7416
|
"title": "Logging by Device Type",
|
|
7416
7417
|
"type": "string",
|
|
7417
|
-
"required": true,
|
|
7418
7418
|
"default": "",
|
|
7419
7419
|
"condition": {
|
|
7420
7420
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Robot Vacuum Cleaner S1 Plus'].hide_device);"
|
|
@@ -7601,7 +7601,6 @@
|
|
|
7601
7601
|
"logging": {
|
|
7602
7602
|
"title": "Logging by Device Type",
|
|
7603
7603
|
"type": "string",
|
|
7604
|
-
"required": true,
|
|
7605
7604
|
"default": "",
|
|
7606
7605
|
"condition": {
|
|
7607
7606
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Robot Vacuum Cleaner S10'].hide_device);"
|
|
@@ -7806,7 +7805,6 @@
|
|
|
7806
7805
|
"logging": {
|
|
7807
7806
|
"title": "Logging by Device Type",
|
|
7808
7807
|
"type": "string",
|
|
7809
|
-
"required": true,
|
|
7810
7808
|
"default": "",
|
|
7811
7809
|
"condition": {
|
|
7812
7810
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Ceiling Light'].hide_device);"
|
|
@@ -8011,7 +8009,6 @@
|
|
|
8011
8009
|
"logging": {
|
|
8012
8010
|
"title": "Logging by Device Type",
|
|
8013
8011
|
"type": "string",
|
|
8014
|
-
"required": true,
|
|
8015
8012
|
"default": "",
|
|
8016
8013
|
"condition": {
|
|
8017
8014
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Ceiling Light Pro'].hide_device);"
|
|
@@ -8216,7 +8213,6 @@
|
|
|
8216
8213
|
"logging": {
|
|
8217
8214
|
"title": "Logging by Device Type",
|
|
8218
8215
|
"type": "string",
|
|
8219
|
-
"required": true,
|
|
8220
8216
|
"default": "",
|
|
8221
8217
|
"condition": {
|
|
8222
8218
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Strip Light'].hide_device);"
|
|
@@ -8412,7 +8408,6 @@
|
|
|
8412
8408
|
"logging": {
|
|
8413
8409
|
"title": "Logging by Device Type",
|
|
8414
8410
|
"type": "string",
|
|
8415
|
-
"required": true,
|
|
8416
8411
|
"default": "",
|
|
8417
8412
|
"condition": {
|
|
8418
8413
|
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['Battery Circulator Fan'].hide_device);"
|
|
@@ -8700,7 +8695,6 @@
|
|
|
8700
8695
|
"type": {
|
|
8701
8696
|
"title": "What Type of Device do you want to display in the Home App?",
|
|
8702
8697
|
"type": "string",
|
|
8703
|
-
"required": true,
|
|
8704
8698
|
"default": "",
|
|
8705
8699
|
"oneOf": [
|
|
8706
8700
|
{
|
|
@@ -9015,7 +9009,6 @@
|
|
|
9015
9009
|
"logging": {
|
|
9016
9010
|
"title": "Device Logging Override Setting",
|
|
9017
9011
|
"type": "string",
|
|
9018
|
-
"required": true,
|
|
9019
9012
|
"default": "",
|
|
9020
9013
|
"oneOf": [
|
|
9021
9014
|
{
|
|
@@ -9075,8 +9068,6 @@
|
|
|
9075
9068
|
}
|
|
9076
9069
|
}
|
|
9077
9070
|
},
|
|
9078
|
-
"if": { "properties": "model.options.irdevices" },
|
|
9079
|
-
"then": { "properties": { "model.options.irdevices[arrayIndices].logging": { "required": true } } },
|
|
9080
9071
|
"uniqueItems": true
|
|
9081
9072
|
},
|
|
9082
9073
|
"irdeviceConfig": {
|
|
@@ -9151,7 +9142,6 @@
|
|
|
9151
9142
|
"logging": {
|
|
9152
9143
|
"title": "Logging by Device Type",
|
|
9153
9144
|
"type": "string",
|
|
9154
|
-
"required": true,
|
|
9155
9145
|
"default": "",
|
|
9156
9146
|
"condition": {
|
|
9157
9147
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['TV'].hide_device);"
|
|
@@ -9280,7 +9270,6 @@
|
|
|
9280
9270
|
"logging": {
|
|
9281
9271
|
"title": "Logging by Device Type",
|
|
9282
9272
|
"type": "string",
|
|
9283
|
-
"required": true,
|
|
9284
9273
|
"default": "",
|
|
9285
9274
|
"condition": {
|
|
9286
9275
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY TV'].hide_device);"
|
|
@@ -9409,7 +9398,6 @@
|
|
|
9409
9398
|
"logging": {
|
|
9410
9399
|
"title": "Logging by Device Type",
|
|
9411
9400
|
"type": "string",
|
|
9412
|
-
"required": true,
|
|
9413
9401
|
"default": "",
|
|
9414
9402
|
"condition": {
|
|
9415
9403
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Projector'].hide_device);"
|
|
@@ -9538,7 +9526,6 @@
|
|
|
9538
9526
|
"logging": {
|
|
9539
9527
|
"title": "Logging by Device Type",
|
|
9540
9528
|
"type": "string",
|
|
9541
|
-
"required": true,
|
|
9542
9529
|
"default": "",
|
|
9543
9530
|
"condition": {
|
|
9544
9531
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Projector'].hide_device);"
|
|
@@ -9667,7 +9654,6 @@
|
|
|
9667
9654
|
"logging": {
|
|
9668
9655
|
"title": "Logging by Device Type",
|
|
9669
9656
|
"type": "string",
|
|
9670
|
-
"required": true,
|
|
9671
9657
|
"default": "",
|
|
9672
9658
|
"condition": {
|
|
9673
9659
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Set Top Box'].hide_device);"
|
|
@@ -9796,7 +9782,6 @@
|
|
|
9796
9782
|
"logging": {
|
|
9797
9783
|
"title": "Logging by Device Type",
|
|
9798
9784
|
"type": "string",
|
|
9799
|
-
"required": true,
|
|
9800
9785
|
"default": "",
|
|
9801
9786
|
"condition": {
|
|
9802
9787
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Set Top Box'].hide_device);"
|
|
@@ -9925,7 +9910,6 @@
|
|
|
9925
9910
|
"logging": {
|
|
9926
9911
|
"title": "Logging by Device Type",
|
|
9927
9912
|
"type": "string",
|
|
9928
|
-
"required": true,
|
|
9929
9913
|
"default": "",
|
|
9930
9914
|
"condition": {
|
|
9931
9915
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['IPTV'].hide_device);"
|
|
@@ -10054,7 +10038,6 @@
|
|
|
10054
10038
|
"logging": {
|
|
10055
10039
|
"title": "Logging by Device Type",
|
|
10056
10040
|
"type": "string",
|
|
10057
|
-
"required": true,
|
|
10058
10041
|
"default": "",
|
|
10059
10042
|
"condition": {
|
|
10060
10043
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY IPTV'].hide_device);"
|
|
@@ -10183,7 +10166,6 @@
|
|
|
10183
10166
|
"logging": {
|
|
10184
10167
|
"title": "Logging by Device Type",
|
|
10185
10168
|
"type": "string",
|
|
10186
|
-
"required": true,
|
|
10187
10169
|
"default": "",
|
|
10188
10170
|
"condition": {
|
|
10189
10171
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DVD'].hide_device);"
|
|
@@ -10312,7 +10294,6 @@
|
|
|
10312
10294
|
"logging": {
|
|
10313
10295
|
"title": "Logging by Device Type",
|
|
10314
10296
|
"type": "string",
|
|
10315
|
-
"required": true,
|
|
10316
10297
|
"default": "",
|
|
10317
10298
|
"condition": {
|
|
10318
10299
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY DVD'].hide_device);"
|
|
@@ -10441,7 +10422,6 @@
|
|
|
10441
10422
|
"logging": {
|
|
10442
10423
|
"title": "Logging by Device Type",
|
|
10443
10424
|
"type": "string",
|
|
10444
|
-
"required": true,
|
|
10445
10425
|
"default": "",
|
|
10446
10426
|
"condition": {
|
|
10447
10427
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Speaker'].hide_device);"
|
|
@@ -10570,7 +10550,6 @@
|
|
|
10570
10550
|
"logging": {
|
|
10571
10551
|
"title": "Logging by Device Type",
|
|
10572
10552
|
"type": "string",
|
|
10573
|
-
"required": true,
|
|
10574
10553
|
"default": "",
|
|
10575
10554
|
"condition": {
|
|
10576
10555
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Speaker'].hide_device);"
|
|
@@ -10699,7 +10678,6 @@
|
|
|
10699
10678
|
"logging": {
|
|
10700
10679
|
"title": "Logging by Device Type",
|
|
10701
10680
|
"type": "string",
|
|
10702
|
-
"required": true,
|
|
10703
10681
|
"default": "",
|
|
10704
10682
|
"condition": {
|
|
10705
10683
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Fan'].hide_device);"
|
|
@@ -10828,7 +10806,6 @@
|
|
|
10828
10806
|
"logging": {
|
|
10829
10807
|
"title": "Logging by Device Type",
|
|
10830
10808
|
"type": "string",
|
|
10831
|
-
"required": true,
|
|
10832
10809
|
"default": "",
|
|
10833
10810
|
"condition": {
|
|
10834
10811
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Fan'].hide_device);"
|
|
@@ -10957,7 +10934,6 @@
|
|
|
10957
10934
|
"logging": {
|
|
10958
10935
|
"title": "Logging by Device Type",
|
|
10959
10936
|
"type": "string",
|
|
10960
|
-
"required": true,
|
|
10961
10937
|
"default": "",
|
|
10962
10938
|
"condition": {
|
|
10963
10939
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Air Conditioner'].hide_device);"
|
|
@@ -11086,7 +11062,6 @@
|
|
|
11086
11062
|
"logging": {
|
|
11087
11063
|
"title": "Logging by Device Type",
|
|
11088
11064
|
"type": "string",
|
|
11089
|
-
"required": true,
|
|
11090
11065
|
"default": "",
|
|
11091
11066
|
"condition": {
|
|
11092
11067
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Air Conditioner'].hide_device);"
|
|
@@ -11215,7 +11190,6 @@
|
|
|
11215
11190
|
"logging": {
|
|
11216
11191
|
"title": "Logging by Device Type",
|
|
11217
11192
|
"type": "string",
|
|
11218
|
-
"required": true,
|
|
11219
11193
|
"default": "",
|
|
11220
11194
|
"condition": {
|
|
11221
11195
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Light'].hide_device);"
|
|
@@ -11344,7 +11318,6 @@
|
|
|
11344
11318
|
"logging": {
|
|
11345
11319
|
"title": "Logging by Device Type",
|
|
11346
11320
|
"type": "string",
|
|
11347
|
-
"required": true,
|
|
11348
11321
|
"default": "",
|
|
11349
11322
|
"condition": {
|
|
11350
11323
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Light'].hide_device);"
|
|
@@ -11473,7 +11446,6 @@
|
|
|
11473
11446
|
"logging": {
|
|
11474
11447
|
"title": "Logging by Device Type",
|
|
11475
11448
|
"type": "string",
|
|
11476
|
-
"required": true,
|
|
11477
11449
|
"default": "",
|
|
11478
11450
|
"condition": {
|
|
11479
11451
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Air Purifier'].hide_device);"
|
|
@@ -11602,7 +11574,6 @@
|
|
|
11602
11574
|
"logging": {
|
|
11603
11575
|
"title": "Logging by Device Type",
|
|
11604
11576
|
"type": "string",
|
|
11605
|
-
"required": true,
|
|
11606
11577
|
"default": "",
|
|
11607
11578
|
"condition": {
|
|
11608
11579
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Air Purifier'].hide_device);"
|
|
@@ -11731,7 +11702,6 @@
|
|
|
11731
11702
|
"logging": {
|
|
11732
11703
|
"title": "Logging by Device Type",
|
|
11733
11704
|
"type": "string",
|
|
11734
|
-
"required": true,
|
|
11735
11705
|
"default": "",
|
|
11736
11706
|
"condition": {
|
|
11737
11707
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Water Heater'].hide_device);"
|
|
@@ -11860,7 +11830,6 @@
|
|
|
11860
11830
|
"logging": {
|
|
11861
11831
|
"title": "Logging by Device Type",
|
|
11862
11832
|
"type": "string",
|
|
11863
|
-
"required": true,
|
|
11864
11833
|
"default": "",
|
|
11865
11834
|
"condition": {
|
|
11866
11835
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Water Heater'].hide_device);"
|
|
@@ -11989,7 +11958,6 @@
|
|
|
11989
11958
|
"logging": {
|
|
11990
11959
|
"title": "Logging by Device Type",
|
|
11991
11960
|
"type": "string",
|
|
11992
|
-
"required": true,
|
|
11993
11961
|
"default": "",
|
|
11994
11962
|
"condition": {
|
|
11995
11963
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Vacuum Cleaner'].hide_device);"
|
|
@@ -12118,7 +12086,6 @@
|
|
|
12118
12086
|
"logging": {
|
|
12119
12087
|
"title": "Logging by Device Type",
|
|
12120
12088
|
"type": "string",
|
|
12121
|
-
"required": true,
|
|
12122
12089
|
"default": "",
|
|
12123
12090
|
"condition": {
|
|
12124
12091
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Vacuum Cleaner'].hide_device);"
|
|
@@ -12247,7 +12214,6 @@
|
|
|
12247
12214
|
"logging": {
|
|
12248
12215
|
"title": "Logging by Device Type",
|
|
12249
12216
|
"type": "string",
|
|
12250
|
-
"required": true,
|
|
12251
12217
|
"default": "",
|
|
12252
12218
|
"condition": {
|
|
12253
12219
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Camera'].hide_device);"
|
|
@@ -12376,7 +12342,6 @@
|
|
|
12376
12342
|
"logging": {
|
|
12377
12343
|
"title": "Logging by Device Type",
|
|
12378
12344
|
"type": "string",
|
|
12379
|
-
"required": true,
|
|
12380
12345
|
"default": "",
|
|
12381
12346
|
"condition": {
|
|
12382
12347
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['DIY Camera'].hide_device);"
|
|
@@ -12505,7 +12470,6 @@
|
|
|
12505
12470
|
"logging": {
|
|
12506
12471
|
"title": "Logging by Device Type",
|
|
12507
12472
|
"type": "string",
|
|
12508
|
-
"required": true,
|
|
12509
12473
|
"default": "",
|
|
12510
12474
|
"condition": {
|
|
12511
12475
|
"functionBody": "return (model.options && model.options.irdeviceConfig && !model.options.irdeviceConfig['Others'].hide_device);"
|
|
@@ -12635,8 +12599,7 @@
|
|
|
12635
12599
|
"logging": {
|
|
12636
12600
|
"title": "Logging Setting",
|
|
12637
12601
|
"type": "string",
|
|
12638
|
-
"
|
|
12639
|
-
"default": "",
|
|
12602
|
+
"default": "standard",
|
|
12640
12603
|
"oneOf": [
|
|
12641
12604
|
{
|
|
12642
12605
|
"title": "Debug Logging",
|
|
@@ -12644,12 +12607,6 @@
|
|
|
12644
12607
|
"debug"
|
|
12645
12608
|
]
|
|
12646
12609
|
},
|
|
12647
|
-
{
|
|
12648
|
-
"title": "Default Logging",
|
|
12649
|
-
"enum": [
|
|
12650
|
-
""
|
|
12651
|
-
]
|
|
12652
|
-
},
|
|
12653
12610
|
{
|
|
12654
12611
|
"title": "No Logging",
|
|
12655
12612
|
"enum": [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>default | @switchbot/homebridge-switchbot</title><meta name="description" content="Documentation for @switchbot/homebridge-switchbot"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../assets/style.css"><link rel="stylesheet" href="../assets/highlight.css"><script defer="" src="../assets/main.js"></script><script async="" src="../assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="../assets/dmt/dmt-components.css"><link rel="stylesheet" href="../assets/dmt/dmt-theme.css"><script src="../assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
|
|
2
|
-
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@switchbot/homebridge-switchbot</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/homebridge-switchbot/blob/
|
|
2
|
+
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@switchbot/homebridge-switchbot</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/homebridge-switchbot/blob/92317be236d295931222e0c4f0d5208738450461/src/index.ts#L11">index.ts:11</a></li></ul></aside></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@switchbot/homebridge-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@switchbot/homebridge-switchbot",
|
|
3
3
|
"displayName": "SwitchBot",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.3.
|
|
5
|
+
"version": "4.3.1-beta.1",
|
|
6
6
|
"description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
|
|
7
7
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
8
8
|
"contributors": [
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@types/source-map-support": "^0.5.10",
|
|
98
98
|
"@typhonjs-typedoc/typedoc-theme-dmt": "^0.3.1",
|
|
99
99
|
"@vitest/coverage-v8": "^3.0.0",
|
|
100
|
-
"eslint": "^9.
|
|
100
|
+
"eslint": "^9.19.0",
|
|
101
101
|
"eslint-plugin-format": "^1.0.1",
|
|
102
102
|
"homebridge": "^1.8.5",
|
|
103
103
|
"homebridge-config-ui-x": "4.68.0",
|