homey-api 3.6.1 → 3.6.2
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.
|
@@ -609,6 +609,12 @@ export namespace HomeyAPIV2.ManagerZones {
|
|
|
609
609
|
active: boolean;
|
|
610
610
|
|
|
611
611
|
icon: string;
|
|
612
|
+
|
|
613
|
+
uri: string;
|
|
614
|
+
|
|
615
|
+
manager: HomeyAPIV3.Manager;
|
|
616
|
+
|
|
617
|
+
homey: HomeyAPIV3;
|
|
612
618
|
}
|
|
613
619
|
}
|
|
614
620
|
|
|
@@ -982,8 +988,20 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
982
988
|
}
|
|
983
989
|
|
|
984
990
|
export namespace HomeyAPIV3Cloud.ManagerZones {
|
|
985
|
-
export class Zone {
|
|
991
|
+
export class Zone extends HomeyAPIV3.ManagerZones.Zone {
|
|
986
992
|
id: string;
|
|
993
|
+
|
|
994
|
+
uri: string;
|
|
995
|
+
|
|
996
|
+
manager: HomeyAPIV3.Manager;
|
|
997
|
+
|
|
998
|
+
homey: HomeyAPIV3;
|
|
999
|
+
|
|
1000
|
+
getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
|
|
1001
|
+
|
|
1002
|
+
connect(): Promise<any>;
|
|
1003
|
+
|
|
1004
|
+
disconnect(): Promise<any>;
|
|
987
1005
|
}
|
|
988
1006
|
}
|
|
989
1007
|
|
|
@@ -1425,8 +1443,20 @@ export namespace HomeyAPIV3Local.ManagerVirtualDevice {
|
|
|
1425
1443
|
}
|
|
1426
1444
|
|
|
1427
1445
|
export namespace HomeyAPIV3Local.ManagerZones {
|
|
1428
|
-
export class Zone {
|
|
1446
|
+
export class Zone extends HomeyAPIV3.ManagerZones.Zone {
|
|
1429
1447
|
id: string;
|
|
1448
|
+
|
|
1449
|
+
uri: string;
|
|
1450
|
+
|
|
1451
|
+
manager: HomeyAPIV3.Manager;
|
|
1452
|
+
|
|
1453
|
+
homey: HomeyAPIV3;
|
|
1454
|
+
|
|
1455
|
+
getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
|
|
1456
|
+
|
|
1457
|
+
connect(): Promise<any>;
|
|
1458
|
+
|
|
1459
|
+
disconnect(): Promise<any>;
|
|
1430
1460
|
}
|
|
1431
1461
|
}
|
|
1432
1462
|
|
|
@@ -4425,3 +4455,21 @@ export namespace HomeyAPIV3.ManagerInsights {
|
|
|
4425
4455
|
disconnect(): Promise<any>;
|
|
4426
4456
|
}
|
|
4427
4457
|
}
|
|
4458
|
+
|
|
4459
|
+
export namespace HomeyAPIV3.ManagerZones {
|
|
4460
|
+
export class Zone extends HomeyAPIV3.Item {
|
|
4461
|
+
id: string;
|
|
4462
|
+
|
|
4463
|
+
uri: string;
|
|
4464
|
+
|
|
4465
|
+
manager: HomeyAPIV3.Manager;
|
|
4466
|
+
|
|
4467
|
+
homey: HomeyAPIV3;
|
|
4468
|
+
|
|
4469
|
+
getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
|
|
4470
|
+
|
|
4471
|
+
connect(): Promise<any>;
|
|
4472
|
+
|
|
4473
|
+
disconnect(): Promise<any>;
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
@@ -633,6 +633,12 @@ export namespace HomeyAPIV2.ManagerZones {
|
|
|
633
633
|
active: boolean;
|
|
634
634
|
|
|
635
635
|
icon: string;
|
|
636
|
+
|
|
637
|
+
uri: string;
|
|
638
|
+
|
|
639
|
+
manager: HomeyAPIV3.Manager;
|
|
640
|
+
|
|
641
|
+
homey: HomeyAPIV3;
|
|
636
642
|
}
|
|
637
643
|
}
|
|
638
644
|
|
|
@@ -1030,8 +1036,20 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1030
1036
|
}
|
|
1031
1037
|
|
|
1032
1038
|
export namespace HomeyAPIV3Cloud.ManagerZones {
|
|
1033
|
-
export class Zone {
|
|
1039
|
+
export class Zone extends HomeyAPIV3.ManagerZones.Zone {
|
|
1034
1040
|
id: string;
|
|
1041
|
+
|
|
1042
|
+
uri: string;
|
|
1043
|
+
|
|
1044
|
+
manager: HomeyAPIV3.Manager;
|
|
1045
|
+
|
|
1046
|
+
homey: HomeyAPIV3;
|
|
1047
|
+
|
|
1048
|
+
getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
|
|
1049
|
+
|
|
1050
|
+
connect(): Promise<any>;
|
|
1051
|
+
|
|
1052
|
+
disconnect(): Promise<any>;
|
|
1035
1053
|
}
|
|
1036
1054
|
}
|
|
1037
1055
|
|
|
@@ -1501,8 +1519,20 @@ export namespace HomeyAPIV3Local.ManagerVirtualDevice {
|
|
|
1501
1519
|
}
|
|
1502
1520
|
|
|
1503
1521
|
export namespace HomeyAPIV3Local.ManagerZones {
|
|
1504
|
-
export class Zone {
|
|
1522
|
+
export class Zone extends HomeyAPIV3.ManagerZones.Zone {
|
|
1505
1523
|
id: string;
|
|
1524
|
+
|
|
1525
|
+
uri: string;
|
|
1526
|
+
|
|
1527
|
+
manager: HomeyAPIV3.Manager;
|
|
1528
|
+
|
|
1529
|
+
homey: HomeyAPIV3;
|
|
1530
|
+
|
|
1531
|
+
getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
|
|
1532
|
+
|
|
1533
|
+
connect(): Promise<any>;
|
|
1534
|
+
|
|
1535
|
+
disconnect(): Promise<any>;
|
|
1506
1536
|
}
|
|
1507
1537
|
}
|
|
1508
1538
|
|
|
@@ -10955,3 +10985,21 @@ export namespace HomeyAPIV3.ManagerInsights {
|
|
|
10955
10985
|
disconnect(): Promise<any>;
|
|
10956
10986
|
}
|
|
10957
10987
|
}
|
|
10988
|
+
|
|
10989
|
+
export namespace HomeyAPIV3.ManagerZones {
|
|
10990
|
+
export class Zone extends HomeyAPIV3.Item {
|
|
10991
|
+
id: string;
|
|
10992
|
+
|
|
10993
|
+
uri: string;
|
|
10994
|
+
|
|
10995
|
+
manager: HomeyAPIV3.Manager;
|
|
10996
|
+
|
|
10997
|
+
homey: HomeyAPIV3;
|
|
10998
|
+
|
|
10999
|
+
getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
|
|
11000
|
+
|
|
11001
|
+
connect(): Promise<any>;
|
|
11002
|
+
|
|
11003
|
+
disconnect(): Promise<any>;
|
|
11004
|
+
}
|
|
11005
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Item = require('../Item');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @class
|
|
7
|
+
* @hideconstructor
|
|
8
|
+
* @extends HomeyAPIV3.Item
|
|
9
|
+
* @memberof HomeyAPIV3.ManagerZones
|
|
10
|
+
*/
|
|
11
|
+
class Zone extends Item {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Get the parent zone.
|
|
15
|
+
* @returns {Promise<HomeyAPIV3.ManagerZones.Zone|null>}
|
|
16
|
+
*/
|
|
17
|
+
async getParent() {
|
|
18
|
+
if (!this.parent) return null;
|
|
19
|
+
|
|
20
|
+
return this.homey.zones.getZone({
|
|
21
|
+
id: this.parent,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
module.exports = Zone;
|
|
@@ -12,6 +12,7 @@ const ManagerFlow = require('./HomeyAPIV3/ManagerFlow');
|
|
|
12
12
|
const ManagerFlowToken = require('./HomeyAPIV3/ManagerFlowToken');
|
|
13
13
|
const ManagerInsights = require('./HomeyAPIV3/ManagerInsights');
|
|
14
14
|
const ManagerUsers = require('./HomeyAPIV3/ManagerUsers');
|
|
15
|
+
const ManagerZones = require('./HomeyAPIV3/ManagerZones');
|
|
15
16
|
const Manager = require('./HomeyAPIV3/Manager');
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -29,6 +30,7 @@ class HomeyAPIV3 extends HomeyAPI {
|
|
|
29
30
|
ManagerFlowToken,
|
|
30
31
|
ManagerInsights,
|
|
31
32
|
ManagerUsers,
|
|
33
|
+
ManagerZones,
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
static DEFAULT_TIMEOUT = 1000 * 10;
|