homey-api 3.18.3 → 3.19.1

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.
@@ -113,6 +113,10 @@
113
113
  "type": "number",
114
114
  "in": "body"
115
115
  },
116
+ "homeyModel": {
117
+ "type": "string",
118
+ "in": "body"
119
+ },
116
120
  "version": {
117
121
  "type": "string",
118
122
  "in": "body"
@@ -0,0 +1,36 @@
1
+ {
2
+ "host": "solar-forecast-api.athom.com",
3
+ "basePath": "/api/v1/",
4
+ "operations": {
5
+ "getSolarForecast": {
6
+ "path": "/forecast/solar",
7
+ "method": "get",
8
+ "private": true,
9
+ "parameters": {
10
+ "secret": {
11
+ "in": "query",
12
+ "type": "string",
13
+ "required": true
14
+ },
15
+ "lat": {
16
+ "in": "query",
17
+ "type": "number",
18
+ "required": true
19
+ },
20
+ "lng": {
21
+ "in": "query",
22
+ "type": "number",
23
+ "required": true
24
+ },
25
+ "strategy": {
26
+ "in": "query",
27
+ "type": "string"
28
+ },
29
+ "panels": {
30
+ "in": "query",
31
+ "type": "array"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -3137,6 +3137,8 @@ export class AthomBackupAPI {
3137
3137
 
3138
3138
  homeyPlatformVersion?: number;
3139
3139
 
3140
+ homeyModel?: string;
3141
+
3140
3142
  version?: string;
3141
3143
 
3142
3144
  channel?: string;
@@ -3197,6 +3199,8 @@ export class AthomBackupAPI {
3197
3199
 
3198
3200
  homeyPlatformVersion?: number;
3199
3201
 
3202
+ homeyModel?: string;
3203
+
3200
3204
  version?: string;
3201
3205
 
3202
3206
  channel?: string;
@@ -5209,6 +5213,40 @@ export class AthomSetupAPI {
5209
5213
  getTimezone(): Promise<any>;
5210
5214
  }
5211
5215
 
5216
+ export class AthomSolarForecastAPI {
5217
+ constructor(opts?: {
5218
+ baseUrl?: string;
5219
+
5220
+ debug?: boolean;
5221
+
5222
+ secret?: string;
5223
+ });
5224
+
5225
+ getSolarForecast(opts: {
5226
+ secret: string;
5227
+
5228
+ lat: number;
5229
+
5230
+ lng: number;
5231
+
5232
+ strategy?: string;
5233
+
5234
+ panels?: Array<any>;
5235
+ }): Promise<any>;
5236
+
5237
+ getSolarForecast(opts: {
5238
+ secret: string;
5239
+
5240
+ lat: number;
5241
+
5242
+ lng: number;
5243
+
5244
+ strategy?: string;
5245
+
5246
+ panels?: Array<any>;
5247
+ }): Promise<any>;
5248
+ }
5249
+
5212
5250
  export class AthomStoreAPI {
5213
5251
  constructor(opts?: {
5214
5252
  baseUrl?: string;
@@ -6657,6 +6695,8 @@ export class AthomBackupAPI {
6657
6695
 
6658
6696
  homeyPlatformVersion?: number;
6659
6697
 
6698
+ homeyModel?: string;
6699
+
6660
6700
  version?: string;
6661
6701
 
6662
6702
  channel?: string;
@@ -6717,6 +6757,8 @@ export class AthomBackupAPI {
6717
6757
 
6718
6758
  homeyPlatformVersion?: number;
6719
6759
 
6760
+ homeyModel?: string;
6761
+
6720
6762
  version?: string;
6721
6763
 
6722
6764
  channel?: string;
@@ -8729,6 +8771,40 @@ export class AthomSetupAPI {
8729
8771
  getTimezone(): Promise<any>;
8730
8772
  }
8731
8773
 
8774
+ export class AthomSolarForecastAPI {
8775
+ constructor(opts?: {
8776
+ baseUrl?: string;
8777
+
8778
+ debug?: boolean;
8779
+
8780
+ secret?: string;
8781
+ });
8782
+
8783
+ getSolarForecast(opts: {
8784
+ secret: string;
8785
+
8786
+ lat: number;
8787
+
8788
+ lng: number;
8789
+
8790
+ strategy?: string;
8791
+
8792
+ panels?: Array<any>;
8793
+ }): Promise<any>;
8794
+
8795
+ getSolarForecast(opts: {
8796
+ secret: string;
8797
+
8798
+ lat: number;
8799
+
8800
+ lng: number;
8801
+
8802
+ strategy?: string;
8803
+
8804
+ panels?: Array<any>;
8805
+ }): Promise<any>;
8806
+ }
8807
+
8732
8808
  export class AthomStoreAPI {
8733
8809
  constructor(opts?: {
8734
8810
  baseUrl?: string;
package/index.js CHANGED
@@ -21,6 +21,7 @@ module.exports.AthomWeatherAPI = require('./lib/AthomWeatherAPI');
21
21
  module.exports.AthomWebhooksAPI = require('./lib/AthomWebhooksAPI');
22
22
  module.exports.AthomEnergyAPI = require('./lib/AthomEnergyAPI');
23
23
  module.exports.AthomDeviceFirmwareAPI = require('./lib/AthomDeviceFirmwareAPI');
24
+ module.exports.AthomSolarForecastAPI = require('./lib/AthomSolarForecastAPI');
24
25
 
25
26
  // Homey Cloud
26
27
  module.exports.HomeyCloudAPI = require('./lib/HomeyCloudAPI');
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const API = require('./API');
4
+
5
+ class AthomSolarForecastAPI extends API {
6
+
7
+ static SPECIFICATION = require('../assets/specifications/AthomSolarForecastAPI.json');
8
+ static SPECIFICATION_URL = 'https://solar-forecast-api.athom.com/api/v1/specification.json';
9
+ static JSDOC_PRIVATE = true;
10
+
11
+ }
12
+
13
+ module.exports = AthomSolarForecastAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.18.3",
3
+ "version": "3.19.1",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "license": "SEE LICENSE",
@@ -61,7 +61,7 @@
61
61
  "socket.io-client": "^2.5.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@athombv/jsdoc-template": "^1.6.2",
64
+ "@athombv/jsdoc-template": "^1.7.0",
65
65
  "@babel/core": "^7.16.0",
66
66
  "@babel/plugin-proposal-class-properties": "^7.16.0",
67
67
  "@babel/preset-env": "^7.16.0",