homey-api 1.10.19 → 1.10.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.
@@ -863,6 +863,22 @@
863
863
  }
864
864
  }
865
865
  },
866
+ "activateHomey": {
867
+ "path": "/homey/{id}/activate",
868
+ "method": "post",
869
+ "private": true,
870
+ "parameters": {
871
+ "id": {
872
+ "in": "path",
873
+ "type": "string",
874
+ "required": true
875
+ },
876
+ "userId": {
877
+ "type": "string",
878
+ "in": "body"
879
+ }
880
+ }
881
+ },
866
882
  "addHomeyLicense": {
867
883
  "path": "/homey/{homeyId}/license/{license}",
868
884
  "method": "post",
@@ -483,6 +483,21 @@
483
483
  "required": true
484
484
  }
485
485
  }
486
+ },
487
+ "getAppUsage": {
488
+ "method": "get",
489
+ "path": "/app/:id/usage",
490
+ "private": false,
491
+ "scopes": [
492
+ "homey.app.readonly"
493
+ ],
494
+ "parameters": {
495
+ "id": {
496
+ "in": "path",
497
+ "type": "string",
498
+ "required": true
499
+ }
500
+ }
486
501
  }
487
502
  }
488
503
  },
@@ -590,6 +605,25 @@
590
605
  "homey.system.readonly"
591
606
  ],
592
607
  "parameters": {}
608
+ },
609
+ "runCommand": {
610
+ "method": "post",
611
+ "path": "/command",
612
+ "private": false,
613
+ "scopes": [
614
+ "homey.system"
615
+ ],
616
+ "parameters": {
617
+ "command": {
618
+ "in": "body",
619
+ "type": "string",
620
+ "required": true
621
+ },
622
+ "opts": {
623
+ "in": "body",
624
+ "type": "object"
625
+ }
626
+ }
593
627
  }
594
628
  }
595
629
  },
@@ -674,6 +708,25 @@
674
708
  "required": true
675
709
  }
676
710
  }
711
+ },
712
+ "setDebugLogging": {
713
+ "method": "put",
714
+ "path": "/debug",
715
+ "private": true,
716
+ "scopes": [
717
+ "homey.system"
718
+ ],
719
+ "parameters": {
720
+ "peripheral": {
721
+ "in": "body",
722
+ "type": "string"
723
+ },
724
+ "enabled": {
725
+ "in": "body",
726
+ "type": "boolean",
727
+ "required": true
728
+ }
729
+ }
677
730
  }
678
731
  }
679
732
  },
@@ -1480,8 +1533,7 @@
1480
1533
  "required": true
1481
1534
  },
1482
1535
  "data": {
1483
- "in": "body",
1484
- "type": "object"
1536
+ "in": "body"
1485
1537
  }
1486
1538
  }
1487
1539
  },
@@ -1504,8 +1556,7 @@
1504
1556
  "required": true
1505
1557
  },
1506
1558
  "data": {
1507
- "in": "body",
1508
- "type": "object"
1559
+ "in": "body"
1509
1560
  }
1510
1561
  }
1511
1562
  },
@@ -1627,6 +1678,17 @@
1627
1678
  }
1628
1679
  }
1629
1680
  },
1681
+ "ExperimentHomeKit": {
1682
+ "id": "experiment-homekit",
1683
+ "schema": {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "id": {
1687
+ "type": "string"
1688
+ }
1689
+ }
1690
+ }
1691
+ },
1630
1692
  "ExperimentPowerUser": {
1631
1693
  "id": "experiment-poweruser",
1632
1694
  "schema": {
@@ -2169,7 +2231,7 @@
2169
2231
  "path": "/flowcardcondition/:uri/:id/run",
2170
2232
  "private": false,
2171
2233
  "scopes": [
2172
- "homey.flow.start"
2234
+ "homey.flow"
2173
2235
  ],
2174
2236
  "parameters": {
2175
2237
  "id": {
@@ -2242,7 +2304,7 @@
2242
2304
  "path": "/flowcardaction/:uri/:id/run",
2243
2305
  "private": false,
2244
2306
  "scopes": [
2245
- "homey.flow.start"
2307
+ "homey.flow"
2246
2308
  ],
2247
2309
  "parameters": {
2248
2310
  "id": {
@@ -2463,6 +2525,40 @@
2463
2525
  "item": "FlowToken"
2464
2526
  },
2465
2527
  "parameters": {}
2528
+ },
2529
+ "getFlowToken": {
2530
+ "method": "get",
2531
+ "path": "/flowtoken/:id",
2532
+ "private": false,
2533
+ "scopes": [
2534
+ "homey.flow.readonly"
2535
+ ],
2536
+ "crud": {
2537
+ "type": "getOne",
2538
+ "item": "FlowToken"
2539
+ },
2540
+ "parameters": {
2541
+ "id": {
2542
+ "in": "path",
2543
+ "type": "string",
2544
+ "required": true
2545
+ }
2546
+ }
2547
+ },
2548
+ "getFlowTokenValue": {
2549
+ "method": "get",
2550
+ "path": "/flowtoken/:id/value",
2551
+ "private": false,
2552
+ "scopes": [
2553
+ "homey.flow.readonly"
2554
+ ],
2555
+ "parameters": {
2556
+ "id": {
2557
+ "in": "path",
2558
+ "type": "string",
2559
+ "required": true
2560
+ }
2561
+ }
2466
2562
  }
2467
2563
  }
2468
2564
  },
@@ -2959,6 +3055,25 @@
2959
3055
  ],
2960
3056
  "parameters": {}
2961
3057
  },
3058
+ "getVariable": {
3059
+ "method": "get",
3060
+ "path": "/variable/:id",
3061
+ "private": false,
3062
+ "scopes": [
3063
+ "homey.logic.readonly"
3064
+ ],
3065
+ "crud": {
3066
+ "type": "getOne",
3067
+ "item": "Variable"
3068
+ },
3069
+ "parameters": {
3070
+ "id": {
3071
+ "in": "path",
3072
+ "type": "string",
3073
+ "required": true
3074
+ }
3075
+ }
3076
+ },
2962
3077
  "getVariables": {
2963
3078
  "method": "get",
2964
3079
  "path": "/variable",
@@ -3291,6 +3406,21 @@
3291
3406
  }
3292
3407
  }
3293
3408
  },
3409
+ "getPresent": {
3410
+ "method": "get",
3411
+ "path": "/:id/present",
3412
+ "private": false,
3413
+ "scopes": [
3414
+ "homey.presence.readonly"
3415
+ ],
3416
+ "parameters": {
3417
+ "id": {
3418
+ "in": "path",
3419
+ "type": "string",
3420
+ "required": true
3421
+ }
3422
+ }
3423
+ },
3294
3424
  "setAsleepMe": {
3295
3425
  "method": "put",
3296
3426
  "path": "/me/asleep",
@@ -3332,6 +3462,21 @@
3332
3462
  "type": "boolean"
3333
3463
  }
3334
3464
  }
3465
+ },
3466
+ "getAsleep": {
3467
+ "method": "get",
3468
+ "path": "/:id/asleep",
3469
+ "private": false,
3470
+ "scopes": [
3471
+ "homey.presence.readonly"
3472
+ ],
3473
+ "parameters": {
3474
+ "id": {
3475
+ "in": "path",
3476
+ "type": "string",
3477
+ "required": true
3478
+ }
3479
+ }
3335
3480
  }
3336
3481
  }
3337
3482
  },
@@ -3715,6 +3860,21 @@
3715
3860
  "homey.system"
3716
3861
  ],
3717
3862
  "parameters": {}
3863
+ },
3864
+ "setDebug": {
3865
+ "method": "put",
3866
+ "path": "/debug",
3867
+ "private": false,
3868
+ "scopes": [
3869
+ "homey.system"
3870
+ ],
3871
+ "parameters": {
3872
+ "namespace": {
3873
+ "in": "body",
3874
+ "type": "string",
3875
+ "required": true
3876
+ }
3877
+ }
3718
3878
  }
3719
3879
  }
3720
3880
  },
@@ -4415,13 +4575,34 @@
4415
4575
  "method": "get",
4416
4576
  "path": "/zone",
4417
4577
  "private": false,
4418
- "scopes": [],
4578
+ "scopes": [
4579
+ "homey.zone.readonly"
4580
+ ],
4419
4581
  "crud": {
4420
4582
  "type": "getAll",
4421
4583
  "item": "Zone"
4422
4584
  },
4423
4585
  "parameters": {}
4424
4586
  },
