homey-api 1.10.3 → 1.10.6

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.
@@ -221,6 +221,37 @@
221
221
 
222
222
 
223
223
 
224
+ ):
225
+ Promise<any>;
226
+
227
+ searchAppsBy433MhzSignal(
228
+
229
+
230
+
231
+
232
+ opts: {
233
+
234
+
235
+ language: string,
236
+
237
+
238
+
239
+ homeyVersion: string,
240
+
241
+
242
+
243
+ homeyPlatform: string,
244
+
245
+
246
+
247
+ payload: Array<any>,
248
+
249
+
250
+ },
251
+
252
+
253
+
254
+
224
255
  ):
225
256
  Promise<any>;
226
257
 
@@ -8110,6 +8141,10 @@
8110
8141
 
8111
8142
 
8112
8143
 
8144
+
8145
+
8146
+
8147
+
8113
8148
  export namespace HomeyAPIV3Local.ManagerSessions {
8114
8149
 
8115
8150
  export class Session {
@@ -8156,6 +8191,16 @@
8156
8191
 
8157
8192
  export namespace HomeyAPIV3Local.ManagerVirtualDevice {
8158
8193
 
8194
+ export class VirtualDeviceDummySocket {
8195
+
8196
+
8197
+
8198
+ id: string;
8199
+
8200
+
8201
+
8202
+ }
8203
+
8159
8204
  export class VirtualDeviceHomeyBridge {
8160
8205
 
8161
8206
 
@@ -8174,6 +8219,26 @@
8174
8219
 
8175
8220
 
8176
8221
 
8222
+ }
8223
+
8224
+ export class VirtualDeviceVirtualButton {
8225
+
8226
+
8227
+
8228
+ id: string;
8229
+
8230
+
8231
+
8232
+ }
8233
+
8234
+ export class VirtualDeviceVirtualIPCamera {
8235
+
8236
+
8237
+
8238
+ id: string;
8239
+
8240
+
8241
+
8177
8242
  }
8178
8243
 
8179
8244
  export class VirtualDeviceVirtualSocket {
@@ -8204,6 +8269,16 @@
8204
8269
 
8205
8270
 
8206
8271
 
8272
+ }
8273
+
8274
+ export class VirtualDriverDummySocket {
8275
+
8276
+
8277
+
8278
+ id: string;
8279
+
8280
+
8281
+
8207
8282
  }
8208
8283
 
8209
8284
  export class VirtualDriverHomeyBridge {
@@ -8224,6 +8299,26 @@
8224
8299
 
8225
8300
 
8226
8301
 
8302
+ }
8303
+
8304
+ export class VirtualDriverVirtualButton {
8305
+
8306
+
8307
+
8308
+ id: string;
8309
+
8310
+
8311
+
8312
+ }
8313
+
8314
+ export class VirtualDriverVirtualIPCamera {
8315
+
8316
+
8317
+
8318
+ id: string;
8319
+
8320
+
8321
+
8227
8322
  }
8228
8323
 
8229
8324
  export class VirtualDriverVirtualSocket {
@@ -8317,6 +8412,18 @@
8317
8412
 
8318
8413
 
8319
8414
 
8415
+
8416
+
8417
+
8418
+
8419
+
8420
+
8421
+
8422
+
8423
+
8424
+
8425
+
8426
+
8320
8427
 
8321
8428
 
8322
8429
 
@@ -16652,6 +16759,25 @@
16652
16759
 
16653
16760
  getApps(
16654
16761
 
16762
+ ):
16763
+ Promise<HomeyAPIV3Local.ManagerApps.App>;
16764
+
16765
+ getApp(
16766
+
16767
+
16768
+
16769
+
16770
+ opts: {
16771
+
16772
+
16773
+ id: string,
16774
+
16775
+
16776
+ },
16777
+
16778
+
16779
+
16780
+
16655
16781
  ):
16656
16782
  Promise<HomeyAPIV3Local.ManagerApps.App>;
16657
16783
 
@@ -16861,6 +16987,25 @@
16861
16987
 
16862
16988
 
16863
16989
 
16990
+ opts: {
16991
+
16992
+
16993
+ id: string,
16994
+
16995
+
16996
+ },
16997
+
16998
+
16999
+
17000
+
17001
+ ):
17002
+ Promise<any>;
17003
+
17004
+ getAppLocales(
17005
+
17006
+
17007
+
17008
+
16864
17009
  opts: {
16865
17010
 
16866
17011
 
@@ -17103,6 +17248,11 @@
17103
17248
 
17104
17249
  getState(
17105
17250
 
17251
+ ):
17252
+ Promise<any>;
17253
+
17254
+ getBridges(
17255
+
17106
17256
  ):
17107
17257
  Promise<any>;
17108
17258
 
@@ -17450,6 +17600,10 @@
17450
17600
  virtualClass: string,
17451
17601
 
17452
17602
 
17603
+
17604
+ uiIndicator: string,
17605
+
17606
+
17453
17607
  },
17454
17608
 
17455
17609
 
@@ -17605,6 +17759,33 @@
17605
17759
 
17606
17760
 
17607
17761
 
17762
+ ):
17763
+ Promise<any>;
17764
+
17765
+ runApp(
17766
+
17767
+
17768
+
17769
+
17770
+ opts: {
17771
+
17772
+
17773
+ debug: string,
17774
+
17775
+
17776
+
17777
+ env: string,
17778
+
17779
+
17780
+
17781
+ purgeSettings: string,
17782
+
17783
+
17784
+ },
17785
+
17786
+
17787
+
17788
+
17608
17789
  ):
17609
17790
  Promise<any>;
17610
17791
 
@@ -18406,6 +18587,10 @@
18406
18587
 
18407
18588
 
18408
18589
 
18590
+ state: object,
18591
+
18592
+
18593
+
18409
18594
  droptoken: string,
18410
18595
 
18411
18596
 
@@ -18446,6 +18631,10 @@
18446
18631
 
18447
18632
 
18448
18633
 
18634
+ state: object,
18635
+
18636
+
18637
+
18449
18638
  droptoken: string,
18450
18639
 
18451
18640
 
@@ -18571,6 +18760,25 @@
18571
18760
 
18572
18761
 
18573
18762
 
18763
+ opts: {
18764
+
18765
+
18766
+ id: string,
18767
+
18768
+
18769
+ },
18770
+
18771
+
18772
+
18773
+
18774
+ ):
18775
+ Promise<any>;
18776
+
18777
+ triggerAdvancedFlow(
18778
+
18779
+
18780
+
18781
+
18574
18782
  opts: {
18575
18783
 
18576
18784
 
@@ -18641,12 +18849,12 @@
18641
18849
 
18642
18850
 
18643
18851
 
18644
- getOptionMode(
18852
+ getOptionAddress(
18645
18853
 
18646
18854
  ):
18647
18855
  Promise<any>;
18648
18856
 
18649
- setOptionMode(
18857
+ setOptionAddress(
18650
18858
 
18651
18859
 
18652
18860
 
@@ -18665,7 +18873,7 @@
18665
18873
  ):
18666
18874
  Promise<any>;
18667
18875
 
18668
- unsetOptionMode(
18876
+ unsetOptionAddress(
18669
18877
 
18670
18878
  ):
18671
18879
  Promise<any>;
@@ -19025,35 +19233,6 @@
19025
19233
 
19026
19234
  unsetOptionScreensaver(
19027
19235
 
19028
- ):
19029
- Promise<any>;
19030
-
19031
- getOptionBrightness(
19032
-
19033
- ):
19034
- Promise<any>;
19035
-
19036
- setOptionBrightness(
19037
-
19038
-
19039
-
19040
-
19041
- opts: {
19042
-
19043
-
19044
- value: *,
19045
-
19046
-
19047
- },
19048
-
19049
-
19050
-
19051
-
19052
- ):
19053
- Promise<any>;
19054
-
19055
- unsetOptionBrightness(
19056
-
19057
19236
  ):
19058
19237
  Promise<any>;
19059
19238
 
@@ -19543,6 +19722,29 @@
19543
19722
 
19544
19723
 
19545
19724
 
19725
+ ):
19726
+ Promise<any>;
19727
+
19728
+ replay(
19729
+
19730
+
19731
+
19732
+
19733
+ opts: {
19734
+
19735
+
19736
+ frequency: string,
19737
+
19738
+
19739
+
19740
+ data: Array<any>,
19741
+
19742
+
19743
+ },
19744
+
19745
+
19746
+
19747
+
19546
19748
  ):
19547
19749
  Promise<any>;
19548
19750
 
@@ -19632,6 +19834,34 @@
19632
19834
 
19633
19835
 
19634
19836
 
19837
+ ):
19838
+ Promise<any>;
19839
+
19840
+ isConnected(
19841
+
19842
+ ):
19843
+ Boolean;
19844
+
19845
+ connect(
19846
+
19847
+ ):
19848
+ Promise<void>;
19849
+
19850
+ disconnect(
19851
+
19852
+ ):
19853
+ Promise<void>;
19854
+
19855
+ }
19856
+
19857
+ export class ManagerSafety extends HomeyAPIV3Local.Manager {
19858
+
19859
+
19860
+
19861
+
19862
+
19863
+ getState(
19864
+
19635
19865
  ):
19636
19866
  Promise<any>;
19637
19867
 
@@ -19658,6 +19888,34 @@
19658
19888
 
19659
19889
 
19660
19890
 
19891
+ getState(
19892
+
19893
+ ):
19894
+ Promise<any>;
19895
+
19896
+ isConnected(
19897
+
19898
+ ):
19899
+ Boolean;
19900
+
19901
+ connect(
19902
+
19903
+ ):
19904
+ Promise<void>;
19905
+
19906
+ disconnect(
19907
+
19908
+ ):
19909
+ Promise<void>;
19910
+
19911
+ }
19912
+
19913
+ export class ManagerSecurity extends HomeyAPIV3Local.Manager {
19914
+
19915
+
19916
+
19917
+
19918
+
19661
19919
  getState(
19662
19920
 
19663
19921
  ):
@@ -19823,16 +20081,6 @@
19823
20081
 
19824
20082
  rebootOTA(
19825
20083
 
19826
- ):
19827
- Promise<any>;
19828
-
19829
- startBluFi(
19830
-
19831
- ):
19832
- Promise<any>;
19833
-
19834
- stopBluFi(
19835
-
19836
20084
  ):
19837
20085
  Promise<any>;
19838
20086
 
@@ -19975,6 +20223,11 @@
19975
20223
 
19976
20224
 
19977
20225
 
20226
+ ):
20227
+ Promise<any>;
20228
+
20229
+ abortInstallUpdate(
20230
+
19978
20231
  ):
19979
20232
  Promise<any>;
19980
20233
 
@@ -105,14 +105,13 @@ class Device extends Item {
105
105
  }
106
106
 
107
107
  onReconnect() {
108
- const capabilityInstances = this.__capabilityInstances;
109
- if (Object.keys(capabilityInstances).length > 0) {
108
+ if (Object.keys(this.__capabilityInstances).length > 0) {
110
109
  // Get the device's latest values
111
110
  // TODO: Optimize this with `getDevices()` when >1 device has >0 capability instances.
112
111
  this.manager.getDevice({
113
112
  id: this.id,
114
113
  }).then(async device => {
115
- Object.entries(capabilityInstances).forEach(([capabilityId, capabilityInstance]) => {
114
+ Object.entries(this.__capabilityInstances).forEach(([capabilityId, capabilityInstance]) => {
116
115
  const value = device.capabilitiesObj
117
116
  ? typeof device.capabilitiesObj[capabilityId] !== 'undefined'
118
117
  ? device.capabilitiesObj[capabilityId].value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.10.3",
3
+ "version": "1.10.6",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [