homey-api 3.6.7 → 3.7.0

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.
@@ -145,6 +145,8 @@ export namespace HomeyAPIV2.ManagerDashboards {
145
145
  settings: object;
146
146
 
147
147
  height: number | string;
148
+
149
+ transparent: boolean;
148
150
  }
149
151
 
150
152
  export class Dashboard extends HomeyAPIV3Local.ManagerDashboards.Dashboard {
@@ -154,6 +156,15 @@ export namespace HomeyAPIV2.ManagerDashboards {
154
156
 
155
157
  columns: Array<any>;
156
158
  }
159
+
160
+ export class WidgetStore extends HomeyAPIV3Local.ManagerDashboards
161
+ .WidgetStore {
162
+ id: string;
163
+
164
+ ownerUri: string;
165
+
166
+ state: object;
167
+ }
157
168
  }
158
169
 
159
170
  export namespace HomeyAPIV2.ManagerDevices {
@@ -715,14 +726,20 @@ export namespace HomeyAPIV3Cloud.ManagerCron {
715
726
  }
716
727
 
717
728
  export namespace HomeyAPIV3Cloud.ManagerDashboards {
729
+ export class AppWidget {
730
+ id: string;
731
+ }
732
+
718
733
  export class Dashboard {
719
734
  id: string;
720
735
 
721
736
  name: string;
722
737
 
723
- widgets: object;
738
+ columns: Array<any>;
739
+ }
724
740
 
725
- lines: object;
741
+ export class WidgetStore {
742
+ id: string;
726
743
  }
727
744
  }
728
745
 
@@ -965,6 +982,8 @@ export namespace HomeyAPIV3Cloud.ManagerMoods {
965
982
 
966
983
  name: string;
967
984
 
985
+ preset: string | null;
986
+
968
987
  zone: string;
969
988
 
970
989
  devices: object;
@@ -1014,6 +1033,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
1014
1033
  id: string;
1015
1034
  }
1016
1035
 
1036
+ export class VirtualDeviceEnergyDongle {
1037
+ id: string;
1038
+ }
1039
+
1017
1040
  export class VirtualDeviceHomeyBridge {
1018
1041
  id: string;
1019
1042
  }
@@ -1034,6 +1057,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
1034
1057
  id: string;
1035
1058
  }
1036
1059
 
1060
+ export class VirtualDriverEnergyDongle {
1061
+ id: string;
1062
+ }
1063
+
1037
1064
  export class VirtualDriverHomeyBridge {
1038
1065
  id: string;
1039
1066
  }
@@ -1141,6 +1168,10 @@ export namespace HomeyAPIV3Local.ManagerDashboards {
1141
1168
 
1142
1169
  columns: Array<any>;
1143
1170
  }
1171
+
1172
+ export class WidgetStore {
1173
+ id: string;
1174
+ }
1144
1175
  }
1145
1176
 
1146
1177
  export namespace HomeyAPIV3Local.ManagerDevices {
@@ -1465,6 +1496,10 @@ export namespace HomeyAPIV3Local.ManagerVirtualDevice {
1465
1496
  id: string;
1466
1497
  }
1467
1498
 
1499
+ export class VirtualDeviceEnergyDongle {
1500
+ id: string;
1501
+ }
1502
+
1468
1503
  export class VirtualDeviceHomeyBridge {
1469
1504
  id: string;
1470
1505
  }
@@ -1501,6 +1536,10 @@ export namespace HomeyAPIV3Local.ManagerVirtualDevice {
1501
1536
  id: string;
1502
1537
  }
1503
1538
 
1539
+ export class VirtualDriverEnergyDongle {
1540
+ id: string;
1541
+ }
1542
+
1504
1543
  export class VirtualDriverHomeyBridge {
1505
1544
  id: string;
1506
1545
  }
@@ -8370,9 +8409,7 @@ export namespace HomeyAPIV3Cloud {
8370
8409
  dashboard: {
8371
8410
  name: string;
8372
8411
 
8373
- widgets: object;
8374
-
8375
- lines: object;
8412
+ columns: Array<any>;
8376
8413
  };
8377
8414
  }): Promise<HomeyAPIV3Cloud.ManagerDashboards.Dashboard>;
