homey-api 1.5.20 → 1.5.23

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.
@@ -61,6 +61,30 @@
61
61
 
62
62
 
63
63
 
64
+ }
65
+
66
+ export class APIErrorHomeyOffline extends APIError {
67
+
68
+
69
+
70
+ message: string;
71
+
72
+ statusCode: number;
73
+
74
+
75
+
76
+ }
77
+
78
+ export class APIErrorTimeout extends APIError {
79
+
80
+
81
+
82
+ message: string;
83
+
84
+ statusCode: number;
85
+
86
+
87
+
64
88
  }
65
89
 
66
90
  export class AthomAppsAPI {
@@ -5763,6 +5787,8 @@
5763
5787
 
5764
5788
  value: boolean | number | string | null;
5765
5789
 
5790
+ lastChanged: Date | null;
5791
+
5766
5792
 
5767
5793
 
5768
5794
  destroy(
@@ -7317,18 +7343,6 @@
7317
7343
 
7318
7344
  export namespace HomeyAPI {
7319
7345
 
7320
- export class APIErrorTimeout extends APIError {
7321
-
7322
-
7323
-
7324
- message: string;
7325
-
7326
- statusCode: number;
7327
-
7328
-
7329
-
7330
- }
7331
-
7332
7346
  export class HomeyAPIError extends APIError {
7333
7347
 
7334
7348
 
@@ -7343,18 +7357,6 @@
7343
7357
 
7344
7358
 
7345
7359
 
7346
- }
7347
-
7348
- export class HomeyOfflineError extends APIError {
7349
-
7350
-
7351
-
7352
- message: string;
7353
-
7354
- statusCode: number;
7355
-
7356
-
7357
-
7358
7360
  }
7359
7361
 
7360
7362
  }
@@ -7842,7 +7844,7 @@
7842
7844
  opts: {
7843
7845
 
7844
7846
 
7845
- dashboard: string,
7847
+ dashboard: *,
7846
7848
 
7847
7849
 
7848
7850
  },
@@ -7865,7 +7867,7 @@
7865
7867
 
7866
7868
 
7867
7869
 
7868
- dashboard: string,
7870
+ dashboard: *,
7869
7871
 
7870
7872
 
7871
7873
  },
@@ -8001,7 +8003,7 @@
8001
8003
 
8002
8004
 
8003
8005
 
8004
- settings: string,
8006
+ settings: *,
8005
8007
 
8006
8008
 
8007
8009
  },
@@ -8029,7 +8031,7 @@
8029
8031
 
8030
8032
 
8031
8033
 
8032
- device: string,
8034
+ device: *,
8033
8035
 
8034
8036
 
8035
8037
  },
@@ -8098,7 +8100,7 @@
8098
8100
 
8099
8101
 
8100
8102
 
8101
- value: string,
8103
+ value: *,
8102
8104
 
8103
8105
 
8104
8106
 
@@ -8247,7 +8249,7 @@
8247
8249
  opts: {
8248
8250
 
8249
8251
 
8250
- pairsession: string,
8252
+ pairsession: *,
8251
8253
 
8252
8254
 
8253
8255
  },
@@ -8362,7 +8364,7 @@
8362
8364
 
8363
8365
 
8364
8366
 
8365
- device: string,
8367
+ device: *,
8366
8368
 
8367
8369
 
8368
8370
  },
@@ -8385,7 +8387,7 @@
8385
8387
 
8386
8388
 
8387
8389
 
8388
- device: string,
8390
+ device: *,
8389
8391
 
8390
8392
 
8391
8393
  },
@@ -8522,7 +8524,7 @@
8522
8524
  opts: {
8523
8525
 
8524
8526
 
8525
- flow: string,
8527
+ flow: *,
8526
8528
 
8527
8529
 
8528
8530
  },
@@ -8545,7 +8547,7 @@
8545
8547
 
8546
8548
 
8547
8549
 
8548
- flow: string,
8550
+ flow: *,
8549
8551
 
8550
8552
 
8551
8553
  },
@@ -8583,7 +8585,7 @@
8583
8585
  opts: {
8584
8586
 
8585
8587
 
8586
- flow: string,
8588
+ flow: *,
8587
8589
 
8588
8590
 
8589
8591
 
@@ -8672,7 +8674,7 @@
8672
8674
  opts: {
8673
8675
 
8674
8676
 
8675
- flowfolder: string,
8677
+ flowfolder: *,
8676
8678
 
8677
8679
 
8678
8680
  },
@@ -8695,7 +8697,7 @@
8695
8697
 
8696
8698
 
8697
8699
 
8698
- flowfolder: string,
8700
+ flowfolder: *,
8699
8701
 
8700
8702
 
8701
8703
  },