4587
+ "getZone": {
4588
+ "method": "get",
4589
+ "path": "/zone/:id",
4590
+ "private": false,
4591
+ "scopes": [
4592
+ "homey.zone.readonly"
4593
+ ],
4594
+ "crud": {
4595
+ "type": "getOne",
4596
+ "item": "Zone"
4597
+ },
4598
+ "parameters": {
4599
+ "id": {
4600
+ "in": "path",
4601
+ "type": "string",
4602
+ "required": true
4603
+ }
4604
+ }
4605
+ },
4425
4606
  "createZone": {
4426
4607
  "method": "post",
4427
4608
  "path": "/zone",
@@ -2312,6 +2312,8 @@
2312
2312
 
2313
2313
 
2314
2314
 
2315
+
2316
+
2315
2317
 
2316
2318
 
2317
2319
 
@@ -2503,6 +2505,16 @@
2503
2505
 
2504
2506
  export namespace HomeyAPIV3Local.ManagerExperiments {
2505
2507
 
2508
+ export class ExperimentHomeKit {
2509
+
2510
+
2511
+
2512
+ id: string;
2513
+
2514
+
2515
+
2516
+ }
2517
+
2506
2518
  export class ExperimentPowerUser {
2507
2519
 
2508
2520
 
@@ -11366,6 +11378,25 @@
11366
11378
 
11367
11379
 
11368
11380
 
11381
+ opts: {
11382
+
11383
+
11384
+ id: string,
11385
+
11386
+
11387
+ },
11388
+
11389
+
11390
+
11391
+
11392
+ ):
11393
+ Promise<any>;
11394
+
11395
+ getAppUsage(
11396
+
11397
+
11398
+
11399
+
11369
11400
  opts: {
11370
11401
 
11371
11402
 
@@ -11524,6 +11555,29 @@
11524
11555
 
11525
11556
  getState(
11526
11557
 
11558
+ ):
11559
+ Promise<any>;
11560
+
11561
+ runCommand(
11562
+
11563
+
11564
+
11565
+
11566
+ opts: {
11567
+
11568
+
11569
+ command: string,
11570
+
11571
+
11572
+
11573
+ opts: object,
11574
+
11575
+
11576
+ },
11577
+
11578
+
11579
+
11580
+
11527
11581
  ):
11528
11582
  Promise<any>;
11529
11583
 
@@ -12217,7 +12271,7 @@
12217
12271
 
12218
12272
 
12219
12273
 
12220
- data: object,
12274
+ data: *,
12221
12275
 
12222
12276
 
12223
12277
  },
@@ -12244,7 +12298,7 @@
12244
12298
 
12245
12299
 
12246
12300
 
12247
- data: object,
12301
+ data: *,
12248
12302
 
12249
12303
 
12250
12304
  },
@@ -13152,6 +13206,44 @@
13152
13206
  ):
13153
13207
  Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
13154
13208
 
13209
+ getFlowToken(
13210
+
13211
+
13212
+
13213
+
13214
+ opts: {
13215
+
13216
+
13217
+ id: string,
13218
+
13219
+
13220
+ },
13221
+
13222
+
13223
+
13224
+
13225
+ ):
13226
+ Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
13227
+
13228
+ getFlowTokenValue(
13229
+
13230
+
13231
+
13232
+
13233
+ opts: {
13234
+
13235
+
13236
+ id: string,
13237
+
13238
+
13239
+ },
13240
+
13241
+
13242
+
13243
+
13244
+ ):
13245
+ Promise<any>;
13246
+
13155
13247
  isConnected(
13156
13248
 
13157
13249
  ):
@@ -13662,6 +13754,25 @@
13662
13754
  ):
13663
13755
  Promise<any>;
13664
13756
 
13757
+ getVariable(
13758
+
13759
+
13760
+
13761
+
13762
+ opts: {
13763
+
13764
+
13765
+ id: string,
13766
+
13767
+
13768
+ },
13769
+
13770
+
13771
+
13772
+
13773
+ ):
13774
+ Promise<HomeyAPIV3Local.ManagerLogic.Variable>;
13775
+
13665
13776
  getVariables(
13666
13777
 
13667
13778
  ):
@@ -14007,6 +14118,25 @@
14007
14118
 
14008
14119
 
14009
14120
 
14121
+ ):
14122
+ Promise<any>;
14123
+
14124
+ getPresent(
14125
+
14126
+
14127
+
14128
+
14129
+ opts: {
14130
+
14131
+
14132
+ id: string,
14133
+
14134
+
14135
+ },
14136
+
14137
+
14138
+
14139
+
14010
14140
  ):