8378
8415
 
@@ -8382,13 +8419,47 @@ export namespace HomeyAPIV3Cloud {
8382
8419
  dashboard: {
8383
8420
  name?: string;
8384
8421
 
8385
- widgets?: object;
8386
-
8387
- lines?: object;
8422
+ columns?: Array<any>;
8388
8423
  };
8389
8424
  }): Promise<HomeyAPIV3Cloud.ManagerDashboards.Dashboard>;
8390
8425
 
8391
8426
  deleteDashboard(opts: { id: string }): Promise<any>;
8427
+
8428
+ getAppWidgets(): Promise<{
8429
+ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.AppWidget;
8430
+ }>;
8431
+
8432
+ getAppWidget(opts: {
8433
+ id: string;
8434
+ }): Promise<HomeyAPIV3Cloud.ManagerDashboards.AppWidget>;
8435
+
8436
+ getAppWidgetAutocomplete(opts: {
8437
+ id: string;
8438
+
8439
+ settingId: string;
8440
+
8441
+ query: string;
8442
+
8443
+ settings?: object;
8444
+ }): Promise<any>;
8445
+
8446
+ getWidgetStores(): Promise<{
8447
+ [key: string]: HomeyAPIV3Cloud.ManagerDashboards.WidgetStore;
8448
+ }>;
8449
+
8450
+ getWidgetStore(opts: {
8451
+ id: string;
8452
+ }): Promise<HomeyAPIV3Cloud.ManagerDashboards.WidgetStore>;
8453
+
8454
+ getWidgetStoreState(opts: { id: string }): Promise<any>;
8455
+
8456
+ setWidgetStoreState(opts: {
8457
+ id: string;
8458
+
8459
+ state: object;
8460
+
8461
+ replace?: boolean;
8462
+ }): Promise<any>;
8392
8463
  }
8393
8464
 
8394
8465
  export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase {
@@ -8595,6 +8666,68 @@ export namespace HomeyAPIV3Cloud {
8595
8666
  getLiveReport(opts: { zone?: string }): Promise<any>;
8596
8667
  }
8597
8668
 
8669
+ export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle {
8670
+ getOptionPhaseLoadNotificationSettings(): Promise<any>;
8671
+
8672
+ setOptionPhaseLoadNotificationSettings(opts: { value: any }): Promise<any>;
8673
+
8674
+ unsetOptionPhaseLoadNotificationSettings(): Promise<any>;
8675
+
8676
+ createAndUploadDiagnosticReport(opts: {
8677
+ deviceId: string;
8678
+
8679
+ timeout?: number;
8680
+ }): Promise<any>;
8681
+
8682
+ getNextFrame(opts: {
8683
+ deviceId: string;
8684
+
8685
+ timeout?: string;
8686
+ }): Promise<any>;
8687
+
8688
+ restartSettingsDiscovery(opts: { deviceId: string }): Promise<any>;
8689
+
8690
+ getUartConfig(opts: { deviceId: string }): Promise<any>;
8691
+
8692
+ setUartConfig(opts: {
8693
+ deviceId?: string;
8694
+
8695
+ baudRate?: number;
8696
+
8697
+ dataBits?: number;
8698
+
8699
+ stopBits?: number;
8700
+
8701
+ parity?: string;
8702
+
8703
+ inverseRx?: boolean;
8704
+
8705
+ dataTimeoutMs?: number;
8706
+
8707
+ persistent?: boolean;
8708
+ }): Promise<any>;
8709
+
8710
+ checkFirmwareUpdateAvailable(opts: { deviceId: string }): Promise<any>;
8711
+
8712
+ installFirmwareUpdate(opts: {
8713
+ deviceId: string;
8714
+
8715
+ updateThroughReboot?: boolean;
8716
+ }): Promise<any>;
8717
+
8718
+ reboot(opts: { deviceId: string }): Promise<any>;
8719
+
8720
+ setPhaseLoadLimits(opts: {
8721
+ deviceId: string;
8722
+
8723
+ phasesConfigured: number;
8724
+
8725
+ capacity: number;
8726
+ }): Promise<any>;
8727
+
8728
+ getPhaseLoadLimits(opts: { deviceId: string }): Promise<any>;
8729
+ }
8730
+
8598
8731
  export class ManagerFlow extends HomeyAPIV3.ManagerFlow {
8599
8732
  getState(): Promise<any>;
8600
8733
 
@@ -8931,6 +9064,8 @@ export namespace HomeyAPIV3Cloud {
8931
9064
  name: string;
8932
9065
 
8933
9066
  devices: object;
9067
+
9068
+ preset?: string;
8934
9069
  };
8935
9070
  }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8936
9071
 
@@ -8941,6 +9076,8 @@ export namespace HomeyAPIV3Cloud {
8941
9076
  name?: string;
8942
9077
 
8943
9078
  devices?: object;
9079
+
9080
+ preset?: string;
8944
9081
  };
8945
9082
  }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8946