@@ -8905,7 +8907,7 @@
8905
8907
  opts: {
8906
8908
 
8907
8909
 
8908
- value: string,
8910
+ value: *,
8909
8911
 
8910
8912
 
8911
8913
  },
@@ -8934,7 +8936,7 @@
8934
8936
  opts: {
8935
8937
 
8936
8938
 
8937
- value: string,
8939
+ value: *,
8938
8940
 
8939
8941
 
8940
8942
  },
@@ -8991,7 +8993,7 @@
8991
8993
  opts: {
8992
8994
 
8993
8995
 
8994
- value: string,
8996
+ value: *,
8995
8997
 
8996
8998
 
8997
8999
  },
@@ -9020,7 +9022,7 @@
9020
9022
  opts: {
9021
9023
 
9022
9024
 
9023
- value: string,
9025
+ value: *,
9024
9026
 
9025
9027
 
9026
9028
  },
@@ -9245,7 +9247,7 @@
9245
9247
  opts: {
9246
9248
 
9247
9249
 
9248
- variable: string,
9250
+ variable: *,
9249
9251
 
9250
9252
 
9251
9253
  },
@@ -9268,7 +9270,7 @@
9268
9270
 
9269
9271
 
9270
9272
 
9271
- variable: string,
9273
+ variable: *,
9272
9274
 
9273
9275
 
9274
9276
  },
@@ -9350,7 +9352,7 @@
9350
9352
 
9351
9353
 
9352
9354
 
9353
- data: string,
9355
+ data: *,
9354
9356
 
9355
9357
 
9356
9358
 
@@ -9947,7 +9949,7 @@
9947
9949
  opts: {
9948
9950
 
9949
9951
 
9950
- user: string,
9952
+ user: *,
9951
9953
 
9952
9954
 
9953
9955
  },
@@ -9970,7 +9972,7 @@
9970
9972
 
9971
9973
 
9972
9974
 
9973
- user: string,
9975
+ user: *,
9974
9976
 
9975
9977
 
9976
9978
  },
@@ -10273,7 +10275,7 @@
10273
10275
  opts: {
10274
10276
 
10275
10277
 
10276
- zone: string,
10278
+ zone: *,
10277
10279
 
10278
10280
 
10279
10281
  },
@@ -10296,7 +10298,7 @@
10296
10298
 
10297
10299
 
10298
10300
 
10299
- zone: string,
10301
+ zone: *,
10300
10302
 
10301
10303
 
10302
10304
  },
@@ -10402,6 +10404,8 @@
10402
10404
 
10403
10405
 
10404
10406
 
10407
+
10408
+
10405
10409
  export namespace HomeyAPIV2 {
10406
10410
 
10407
10411
  export class Manager {
@@ -10476,7 +10480,7 @@
10476
10480
 
10477
10481
 
10478
10482
 
10479
- alarm: string,
10483
+ alarm: *,
10480
10484
 
10481
10485
 
10482
10486
  },
@@ -10495,7 +10499,7 @@
10495
10499
  opts: {
10496
10500
 
10497
10501
 
10498
- alarm: string,
10502
+ alarm: *,
10499
10503
 
10500
10504
 
10501
10505
  },
@@ -10733,7 +10737,7 @@
10733
10737
 
10734
10738
 
10735
10739
 
10736
- value: string,
10740
+ value: *,
10737
10741
 
10738
10742
 
10739
10743
  },
@@ -10821,7 +10825,7 @@
10821
10825
 
10822
10826
 
10823
10827
 
10824
- app: string,
10828
+ app: *,
10825
10829
 
10826
10830
 
10827
10831
  },
@@ -11222,7 +11226,7 @@
11222
11226
 
11223
11227
 
11224
11228
 
11225
- dashboard: string,
11229
+ dashboard: *,
11226
11230
 
11227
11231
 
11228
11232
  },
@@ -11241,7 +11245,7 @@
11241
11245
  opts: {
11242
11246
 
11243
11247
 
11244
- dashboard: string,
11248
+ dashboard: *,
11245
11249
 
11246
11250
 
11247
11251
  },