14011
14141
  Promise<any>;
14012
14142
 
@@ -14059,6 +14189,25 @@
14059
14189
 
14060
14190
 
14061
14191
 
14192
+ ):
14193
+ Promise<any>;
14194
+
14195
+ getAsleep(
14196
+
14197
+
14198
+
14199
+
14200
+ opts: {
14201
+
14202
+
14203
+ id: string,
14204
+
14205
+
14206
+ },
14207
+
14208
+
14209
+
14210
+
14062
14211
  ):
14063
14212
  Promise<any>;
14064
14213
 
@@ -14469,6 +14618,25 @@
14469
14618
 
14470
14619
  rebootOTA(
14471
14620
 
14621
+ ):
14622
+ Promise<any>;
14623
+
14624
+ setDebug(
14625
+
14626
+
14627
+
14628
+
14629
+ opts: {
14630
+
14631
+
14632
+ namespace: string,
14633
+
14634
+
14635
+ },
14636
+
14637
+
14638
+
14639
+
14472
14640
  ):
14473
14641
  Promise<any>;
14474
14642
 
@@ -15074,6 +15242,25 @@
15074
15242
 
15075
15243
  getZones(
15076
15244
 
15245
+ ):
15246
+ Promise<HomeyAPIV3Local.ManagerZones.Zone>;
15247
+
15248
+ getZone(
15249
+
15250
+
15251
+
15252
+
15253
+ opts: {
15254
+
15255
+
15256
+ id: string,
15257
+
15258
+
15259
+ },
15260
+
15261
+
15262
+
15263
+
15077
15264
  ):
15078
15265
  Promise<HomeyAPIV3Local.ManagerZones.Zone>;
15079
15266
 
@@ -2616,6 +2616,29 @@
2616
2616
 
2617
2617
 
2618
2618
 
2619
+ ):
2620
+ Promise<any>;
2621
+
2622
+ activateHomey(
2623
+
2624
+
2625
+
2626
+
2627
+ opts: {
2628
+
2629
+
2630
+ id: string,
2631
+
2632
+
2633
+
2634
+ userId: string,
2635
+
2636
+
2637
+ },
2638
+
2639
+
2640
+
2641
+
2619
2642
  ):
2620
2643
  Promise<any>;
2621
2644
 
@@ -7702,6 +7725,8 @@
7702
7725
 
7703
7726
 
7704
7727
 
7728
+
7729
+
7705
7730
 
7706
7731
 
7707
7732
 
@@ -7913,6 +7938,16 @@
7913
7938
 
7914
7939
  export namespace HomeyAPIV3Local.ManagerExperiments {
7915
7940
 
7941
+ export class ExperimentHomeKit {
7942
+
7943
+
7944
+
7945
+ id: string;
7946
+
7947
+
7948
+
7949
+ }
7950
+
7916
7951
  export class ExperimentPowerUser {
7917
7952
 
7918
7953
 
@@ -17323,6 +17358,25 @@
17323
17358
 
17324
17359
 
17325
17360
 
17361
+ opts: {
17362
+
17363
+
17364
+ id: string,
17365
+
17366
+
17367
+ },
17368
+
17369
+
17370
+
17371
+
17372
+ ):
17373
+ Promise<any>;
17374
+
17375
+ getAppUsage(
17376
+
17377
+
17378
+
17379
+
17326
17380
  opts: {
17327
17381
 
17328
17382
 
@@ -17481,6 +17535,29 @@
17481
17535
 
17482
17536
  getState(
17483
17537
 
17538
+ ):
17539
+ Promise<any>;
17540
+
17541
+ runCommand(
17542
+
17543
+
17544
+
17545
+
17546
+ opts: {
17547
+
17548
+
17549
+ command: string,
17550
+
17551
+
17552
+
17553
+ opts: object,
17554
+
17555
+
17556
+ },
17557
+
17558
+
17559
+
17560
+
17484
17561
  ):
17485
17562
  Promise<any>;
17486
17563
 
@@ -17589,6 +17666,29 @@
17589
17666
 
17590
17667
 
17591
17668
 
17669
+ ):
17670
+ Promise<any>;
17671
+
17672
+ setDebugLogging(
17673
+
17674
+
17675
+
17676
+
17677
+ opts: {
17678
+
17679
+
17680
+ peripheral: string,
17681
+
17682
+
17683
+
17684
+ enabled: boolean,
17685
+
17686
+
17687
+ },
17688
+
17689
+
17690
+
17691
+
17592
17692
  ):
17593
17693
  Promise<any>;
17594
17694
 
@@ -18315,7 +18415,7 @@
18315
18415
 
18316
18416
 
18317
18417
 
18318
- data: object,
18418
+ data: *,
18319
18419
 
18320
18420
 
18321
18421
  },
@@ -18342,7 +18442,7 @@
18342
18442
 
18343
18443
 
18344
18444
 
18345
- data: object,
18445
+ data: *,
18346
18446
 
18347
18447
 
18348
18448
  },