9083
 
@@ -9074,7 +9211,7 @@ export namespace HomeyAPIV3Cloud {
9074
9211
  export class ManagerSystem extends HomeyAPIV3.ManagerSystem {
9075
9212
  getState(): Promise<any>;
9076
9213
 
9077
- ping(): Promise<any>;
9214
+ ping(opts: { id?: string }): Promise<any>;
9078
9215
 
9079
9216
  getInfo(): Promise<any>;
9080
9217
 
@@ -9948,6 +10085,10 @@ export namespace HomeyAPIV3Local {
9948
10085
  [key: string]: HomeyAPIV3Local.ManagerDashboards.AppWidget;
9949
10086
  }>;
9950
10087
 
10088
+ getAppWidget(opts: {
10089
+ id: string;
10090
+ }): Promise<HomeyAPIV3Local.ManagerDashboards.AppWidget>;
10091
+
9951
10092
  getAppWidgetAutocomplete(opts: {
9952
10093
  id: string;
9953
10094
 
@@ -9957,6 +10098,24 @@ export namespace HomeyAPIV3Local {
9957
10098
 
9958
10099
  settings?: object;
9959
10100
  }): Promise<any>;
10101
+
10102
+ getWidgetStores(): Promise<{
10103
+ [key: string]: HomeyAPIV3Local.ManagerDashboards.WidgetStore;
10104
+ }>;
10105
+
10106
+ getWidgetStore(opts: {
10107
+ id: string;
10108
+ }): Promise<HomeyAPIV3Local.ManagerDashboards.WidgetStore>;
10109
+
10110
+ getWidgetStoreState(opts: { id: string }): Promise<any>;
10111
+
10112
+ setWidgetStoreState(opts: {
10113
+ id: string;
10114
+
10115
+ state: object;
10116
+
10117
+ replace?: boolean;
10118
+ }): Promise<any>;
9960
10119
  }
9961
10120
 
9962
10121
  export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase {
@@ -10181,6 +10340,68 @@ export namespace HomeyAPIV3Local {
10181
10340
  getLiveReport(opts: { zone?: string }): Promise<any>;
10182
10341
  }
10183
10342
 
10343
+ export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle {
10344
+ getOptionPhaseLoadNotificationSettings(): Promise<any>;
10345
+
10346
+ setOptionPhaseLoadNotificationSettings(opts: { value: any }): Promise<any>;
10347
+
10348
+ unsetOptionPhaseLoadNotificationSettings(): Promise<any>;
10349
+
10350
+ createAndUploadDiagnosticReport(opts: {
10351
+ deviceId: string;
10352
+
10353
+ timeout?: number;
10354
+ }): Promise<any>;
10355
+
10356
+ getNextFrame(opts: {
10357
+ deviceId: string;
10358
+
10359
+ timeout?: string;
10360
+ }): Promise<any>;
10361
+
10362
+ restartSettingsDiscovery(opts: { deviceId: string }): Promise<any>;
10363
+
10364
+ getUartConfig(opts: { deviceId: string }): Promise<any>;
10365
+
10366
+ setUartConfig(opts: {
10367
+ deviceId?: string;
10368
+
10369
+ baudRate?: number;
10370
+
10371
+ dataBits?: number;
10372
+
10373
+ stopBits?: number;
10374
+
10375
+ parity?: string;
10376
+
10377
+ inverseRx?: boolean;
10378
+
10379
+ dataTimeoutMs?: number;
10380
+
10381
+ persistent?: boolean;
10382
+ }): Promise<any>;
10383
+
10384
+ checkFirmwareUpdateAvailable(opts: { deviceId: string }): Promise<any>;
10385
+
10386
+ installFirmwareUpdate(opts: {
10387
+ deviceId: string;
10388
+
10389
+ updateThroughReboot?: boolean;
10390
+ }): Promise<any>;
10391
+
10392
+ reboot(opts: { deviceId: string }): Promise<any>;
10393
+
10394
+ setPhaseLoadLimits(opts: {
10395
+ deviceId: string;
10396
+
10397
+ phasesConfigured: number;
10398
+
10399
+ capacity: number;
10400
+ }): Promise<any>;
10401
+
10402
+ getPhaseLoadLimits(opts: { deviceId: string }): Promise<any>;
10403
+ }
10404
+
10184
10405
  export class ManagerExperiments extends HomeyAPIV3.ManagerExperiments {
10185
10406
  getState(): Promise<any>;
10186
10407
 
@@ -10537,6 +10758,14 @@ export namespace HomeyAPIV3Local {
10537
10758
  makeDeviceApi(opts: { nodeId: string }): Promise<any>;
10538
10759
 
10539
10760
  readBasicInformation(opts: { nodeId: string }): Promise<any>;
10761
+
10762
+ openCommissioningWindow(opts: {
10763
+ deviceId: string;
10764
+
10765
+ timeout?: number;
10766
+
10767
+ revokeExisting?: boolean;
10768
+ }): Promise<any>;
10540
10769
  }
10541
10770
 
10542
10771
  export class ManagerMobile extends HomeyAPIV3.ManagerMobile {
@@ -10744,9 +10973,17 @@ export namespace HomeyAPIV3Local {
10744
10973
 
10745
10974
  getActiveDataset(): Promise<any>;
10746
10975
 
10747
- reset(opts: { target?: string }): Promise<any>;
10976
+ apiReset(): Promise<any>;
10977
+
10978
+ executeCommand(opts: {
10979
+ command: string;
10980
+
10981
+ timeout?: number;
10748
10982
 
10749
- executeCommand(opts: { command: string }): Promise<any>;
10983
+ flush?: boolean;
10984
+
10985
+ preventThreadSetup?: boolean;
10986
+ }): Promise<any>;
10750
10987
 
10751
10988
  apiDisable(): Promise<any>;
10752
10989
 
@@ -10906,7 +11143,19 @@ export namespace HomeyAPIV3Local {
10906
11143
  opts?: object;
10907
11144
  }): Promise<any>;
10908
11145
 
10909
- flashFirmware(opts: { erase?: string }): Promise<any>;
11146
+ getFirmwareVersion(): Promise<any>;
11147
+
11148
+ flashFirmware(opts: {
11149
+ erase?: string;
11150
+
11151
+ downgrade?: string;
11152
+
11153
+ version?: string;
11154
+
11155
+ firmware?: string;
11156
+
11157
+ shasum?: string;
11158
+ }): Promise<any>;
10910
11159
 
10911
11160
  getLog(): Promise<any>;
10912
11161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.6.7",
3
+ "version": "3.7.0",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -76,6 +76,7 @@
76
76
  "jsdoc-ts-utils": "^4.0.0",
77
77
  "jsdoc-tsimport-plugin": "^1.0.5",
78
78
  "keypather": "^3.1.0",
79
+ "niodb": "^0.1.1",
79
80
  "plantuml-cli": "^1.2024.4",
80
81
  "prettier": "^3.2.5",
81
82
  "serve": "^14.0.1",