@@ -11367,7 +11371,7 @@
11367
11371
 
11368
11372
 
11369
11373
 
11370
- settings: string,
11374
+ settings: *,
11371
11375
 
11372
11376
 
11373
11377
  },
@@ -11413,15 +11417,15 @@
11413
11417
 
11414
11418
 
11415
11419
 
11416
- transactionId: string,
11420
+ transactionId: *,
11417
11421
 
11418
11422
 
11419
11423
 
11420
- opts: string,
11424
+ opts: *,
11421
11425
 
11422
11426
 
11423
11427
 
11424
- value: string,
11428
+ value: *,
11425
11429
 
11426
11430
 
11427
11431
  },
@@ -11463,7 +11467,7 @@
11463
11467
 
11464
11468
 
11465
11469
 
11466
- device: string,
11470
+ device: *,
11467
11471
 
11468
11472
 
11469
11473
  },
@@ -11646,7 +11650,7 @@
11646
11650
  opts: {
11647
11651
 
11648
11652
 
11649
- animation: string,
11653
+ animation: *,
11650
11654
 
11651
11655
 
11652
11656
  },
@@ -11711,7 +11715,7 @@
11711
11715
 
11712
11716
 
11713
11717
 
11714
- device: string,
11718
+ device: *,
11715
11719
 
11716
11720
 
11717
11721
  },
@@ -11799,7 +11803,7 @@
11799
11803
 
11800
11804
 
11801
11805
 
11802
- data: string,
11806
+ data: *,
11803
11807
 
11804
11808
 
11805
11809
 
@@ -11822,7 +11826,7 @@
11822
11826
  opts: {
11823
11827
 
11824
11828
 
11825
- pairsession: string,
11829
+ pairsession: *,
11826
11830
 
11827
11831
 
11828
11832
  },
@@ -12105,7 +12109,7 @@
12105
12109
 
12106
12110
 
12107
12111
 
12108
- advancedflow: string,
12112
+ advancedflow: *,
12109
12113
 
12110
12114
 
12111
12115
  },
@@ -12124,7 +12128,7 @@
12124
12128
  opts: {
12125
12129
 
12126
12130
 
12127
- advancedflow: string,
12131
+ advancedflow: *,
12128
12132
 
12129
12133
 
12130
12134
  },
@@ -12190,7 +12194,7 @@
12190
12194
 
12191
12195
 
12192
12196
 
12193
- flowfolder: string,
12197
+ flowfolder: *,
12194
12198
 
12195
12199
 
12196
12200
  },
@@ -12209,7 +12213,7 @@
12209
12213
  opts: {
12210
12214
 
12211
12215
 
12212
- flowfolder: string,
12216
+ flowfolder: *,
12213
12217
 
12214
12218
 
12215
12219
  },
@@ -12256,7 +12260,7 @@
12256
12260
 
12257
12261
 
12258
12262
 
12259
- state: string,
12263
+ state: *,
12260
12264
 
12261
12265
 
12262
12266
  },
@@ -12283,7 +12287,7 @@
12283
12287
 
12284
12288
 
12285
12289
 
12286
- flow: string,
12290
+ flow: *,
12287
12291
 
12288
12292
 
12289
12293
  },
@@ -12325,7 +12329,7 @@
12325
12329
 
12326
12330
 
12327
12331
 
12328
- flow: string,
12332
+ flow: *,
12329
12333
 
12330
12334
 
12331
12335
  },
@@ -12344,7 +12348,7 @@
12344
12348
  opts: {
12345
12349
 
12346
12350
 
12347
- flow: string,
12351
+ flow: *,
12348
12352
 
12349
12353
 
12350
12354
  },
@@ -13034,7 +13038,7 @@
13034
13038
 
13035
13039
 
13036
13040
 
13037
- log: string,
13041
+ log: *,
13038
13042
 
13039
13043
 
13040
13044
  },
@@ -13241,7 +13245,7 @@
13241
13245
 
13242
13246
 
13243
13247
 
13244
- variable: string,
13248
+ variable: *,
13245
13249
 
13246
13250
 
13247
13251
  },
@@ -13260,7 +13264,7 @@
13260
13264
  opts: {
13261
13265
 
13262
13266
 
13263
- variable: string,
13267
+ variable: *,
13264
13268
 
13265
13269
 
13266
13270
  },
@@ -13358,7 +13362,7 @@
13358
13362
 
13359
13363
 
13360
13364
 
