homey-api 3.13.2 → 3.13.3
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.
- package/assets/specifications/HomeyAPIV2.json +9 -0
- package/assets/specifications/HomeyAPIV3Cloud.json +9 -0
- package/assets/specifications/HomeyAPIV3Local.json +9 -0
- package/assets/types/homey-api.d.ts +4 -0
- package/assets/types/homey-api.private.d.ts +4 -0
- package/lib/HomeyAPI/HomeyAPIV3/Item.js +5 -3
- package/package.json +1 -1
|
@@ -6163,6 +6163,15 @@
|
|
|
6163
6163
|
"homey.geolocation.readonly"
|
|
6164
6164
|
],
|
|
6165
6165
|
"parameters": {}
|
|
6166
|
+
},
|
|
6167
|
+
"getWeatherHourly": {
|
|
6168
|
+
"method": "get",
|
|
6169
|
+
"path": "/forecast/hourly",
|
|
6170
|
+
"private": false,
|
|
6171
|
+
"scopes": [
|
|
6172
|
+
"homey.geolocation.readonly"
|
|
6173
|
+
],
|
|
6174
|
+
"parameters": {}
|
|
6166
6175
|
}
|
|
6167
6176
|
}
|
|
6168
6177
|
},
|
|
@@ -4534,6 +4534,15 @@
|
|
|
4534
4534
|
"homey.geolocation.readonly"
|
|
4535
4535
|
],
|
|
4536
4536
|
"parameters": {}
|
|
4537
|
+
},
|
|
4538
|
+
"getWeatherHourly": {
|
|
4539
|
+
"method": "get",
|
|
4540
|
+
"path": "/forecast/hourly",
|
|
4541
|
+
"private": false,
|
|
4542
|
+
"scopes": [
|
|
4543
|
+
"homey.geolocation.readonly"
|
|
4544
|
+
],
|
|
4545
|
+
"parameters": {}
|
|
4537
4546
|
}
|
|
4538
4547
|
}
|
|
4539
4548
|
},
|
|
@@ -6187,6 +6187,15 @@
|
|
|
6187
6187
|
"homey.geolocation.readonly"
|
|
6188
6188
|
],
|
|
6189
6189
|
"parameters": {}
|
|
6190
|
+
},
|
|
6191
|
+
"getWeatherHourly": {
|
|
6192
|
+
"method": "get",
|
|
6193
|
+
"path": "/forecast/hourly",
|
|
6194
|
+
"private": false,
|
|
6195
|
+
"scopes": [
|
|
6196
|
+
"homey.geolocation.readonly"
|
|
6197
|
+
],
|
|
6198
|
+
"parameters": {}
|
|
6190
6199
|
}
|
|
6191
6200
|
}
|
|
6192
6201
|
},
|
|
@@ -2899,6 +2899,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
2899
2899
|
getState(): Promise<any>;
|
|
2900
2900
|
|
|
2901
2901
|
getWeather(): Promise<any>;
|
|
2902
|
+
|
|
2903
|
+
getWeatherHourly(): Promise<any>;
|
|
2902
2904
|
}
|
|
2903
2905
|
|
|
2904
2906
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -4627,6 +4629,8 @@ export namespace HomeyAPIV3Local {
|
|
|
4627
4629
|
getState(): Promise<any>;
|
|
4628
4630
|
|
|
4629
4631
|
getWeather(): Promise<any>;
|
|
4632
|
+
|
|
4633
|
+
getWeatherHourly(): Promise<any>;
|
|
4630
4634
|
}
|
|
4631
4635
|
|
|
4632
4636
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -9890,6 +9890,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9890
9890
|
getState(): Promise<any>;
|
|
9891
9891
|
|
|
9892
9892
|
getWeather(): Promise<any>;
|
|
9893
|
+
|
|
9894
|
+
getWeatherHourly(): Promise<any>;
|
|
9893
9895
|
}
|
|
9894
9896
|
|
|
9895
9897
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -11904,6 +11906,8 @@ export namespace HomeyAPIV3Local {
|
|
|
11904
11906
|
getState(): Promise<any>;
|
|
11905
11907
|
|
|
11906
11908
|
getWeather(): Promise<any>;
|
|
11909
|
+
|
|
11910
|
+
getWeatherHourly(): Promise<any>;
|
|
11907
11911
|
}
|
|
11908
11912
|
|
|
11909
11913
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -48,7 +48,7 @@ class Item extends EventEmitter {
|
|
|
48
48
|
enumerable: false,
|
|
49
49
|
writable: false,
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
Object.defineProperty(this, '__connected', {
|
|
53
53
|
value: false,
|
|
54
54
|
enumerable: false,
|
|
@@ -106,8 +106,8 @@ class Item extends EventEmitter {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
__delete() {
|
|
109
|
-
this.destroy();
|
|
110
109
|
this.emit('delete');
|
|
110
|
+
this.destroy();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -183,7 +183,9 @@ class Item extends EventEmitter {
|
|
|
183
183
|
this.__connected = false;
|
|
184
184
|
|
|
185
185
|
if (this.io) {
|
|
186
|
-
this.io
|
|
186
|
+
this.io
|
|
187
|
+
.then((io) => io.unsubscribe())
|
|
188
|
+
.catch((err) => this.__debug('Error Disconnecting:', err));
|
|
187
189
|
}
|
|
188
190
|
});
|
|
189
191
|
|