homey-api 3.0.0-rc.2 → 3.0.0-rc.21
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/assets/specifications/AthomCloudAPI.json +16 -0
- package/assets/specifications/HomeyAPIV3Local.json +365 -7
- package/assets/types/homey-api.d.ts +382 -59
- package/assets/types/homey-api.private.d.ts +428 -59
- package/index.browser.js +1 -0
- package/index.js +19 -20
- package/lib/HomeyAPI/HomeyAPI.js +58 -5
- package/lib/HomeyAPI/HomeyAPIV2/ManagerDevices/Capability.js +2 -2
- package/lib/HomeyAPI/HomeyAPIV2/ManagerDevices/Device.js +4 -3
- package/lib/HomeyAPI/HomeyAPIV2/ManagerDevices.js +0 -14
- package/lib/HomeyAPI/HomeyAPIV2/ManagerDrivers/Driver.js +2 -2
- package/lib/HomeyAPI/HomeyAPIV2/ManagerDrivers/PairSession.js +20 -0
- package/lib/HomeyAPI/HomeyAPIV2/ManagerDrivers.js +17 -0
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlow/AdvancedFlow.js +19 -4
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlow/Flow.js +27 -2
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlow/FlowCardAction.js +2 -2
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlow/FlowCardCondition.js +2 -2
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlow/FlowCardTrigger.js +2 -2
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlow.js +37 -14
- package/lib/HomeyAPI/HomeyAPIV2/ManagerFlowToken/FlowToken.js +3 -3
- package/lib/HomeyAPI/HomeyAPIV2/ManagerInsights/Log.js +2 -3
- package/lib/HomeyAPI/HomeyAPIV2/ManagerInsights.js +17 -0
- package/lib/HomeyAPI/HomeyAPIV3/Item.js +14 -1
- package/lib/HomeyAPI/HomeyAPIV3/Manager.js +34 -46
- package/lib/HomeyAPI/HomeyAPIV3/ManagerDevices/Device.js +14 -12
- package/lib/HomeyAPI/HomeyAPIV3/ManagerDevices/DeviceCapability.js +1 -1
- package/lib/HomeyAPI/HomeyAPIV3/ManagerDrivers/PairSession.js +9 -0
- package/lib/HomeyAPI/HomeyAPIV3/ManagerDrivers.js +2 -0
- package/lib/HomeyAPI/HomeyAPIV3/ManagerFlow/AdvancedFlow.js +119 -0
- package/lib/HomeyAPI/HomeyAPIV3/ManagerFlow/Flow.js +103 -0
- package/lib/HomeyAPI/HomeyAPIV3/ManagerFlow/FlowCard.js +8 -0
- package/lib/HomeyAPI/HomeyAPIV3/ManagerFlowToken/FlowToken.js +12 -4
- package/lib/HomeyAPI/HomeyAPIV3/ManagerInsights/Log.js +14 -0
- package/lib/HomeyAPI/HomeyAPIV3.js +8 -8
- package/lib/HomeyAPI/HomeyAPIV3Local/ManagerDevkit.js +32 -0
- package/lib/HomeyAPI/HomeyAPIV3Local.js +6 -0
- package/package.json +2 -1
|
@@ -279,7 +279,34 @@
|
|
|
279
279
|
|
|
280
280
|
|
|
281
281
|
|
|
282
|
-
debug: function,
|
|
282
|
+
debug: function | null,
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
):
|
|
291
|
+
Promise<any>;
|
|
292
|
+
|
|
293
|
+
createLocalAPI(
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
opts: {
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
address: String,
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
token: String,
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
debug: function | null,
|
|
283
310
|
|
|
284
311
|
|
|
285
312
|
},
|
|
@@ -1063,62 +1090,6 @@
|
|
|
1063
1090
|
|
|
1064
1091
|
|
|
1065
1092
|
|
|
1066
|
-
makeCapabilityInstance(
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
capabilityId: string,
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
listener: {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
value: number | boolean | string,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
},
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
):
|
|
1087
|
-
HomeyAPIV2.ManagerDevices.Device.DeviceCapability;
|
|
1088
|
-
|
|
1089
|
-
setCapabilityValue(
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
opts: {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
capabilityId: string,
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
value: number | boolean | string,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
opts: {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
duration: number,
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
},
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
):
|
|
1120
|
-
Promise<void>;
|
|
1121
|
-
|
|
1122
1093
|
}
|
|
1123
1094
|
|
|
1124
1095
|
}
|
|
@@ -2280,6 +2251,24 @@
|
|
|
2280
2251
|
|
|
2281
2252
|
|
|
2282
2253
|
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
export namespace HomeyAPIV3Local.ManagerAlarms {
|
|
2262
|
+
|
|
2263
|
+
export class Alarm {
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
}
|
|
2283
2272
|
|
|
2284
2273
|
|
|
2285
2274
|
|
|
@@ -2457,6 +2446,16 @@
|
|
|
2457
2446
|
|
|
2458
2447
|
export namespace HomeyAPIV3Local.ManagerExperiments {
|
|
2459
2448
|
|
|
2449
|
+
export class ExperimentHomeKit {
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
id: string;
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2460
2459
|
export class ExperimentPowerUser {
|
|
2461
2460
|
|
|
2462
2461
|
|
|
@@ -10337,6 +10336,150 @@
|
|
|
10337
10336
|
|
|
10338
10337
|
|
|
10339
10338
|
|
|
10339
|
+
isConnected(
|
|
10340
|
+
|
|
10341
|
+
):
|
|
10342
|
+
Boolean;
|
|
10343
|
+
|
|
10344
|
+
connect(
|
|
10345
|
+
|
|
10346
|
+
):
|
|
10347
|
+
Promise<void>;
|
|
10348
|
+
|
|
10349
|
+
disconnect(
|
|
10350
|
+
|
|
10351
|
+
):
|
|
10352
|
+
Promise<void>;
|
|
10353
|
+
|
|
10354
|
+
}
|
|
10355
|
+
|
|
10356
|
+
export class ManagerAlarms extends HomeyAPIV3Local.Manager {
|
|
10357
|
+
|
|
10358
|
+
|
|
10359
|
+
|
|
10360
|
+
|
|
10361
|
+
|
|
10362
|
+
getAlarms(
|
|
10363
|
+
|
|
10364
|
+
):
|
|
10365
|
+
Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
|
|
10366
|
+
|
|
10367
|
+
getAlarm(
|
|
10368
|
+
|
|
10369
|
+
|
|
10370
|
+
|
|
10371
|
+
|
|
10372
|
+
opts: {
|
|
10373
|
+
|
|
10374
|
+
|
|
10375
|
+
id: string,
|
|
10376
|
+
|
|
10377
|
+
|
|
10378
|
+
},
|
|
10379
|
+
|
|
10380
|
+
|
|
10381
|
+
|
|
10382
|
+
|
|
10383
|
+
):
|
|
10384
|
+
Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
|
|
10385
|
+
|
|
10386
|
+
createAlarm(
|
|
10387
|
+
|
|
10388
|
+
|
|
10389
|
+
|
|
10390
|
+
|
|
10391
|
+
opts: {
|
|
10392
|
+
|
|
10393
|
+
|
|
10394
|
+
alarm: {
|
|
10395
|
+
|
|
10396
|
+
|
|
10397
|
+
name: string,
|
|
10398
|
+
|
|
10399
|
+
|
|
10400
|
+
|
|
10401
|
+
time: string,
|
|
10402
|
+
|
|
10403
|
+
|
|
10404
|
+
|
|
10405
|
+
enabled: boolean,
|
|
10406
|
+
|
|
10407
|
+
|
|
10408
|
+
|
|
10409
|
+
repetition: object,
|
|
10410
|
+
|
|
10411
|
+
|
|
10412
|
+
},
|
|
10413
|
+
|
|
10414
|
+
|
|
10415
|
+
},
|
|
10416
|
+
|
|
10417
|
+
|
|
10418
|
+
|
|
10419
|
+
|
|
10420
|
+
):
|
|
10421
|
+
Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
|
|
10422
|
+
|
|
10423
|
+
updateAlarm(
|
|
10424
|
+
|
|
10425
|
+
|
|
10426
|
+
|
|
10427
|
+
|
|
10428
|
+
opts: {
|
|
10429
|
+
|
|
10430
|
+
|
|
10431
|
+
id: string,
|
|
10432
|
+
|
|
10433
|
+
|
|
10434
|
+
|
|
10435
|
+
alarm: {
|
|
10436
|
+
|
|
10437
|
+
|
|
10438
|
+
name: string,
|
|
10439
|
+
|
|
10440
|
+
|
|
10441
|
+
|
|
10442
|
+
time: string,
|
|
10443
|
+
|
|
10444
|
+
|
|
10445
|
+
|
|
10446
|
+
enabled: boolean,
|
|
10447
|
+
|
|
10448
|
+
|
|
10449
|
+
|
|
10450
|
+
repetition: object,
|
|
10451
|
+
|
|
10452
|
+
|
|
10453
|
+
},
|
|
10454
|
+
|
|
10455
|
+
|
|
10456
|
+
},
|
|
10457
|
+
|
|
10458
|
+
|
|
10459
|
+
|
|
10460
|
+
|
|
10461
|
+
):
|
|
10462
|
+
Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
|
|
10463
|
+
|
|
10464
|
+
deleteAlarm(
|
|
10465
|
+
|
|
10466
|
+
|
|
10467
|
+
|
|
10468
|
+
|
|
10469
|
+
opts: {
|
|
10470
|
+
|
|
10471
|
+
|
|
10472
|
+
id: string,
|
|
10473
|
+
|
|
10474
|
+
|
|
10475
|
+
},
|
|
10476
|
+
|
|
10477
|
+
|
|
10478
|
+
|
|
10479
|
+
|
|
10480
|
+
):
|
|
10481
|
+
Promise<any>;
|
|
10482
|
+
|
|
10340
10483
|
isConnected(
|
|
10341
10484
|
|
|
10342
10485
|
):
|
|
@@ -10665,6 +10808,25 @@
|
|
|
10665
10808
|
|
|
10666
10809
|
|
|
10667
10810
|
|
|
10811
|
+
opts: {
|
|
10812
|
+
|
|
10813
|
+
|
|
10814
|
+
id: string,
|
|
10815
|
+
|
|
10816
|
+
|
|
10817
|
+
},
|
|
10818
|
+
|
|
10819
|
+
|
|
10820
|
+
|
|
10821
|
+
|
|
10822
|
+
):
|
|
10823
|
+
Promise<any>;
|
|
10824
|
+
|
|
10825
|
+
getAppUsage(
|
|
10826
|
+
|
|
10827
|
+
|
|
10828
|
+
|
|
10829
|
+
|
|
10668
10830
|
opts: {
|
|
10669
10831
|
|
|
10670
10832
|
|
|
@@ -11539,7 +11701,7 @@
|
|
|
11539
11701
|
|
|
11540
11702
|
|
|
11541
11703
|
|
|
11542
|
-
data:
|
|
11704
|
+
data: *,
|
|
11543
11705
|
|
|
11544
11706
|
|
|
11545
11707
|
},
|
|
@@ -11566,7 +11728,7 @@
|
|
|
11566
11728
|
|
|
11567
11729
|
|
|
11568
11730
|
|
|
11569
|
-
data:
|
|
11731
|
+
data: *,
|
|
11570
11732
|
|
|
11571
11733
|
|
|
11572
11734
|
},
|
|
@@ -12474,6 +12636,44 @@
|
|
|
12474
12636
|
):
|
|
12475
12637
|
Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
|
|
12476
12638
|
|
|
12639
|
+
getFlowToken(
|
|
12640
|
+
|
|
12641
|
+
|
|
12642
|
+
|
|
12643
|
+
|
|
12644
|
+
opts: {
|
|
12645
|
+
|
|
12646
|
+
|
|
12647
|
+
id: string,
|
|
12648
|
+
|
|
12649
|
+
|
|
12650
|
+
},
|
|
12651
|
+
|
|
12652
|
+
|
|
12653
|
+
|
|
12654
|
+
|
|
12655
|
+
):
|
|
12656
|
+
Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
|
|
12657
|
+
|
|
12658
|
+
getFlowTokenValue(
|
|
12659
|
+
|
|
12660
|
+
|
|
12661
|
+
|
|
12662
|
+
|
|
12663
|
+
opts: {
|
|
12664
|
+
|
|
12665
|
+
|
|
12666
|
+
id: string,
|
|
12667
|
+
|
|
12668
|
+
|
|
12669
|
+
},
|
|
12670
|
+
|
|
12671
|
+
|
|
12672
|
+
|
|
12673
|
+
|
|
12674
|
+
):
|
|
12675
|
+
Promise<any>;
|
|
12676
|
+
|
|
12477
12677
|
isConnected(
|
|
12478
12678
|
|
|
12479
12679
|
):
|
|
@@ -12984,6 +13184,25 @@
|
|
|
12984
13184
|
):
|
|
12985
13185
|
Promise<any>;
|
|
12986
13186
|
|
|
13187
|
+
getVariable(
|
|
13188
|
+
|
|
13189
|
+
|
|
13190
|
+
|
|
13191
|
+
|
|
13192
|
+
opts: {
|
|
13193
|
+
|
|
13194
|
+
|
|
13195
|
+
id: string,
|
|
13196
|
+
|
|
13197
|
+
|
|
13198
|
+
},
|
|
13199
|
+
|
|
13200
|
+
|
|
13201
|
+
|
|
13202
|
+
|
|
13203
|
+
):
|
|
13204
|
+
Promise<HomeyAPIV3Local.ManagerLogic.Variable>;
|
|
13205
|
+
|
|
12987
13206
|
getVariables(
|
|
12988
13207
|
|
|
12989
13208
|
):
|
|
@@ -13329,6 +13548,25 @@
|
|
|
13329
13548
|
|
|
13330
13549
|
|
|
13331
13550
|
|
|
13551
|
+
):
|
|
13552
|
+
Promise<any>;
|
|
13553
|
+
|
|
13554
|
+
getPresent(
|
|
13555
|
+
|
|
13556
|
+
|
|
13557
|
+
|
|
13558
|
+
|
|
13559
|
+
opts: {
|
|
13560
|
+
|
|
13561
|
+
|
|
13562
|
+
id: string,
|
|
13563
|
+
|
|
13564
|
+
|
|
13565
|
+
},
|
|
13566
|
+
|
|
13567
|
+
|
|
13568
|
+
|
|
13569
|
+
|
|
13332
13570
|
):
|
|
13333
13571
|
Promise<any>;
|
|
13334
13572
|
|
|
@@ -13381,6 +13619,25 @@
|
|
|
13381
13619
|
|
|
13382
13620
|
|
|
13383
13621
|
|
|
13622
|
+
):
|
|
13623
|
+
Promise<any>;
|
|
13624
|
+
|
|
13625
|
+
getAsleep(
|
|
13626
|
+
|
|
13627
|
+
|
|
13628
|
+
|
|
13629
|
+
|
|
13630
|
+
opts: {
|
|
13631
|
+
|
|
13632
|
+
|
|
13633
|
+
id: string,
|
|
13634
|
+
|
|
13635
|
+
|
|
13636
|
+
},
|
|
13637
|
+
|
|
13638
|
+
|
|
13639
|
+
|
|
13640
|
+
|
|
13384
13641
|
):
|
|
13385
13642
|
Promise<any>;
|
|
13386
13643
|
|
|
@@ -13791,6 +14048,25 @@
|
|
|
13791
14048
|
|
|
13792
14049
|
rebootOTA(
|
|
13793
14050
|
|
|
14051
|
+
):
|
|
14052
|
+
Promise<any>;
|
|
14053
|
+
|
|
14054
|
+
setDebug(
|
|
14055
|
+
|
|
14056
|
+
|
|
14057
|
+
|
|
14058
|
+
|
|
14059
|
+
opts: {
|
|
14060
|
+
|
|
14061
|
+
|
|
14062
|
+
namespace: string,
|
|
14063
|
+
|
|
14064
|
+
|
|
14065
|
+
},
|
|
14066
|
+
|
|
14067
|
+
|
|
14068
|
+
|
|
14069
|
+
|
|
13794
14070
|
):
|
|
13795
14071
|
Promise<any>;
|
|
13796
14072
|
|
|
@@ -14396,6 +14672,25 @@
|
|
|
14396
14672
|
|
|
14397
14673
|
getZones(
|
|
14398
14674
|
|
|
14675
|
+
):
|
|
14676
|
+
Promise<HomeyAPIV3Local.ManagerZones.Zone>;
|
|
14677
|
+
|
|
14678
|
+
getZone(
|
|
14679
|
+
|
|
14680
|
+
|
|
14681
|
+
|
|
14682
|
+
|
|
14683
|
+
opts: {
|
|
14684
|
+
|
|
14685
|
+
|
|
14686
|
+
id: string,
|
|
14687
|
+
|
|
14688
|
+
|
|
14689
|
+
},
|
|
14690
|
+
|
|
14691
|
+
|
|
14692
|
+
|
|
14693
|
+
|
|
14399
14694
|
):
|
|
14400
14695
|
Promise<HomeyAPIV3Local.ManagerZones.Zone>;
|
|
14401
14696
|
|
|
@@ -14536,6 +14831,30 @@
|
|
|
14536
14831
|
|
|
14537
14832
|
|
|
14538
14833
|
|
|
14834
|
+
):
|
|
14835
|
+
Promise<any>;
|
|
14836
|
+
|
|
14837
|
+
getLog(
|
|
14838
|
+
|
|
14839
|
+
):
|
|
14840
|
+
Promise<any>;
|
|
14841
|
+
|
|
14842
|
+
setLogEnabled(
|
|
14843
|
+
|
|
14844
|
+
|
|
14845
|
+
|
|
14846
|
+
|
|
14847
|
+
opts: {
|
|
14848
|
+
|
|
14849
|
+
|
|
14850
|
+
enabled: boolean,
|
|
14851
|
+
|
|
14852
|
+
|
|
14853
|
+
},
|
|
14854
|
+
|
|
14855
|
+
|
|
14856
|
+
|
|
14857
|
+
|
|
14539
14858
|
):
|
|
14540
14859
|
Promise<any>;
|
|
14541
14860
|
|
|
@@ -14573,6 +14892,10 @@
|
|
|
14573
14892
|
|
|
14574
14893
|
|
|
14575
14894
|
|
|
14895
|
+
|
|
14896
|
+
|
|
14897
|
+
|
|
14898
|
+
|
|
14576
14899
|
|
|
14577
14900
|
|
|
14578
14901
|
|