13361
- state: string,
13365
+ state: *,
13362
13366
 
13363
13367
 
13364
13368
  },
@@ -13400,7 +13404,7 @@
13400
13404
 
13401
13405
 
13402
13406
 
13403
- mood: string,
13407
+ mood: *,
13404
13408
 
13405
13409
 
13406
13410
  },
@@ -13419,7 +13423,7 @@
13419
13423
  opts: {
13420
13424
 
13421
13425
 
13422
- mood: string,
13426
+ mood: *,
13423
13427
 
13424
13428
 
13425
13429
  },
@@ -13644,7 +13648,7 @@
13644
13648
 
13645
13649
 
13646
13650
 
13647
- value: string,
13651
+ value: *,
13648
13652
 
13649
13653
 
13650
13654
  },
@@ -13663,11 +13667,11 @@
13663
13667
  opts: {
13664
13668
 
13665
13669
 
13666
- opts: string,
13670
+ opts: *,
13667
13671
 
13668
13672
 
13669
13673
 
13670
- value: string,
13674
+ value: *,
13671
13675
 
13672
13676
 
13673
13677
  },
@@ -13709,7 +13713,7 @@
13709
13713
 
13710
13714
 
13711
13715
 
13712
- value: string,
13716
+ value: *,
13713
13717
 
13714
13718
 
13715
13719
  },
@@ -13728,11 +13732,11 @@
13728
13732
  opts: {
13729
13733
 
13730
13734
 
13731
- opts: string,
13735
+ opts: *,
13732
13736
 
13733
13737
 
13734
13738
 
13735
- value: string,
13739
+ value: *,
13736
13740
 
13737
13741
 
13738
13742
  },
@@ -13867,7 +13871,7 @@
13867
13871
 
13868
13872
 
13869
13873
 
13870
- data: string,
13874
+ data: *,
13871
13875
 
13872
13876
 
13873
13877
  },
@@ -14621,7 +14625,7 @@
14621
14625
 
14622
14626
 
14623
14627
 
14624
- user: string,
14628
+ user: *,
14625
14629
 
14626
14630
 
14627
14631
  },
@@ -14640,11 +14644,11 @@
14640
14644
  opts: {
14641
14645
 
14642
14646
 
14643
- email: string,
14647
+ email: *,
14644
14648
 
14645
14649
 
14646
14650
 
14647
- name: string,
14651
+ name: *,
14648
14652
 
14649
14653
 
14650
14654
  },
@@ -14663,7 +14667,7 @@
14663
14667
  opts: {
14664
14668
 
14665
14669
 
14666
- user: string,
14670
+ user: *,
14667
14671
 
14668
14672
 
14669
14673
  },
@@ -14855,7 +14859,7 @@
14855
14859
 
14856
14860
 
14857
14861
 
14858
- zone: string,
14862
+ zone: *,
14859
14863
 
14860
14864
 
14861
14865
  },
@@ -14874,7 +14878,7 @@
14874
14878
  opts: {
14875
14879
 
14876
14880
 
14877
- zone: string,
14881
+ zone: *,
14878
14882
 
14879
14883
 
14880
14884
  },
@@ -15097,7 +15101,5 @@
15097
15101
 
15098
15102
 
15099
15103
 
15100
-
15101
-
15102
15104
 
15103
15105
 
@@ -1,15 +1,14 @@
1
1
  'use strict';
2
2
 
3
- const APIError = require('../APIError');
3
+ const APIError = require('./APIError');
4
4
 
5
5
  /**
6
6
  * Thrown when Homey is unreachable.
7
7
  * @class
8
8
  * @hideconstructor
9
9
  * @extends APIError
10
- * @memberof HomeyAPI
11
10
  */
12
- class HomeyOfflineError extends APIError {
11
+ class APIErrorHomeyOffline extends APIError {
13
12
 
14
13
  constructor(err) {
15
14
  if (err instanceof Error) {
@@ -21,4 +20,4 @@ class HomeyOfflineError extends APIError {
21
20
 
22
21
  }
23
22
 
24
- module.exports = HomeyOfflineError;
23
+ module.exports = APIErrorHomeyOffline;
@@ -8,7 +8,6 @@ const APIError = require('./APIError');
8
8
  * @class
9
9
  * @hideconstructor
10
10
  * @extends APIError
11
- * @memberof HomeyAPI
12
11
  */
13
12
  class APIErrorTimeout extends APIError {
14
13