@@ -19250,6 +19350,44 @@
19250
19350
  ):
19251
19351
  Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
19252
19352
 
19353
+ getFlowToken(
19354
+
19355
+
19356
+
19357
+
19358
+ opts: {
19359
+
19360
+
19361
+ id: string,
19362
+
19363
+
19364
+ },
19365
+
19366
+
19367
+
19368
+
19369
+ ):
19370
+ Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
19371
+
19372
+ getFlowTokenValue(
19373
+
19374
+
19375
+
19376
+
19377
+ opts: {
19378
+
19379
+
19380
+ id: string,
19381
+
19382
+
19383
+ },
19384
+
19385
+
19386
+
19387
+
19388
+ ):
19389
+ Promise<any>;
19390
+
19253
19391
  isConnected(
19254
19392
 
19255
19393
  ):
@@ -19760,6 +19898,25 @@
19760
19898
  ):
19761
19899
  Promise<any>;
19762
19900
 
19901
+ getVariable(
19902
+
19903
+
19904
+
19905
+
19906
+ opts: {
19907
+
19908
+
19909
+ id: string,
19910
+
19911
+
19912
+ },
19913
+
19914
+
19915
+
19916
+
19917
+ ):
19918
+ Promise<HomeyAPIV3Local.ManagerLogic.Variable>;
19919
+
19763
19920
  getVariables(
19764
19921
 
19765
19922
  ):
@@ -20105,6 +20262,25 @@
20105
20262
 
20106
20263
 
20107
20264
 
20265
+ ):
20266
+ Promise<any>;
20267
+
20268
+ getPresent(
20269
+
20270
+
20271
+
20272
+
20273
+ opts: {
20274
+
20275
+
20276
+ id: string,
20277
+
20278
+
20279
+ },
20280
+
20281
+
20282
+
20283
+
20108
20284
  ):
20109
20285
  Promise<any>;
20110
20286
 
@@ -20157,6 +20333,25 @@
20157
20333
 
20158
20334
 
20159
20335
 
20336
+ ):
20337
+ Promise<any>;
20338
+
20339
+ getAsleep(
20340
+
20341
+
20342
+
20343
+
20344
+ opts: {
20345
+
20346
+
20347
+ id: string,
20348
+
20349
+
20350
+ },
20351
+
20352
+
20353
+
20354
+
20160
20355
  ):
20161
20356
  Promise<any>;
20162
20357
 
@@ -20567,6 +20762,25 @@
20567
20762
 
20568
20763
  rebootOTA(
20569
20764
 
20765
+ ):
20766
+ Promise<any>;
20767
+
20768
+ setDebug(
20769
+
20770
+
20771
+
20772
+
20773
+ opts: {
20774
+
20775
+
20776
+ namespace: string,
20777
+
20778
+
20779
+ },
20780
+
20781
+
20782
+
20783
+
20570
20784
  ):
20571
20785
  Promise<any>;
20572
20786
 
@@ -21177,6 +21391,25 @@
21177
21391
 
21178
21392
  getZones(
21179
21393
 
21394
+ ):
21395
+ Promise<HomeyAPIV3Local.ManagerZones.Zone>;
21396
+
21397
+ getZone(
21398
+
21399
+
21400
+
21401
+
21402
+ opts: {
21403
+
21404
+
21405
+ id: string,
21406
+
21407
+
21408
+ },
21409
+
21410
+
21411
+
21412
+
21180
21413
  ):
21181
21414
  Promise<HomeyAPIV3Local.ManagerZones.Zone>;
21182
21415
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.10.19",
3
+ "version": "1.10.21",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [