homey-api 3.13.2 → 3.14.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.
- package/assets/specifications/HomeyAPIV2.json +9 -0
- package/assets/specifications/HomeyAPIV3Cloud.json +351 -2
- package/assets/specifications/HomeyAPIV3Local.json +9 -63
- package/assets/types/homey-api.d.ts +110 -0
- package/assets/types/homey-api.private.d.ts +112 -18
- 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
|
},
|
|
@@ -914,6 +914,9 @@
|
|
|
914
914
|
},
|
|
915
915
|
"uiIndicator": {
|
|
916
916
|
"type": "string"
|
|
917
|
+
},
|
|
918
|
+
"hidden": {
|
|
919
|
+
"type": "boolean"
|
|
917
920
|
}
|
|
918
921
|
}
|
|
919
922
|
}
|
|
@@ -994,6 +997,141 @@
|
|
|
994
997
|
"type": "string"
|
|
995
998
|
}
|
|
996
999
|
}
|
|
1000
|
+
},
|
|
1001
|
+
"createGroup": {
|
|
1002
|
+
"method": "post",
|
|
1003
|
+
"path": "/group",
|
|
1004
|
+
"private": false,
|
|
1005
|
+
"scopes": [
|
|
1006
|
+
"homey.device"
|
|
1007
|
+
],
|
|
1008
|
+
"parameters": {
|
|
1009
|
+
"group": {
|
|
1010
|
+
"in": "body",
|
|
1011
|
+
"type": "object",
|
|
1012
|
+
"root": true,
|
|
1013
|
+
"required": true,
|
|
1014
|
+
"properties": {
|
|
1015
|
+
"name": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"required": true
|
|
1018
|
+
},
|
|
1019
|
+
"class": {
|
|
1020
|
+
"type": "string",
|
|
1021
|
+
"required": true
|
|
1022
|
+
},
|
|
1023
|
+
"zoneId": {
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"required": true
|
|
1026
|
+
},
|
|
1027
|
+
"deviceIds": {
|
|
1028
|
+
"type": "array",
|
|
1029
|
+
"required": true
|
|
1030
|
+
},
|
|
1031
|
+
"iconOverride": {
|
|
1032
|
+
"type": "string"
|
|
1033
|
+
},
|
|
1034
|
+
"iconDeviceId": {
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"deleteDeviceFromGroup": {
|
|
1042
|
+
"method": "delete",
|
|
1043
|
+
"path": "/group/:groupId/device/:deviceId",
|
|
1044
|
+
"private": false,
|
|
1045
|
+
"scopes": [
|
|
1046
|
+
"homey.device"
|
|
1047
|
+
],
|
|
1048
|
+
"parameters": {
|
|
1049
|
+
"deviceId": {
|
|
1050
|
+
"in": "path",
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"required": true
|
|
1053
|
+
},
|
|
1054
|
+
"groupId": {
|
|
1055
|
+
"in": "path",
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"required": true
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"updateGroup": {
|
|
1062
|
+
"method": "put",
|
|
1063
|
+
"path": "/group/:id",
|
|
1064
|
+
"private": false,
|
|
1065
|
+
"scopes": [
|
|
1066
|
+
"homey.device"
|
|
1067
|
+
],
|
|
1068
|
+
"parameters": {
|
|
1069
|
+
"id": {
|
|
1070
|
+
"in": "path",
|
|
1071
|
+
"type": "string",
|
|
1072
|
+
"required": true
|
|
1073
|
+
},
|
|
1074
|
+
"group": {
|
|
1075
|
+
"in": "body",
|
|
1076
|
+
"type": "object",
|
|
1077
|
+
"root": true,
|
|
1078
|
+
"required": true,
|
|
1079
|
+
"properties": {
|
|
1080
|
+
"name": {
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
},
|
|
1083
|
+
"deviceIds": {
|
|
1084
|
+
"type": "array"
|
|
1085
|
+
},
|
|
1086
|
+
"iconOverride": {
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
},
|
|
1089
|
+
"iconDeviceId": {
|
|
1090
|
+
"type": "string"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
"hideDeviceFromExternalService": {
|
|
1097
|
+
"method": "put",
|
|
1098
|
+
"path": "/device/:id/external-service-hide",
|
|
1099
|
+
"private": false,
|
|
1100
|
+
"scopes": [
|
|
1101
|
+
"homey.device"
|
|
1102
|
+
],
|
|
1103
|
+
"parameters": {
|
|
1104
|
+
"id": {
|
|
1105
|
+
"in": "path",
|
|
1106
|
+
"type": "string",
|
|
1107
|
+
"required": true
|
|
1108
|
+
},
|
|
1109
|
+
"service": {
|
|
1110
|
+
"in": "body",
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"required": true
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"unhideDeviceFromExternalService": {
|
|
1117
|
+
"method": "put",
|
|
1118
|
+
"path": "/device/:id/external-service-unhide",
|
|
1119
|
+
"private": false,
|
|
1120
|
+
"scopes": [
|
|
1121
|
+
"homey.device"
|
|
1122
|
+
],
|
|
1123
|
+
"parameters": {
|
|
1124
|
+
"id": {
|
|
1125
|
+
"in": "path",
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"required": true
|
|
1128
|
+
},
|
|
1129
|
+
"service": {
|
|
1130
|
+
"in": "body",
|
|
1131
|
+
"type": "string",
|
|
1132
|
+
"required": true
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
997
1135
|
}
|
|
998
1136
|
}
|
|
999
1137
|
},
|
|
@@ -1452,6 +1590,33 @@
|
|
|
1452
1590
|
"homey.energy"
|
|
1453
1591
|
]
|
|
1454
1592
|
},
|
|
1593
|
+
"getOptionElectricityPriceDynamicPreferredInterval": {
|
|
1594
|
+
"method": "GET",
|
|
1595
|
+
"path": "/option/electricityPriceDynamicPreferredInterval",
|
|
1596
|
+
"scopes": [
|
|
1597
|
+
"homey.energy.readonly"
|
|
1598
|
+
]
|
|
1599
|
+
},
|
|
1600
|
+
"setOptionElectricityPriceDynamicPreferredInterval": {
|
|
1601
|
+
"method": "PUT",
|
|
1602
|
+
"path": "/option/electricityPriceDynamicPreferredInterval",
|
|
1603
|
+
"scopes": [
|
|
1604
|
+
"homey.energy"
|
|
1605
|
+
],
|
|
1606
|
+
"parameters": {
|
|
1607
|
+
"value": {
|
|
1608
|
+
"in": "body",
|
|
1609
|
+
"required": true
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
"unsetOptionElectricityPriceDynamicPreferredInterval": {
|
|
1614
|
+
"method": "DELETE",
|
|
1615
|
+
"path": "/option/electricityPriceDynamicPreferredInterval",
|
|
1616
|
+
"scopes": [
|
|
1617
|
+
"homey.energy"
|
|
1618
|
+
]
|
|
1619
|
+
},
|
|
1455
1620
|
"getState": {
|
|
1456
1621
|
"method": "get",
|
|
1457
1622
|
"path": "/state",
|
|
@@ -1604,6 +1769,129 @@
|
|
|
1604
1769
|
}
|
|
1605
1770
|
}
|
|
1606
1771
|
},
|
|
1772
|
+
"fetchDynamicElectricityPrices": {
|
|
1773
|
+
"method": "get",
|
|
1774
|
+
"path": "/price/electricity/dynamic",
|
|
1775
|
+
"private": false,
|
|
1776
|
+
"scopes": [
|
|
1777
|
+
"homey.energy.readonly"
|
|
1778
|
+
],
|
|
1779
|
+
"parameters": {
|
|
1780
|
+
"date": {
|
|
1781
|
+
"in": "query",
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"required": true
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
},
|
|
1787
|
+
"setDynamicElectricityPriceUserCosts": {
|
|
1788
|
+
"method": "put",
|
|
1789
|
+
"path": "/price/electricity/dynamic/user-costs",
|
|
1790
|
+
"private": false,
|
|
1791
|
+
"scopes": [
|
|
1792
|
+
"homey.energy"
|
|
1793
|
+
],
|
|
1794
|
+
"parameters": {
|
|
1795
|
+
"mathExpression": {
|
|
1796
|
+
"in": "body",
|
|
1797
|
+
"type": "string",
|
|
1798
|
+
"required": true
|
|
1799
|
+
},
|
|
1800
|
+
"type": {
|
|
1801
|
+
"in": "body",
|
|
1802
|
+
"type": "string"
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
"getDynamicElectricityPriceUserCosts": {
|
|
1807
|
+
"method": "get",
|
|
1808
|
+
"path": "/price/electricity/dynamic/user-costs",
|
|
1809
|
+
"private": false,
|
|
1810
|
+
"scopes": [
|
|
1811
|
+
"homey.energy.readonly"
|
|
1812
|
+
],
|
|
1813
|
+
"parameters": {}
|
|
1814
|
+
},
|
|
1815
|
+
"unsetDynamicElectricityPriceUserCosts": {
|
|
1816
|
+
"method": "delete",
|
|
1817
|
+
"path": "/price/electricity/dynamic/user-costs",
|
|
1818
|
+
"private": false,
|
|
1819
|
+
"scopes": [
|
|
1820
|
+
"homey.energy"
|
|
1821
|
+
],
|
|
1822
|
+
"parameters": {}
|
|
1823
|
+
},
|
|
1824
|
+
"setElectricityPriceType": {
|
|
1825
|
+
"method": "put",
|
|
1826
|
+
"path": "/price/electricity/:type",
|
|
1827
|
+
"private": false,
|
|
1828
|
+
"scopes": [
|
|
1829
|
+
"homey.energy"
|
|
1830
|
+
],
|
|
1831
|
+
"parameters": {
|
|
1832
|
+
"type": {
|
|
1833
|
+
"in": "path",
|
|
1834
|
+
"type": "string",
|
|
1835
|
+
"required": true
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
"getElectricityPriceType": {
|
|
1840
|
+
"method": "get",
|
|
1841
|
+
"path": "/price/electricity/type",
|
|
1842
|
+
"private": false,
|
|
1843
|
+
"scopes": [
|
|
1844
|
+
"homey.energy.readonly"
|
|
1845
|
+
],
|
|
1846
|
+
"parameters": {}
|
|
1847
|
+
},
|
|
1848
|
+
"getDynamicPricesElectricityZones": {
|
|
1849
|
+
"method": "get",
|
|
1850
|
+
"path": "/price/electricity/dynamic/zones",
|
|
1851
|
+
"private": false,
|
|
1852
|
+
"scopes": [
|
|
1853
|
+
"homey.energy.readonly"
|
|
1854
|
+
],
|
|
1855
|
+
"parameters": {}
|
|
1856
|
+
},
|
|
1857
|
+
"getDynamicPricesElectricityZone": {
|
|
1858
|
+
"method": "get",
|
|
1859
|
+
"path": "/price/electricity/dynamic/zone",
|
|
1860
|
+
"private": false,
|
|
1861
|
+
"scopes": [
|
|
1862
|
+
"homey.energy.readonly"
|
|
1863
|
+
],
|
|
1864
|
+
"parameters": {}
|
|
1865
|
+
},
|
|
1866
|
+
"setDynamicPricesElectricityZone": {
|
|
1867
|
+
"method": "put",
|
|
1868
|
+
"path": "/price/electricity/dynamic/zone",
|
|
1869
|
+
"private": false,
|
|
1870
|
+
"scopes": [
|
|
1871
|
+
"homey.energy"
|
|
1872
|
+
],
|
|
1873
|
+
"parameters": {
|
|
1874
|
+
"options": {
|
|
1875
|
+
"in": "body",
|
|
1876
|
+
"type": "object",
|
|
1877
|
+
"required": true,
|
|
1878
|
+
"properties": {
|
|
1879
|
+
"zoneId": {
|
|
1880
|
+
"type": "string"
|
|
1881
|
+
},
|
|
1882
|
+
"zoneVersion": {
|
|
1883
|
+
"type": "string"
|
|
1884
|
+
},
|
|
1885
|
+
"zoneName": {
|
|
1886
|
+
"type": "string"
|
|
1887
|
+
},
|
|
1888
|
+
"zoneCountryKey": {
|
|
1889
|
+
"type": "string"
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1607
1895
|
"enableDummyEnergyReports": {
|
|
1608
1896
|
"method": "post",
|
|
1609
1897
|
"path": "/reports/dummy/enable",
|
|
@@ -1784,6 +2072,10 @@
|
|
|
1784
2072
|
"dataRequestActiveState": {
|
|
1785
2073
|
"in": "body",
|
|
1786
2074
|
"type": "string"
|
|
2075
|
+
},
|
|
2076
|
+
"mode": {
|
|
2077
|
+
"in": "body",
|
|
2078
|
+
"type": "string"
|
|
1787
2079
|
}
|
|
1788
2080
|
}
|
|
1789
2081
|
},
|
|
@@ -1840,7 +2132,9 @@
|
|
|
1840
2132
|
"method": "put",
|
|
1841
2133
|
"path": "/:deviceId/phase-load",
|
|
1842
2134
|
"private": true,
|
|
1843
|
-
"scopes": [
|
|
2135
|
+
"scopes": [
|
|
2136
|
+
"homey.device"
|
|
2137
|
+
],
|
|
1844
2138
|
"parameters": {
|
|
1845
2139
|
"deviceId": {
|
|
1846
2140
|
"in": "path",
|
|
@@ -1863,7 +2157,9 @@
|
|
|
1863
2157
|
"method": "get",
|
|
1864
2158
|
"path": "/:deviceId/phase-load",
|
|
1865
2159
|
"private": true,
|
|
1866
|
-
"scopes": [
|
|
2160
|
+
"scopes": [
|
|
2161
|
+
"homey.device.readonly"
|
|
2162
|
+
],
|
|
1867
2163
|
"parameters": {
|
|
1868
2164
|
"deviceId": {
|
|
1869
2165
|
"in": "path",
|
|
@@ -4455,6 +4751,28 @@
|
|
|
4455
4751
|
}
|
|
4456
4752
|
}
|
|
4457
4753
|
},
|
|
4754
|
+
"VirtualDriverRF433": {
|
|
4755
|
+
"id": "virtualdriverrf433",
|
|
4756
|
+
"schema": {
|
|
4757
|
+
"type": "object",
|
|
4758
|
+
"properties": {
|
|
4759
|
+
"id": {
|
|
4760
|
+
"type": "string"
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
4763
|
+
}
|
|
4764
|
+
},
|
|
4765
|
+
"VirtualDeviceRF433": {
|
|
4766
|
+
"id": "virtualdevicerf433",
|
|
4767
|
+
"schema": {
|
|
4768
|
+
"type": "object",
|
|
4769
|
+
"properties": {
|
|
4770
|
+
"id": {
|
|
4771
|
+
"type": "string"
|
|
4772
|
+
}
|
|
4773
|
+
}
|
|
4774
|
+
}
|
|
4775
|
+
},
|
|
4458
4776
|
"VirtualDriverHomeyBridge": {
|
|
4459
4777
|
"id": "virtualdriverbridge",
|
|
4460
4778
|
"schema": {
|
|
@@ -4498,6 +4816,28 @@
|
|
|
4498
4816
|
}
|
|
4499
4817
|
}
|
|
4500
4818
|
}
|
|
4819
|
+
},
|
|
4820
|
+
"VirtualDriverGroup": {
|
|
4821
|
+
"id": "virtualdrivergroup",
|
|
4822
|
+
"schema": {
|
|
4823
|
+
"type": "object",
|
|
4824
|
+
"properties": {
|
|
4825
|
+
"id": {
|
|
4826
|
+
"type": "string"
|
|
4827
|
+
}
|
|
4828
|
+
}
|
|
4829
|
+
}
|
|
4830
|
+
},
|
|
4831
|
+
"VirtualDeviceGroup": {
|
|
4832
|
+
"id": "virtualdevicegroup",
|
|
4833
|
+
"schema": {
|
|
4834
|
+
"type": "object",
|
|
4835
|
+
"properties": {
|
|
4836
|
+
"id": {
|
|
4837
|
+
"type": "string"
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4501
4841
|
}
|
|
4502
4842
|
},
|
|
4503
4843
|
"operations": {
|
|
@@ -4534,6 +4874,15 @@
|
|
|
4534
4874
|
"homey.geolocation.readonly"
|
|
4535
4875
|
],
|
|
4536
4876
|
"parameters": {}
|
|
4877
|
+
},
|
|
4878
|
+
"getWeatherHourly": {
|
|
4879
|
+
"method": "get",
|
|
4880
|
+
"path": "/forecast/hourly",
|
|
4881
|
+
"private": false,
|
|
4882
|
+
"scopes": [
|
|
4883
|
+
"homey.geolocation.readonly"
|
|
4884
|
+
],
|
|
4885
|
+
"parameters": {}
|
|
4537
4886
|
}
|
|
4538
4887
|
}
|
|
4539
4888
|
},
|
|
@@ -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
|
},
|
|
@@ -6459,45 +6468,6 @@
|
|
|
6459
6468
|
}
|
|
6460
6469
|
}
|
|
6461
6470
|
},
|
|
6462
|
-
"getFirmwareVersion": {
|
|
6463
|
-
"method": "get",
|
|
6464
|
-
"path": "/firmware-version",
|
|
6465
|
-
"private": true,
|
|
6466
|
-
"scopes": [
|
|
6467
|
-
"homey.system"
|
|
6468
|
-
],
|
|
6469
|
-
"parameters": {}
|
|
6470
|
-
},
|
|
6471
|
-
"flashFirmware": {
|
|
6472
|
-
"method": "put",
|
|
6473
|
-
"path": "/flash-firmware",
|
|
6474
|
-
"private": true,
|
|
6475
|
-
"scopes": [
|
|
6476
|
-
"homey.system"
|
|
6477
|
-
],
|
|
6478
|
-
"parameters": {
|
|
6479
|
-
"erase": {
|
|
6480
|
-
"in": "body",
|
|
6481
|
-
"type": "string"
|
|
6482
|
-
},
|
|
6483
|
-
"downgrade": {
|
|
6484
|
-
"in": "body",
|
|
6485
|
-
"type": "string"
|
|
6486
|
-
},
|
|
6487
|
-
"version": {
|
|
6488
|
-
"in": "body",
|
|
6489
|
-
"type": "string"
|
|
6490
|
-
},
|
|
6491
|
-
"firmware": {
|
|
6492
|
-
"in": "body",
|
|
6493
|
-
"type": "string"
|
|
6494
|
-
},
|
|
6495
|
-
"shasum": {
|
|
6496
|
-
"in": "body",
|
|
6497
|
-
"type": "string"
|
|
6498
|
-
}
|
|
6499
|
-
}
|
|
6500
|
-
},
|
|
6501
6471
|
"getLog": {
|
|
6502
6472
|
"method": "get",
|
|
6503
6473
|
"path": "/log",
|
|
@@ -6521,30 +6491,6 @@
|
|
|
6521
6491
|
"required": true
|
|
6522
6492
|
}
|
|
6523
6493
|
}
|
|
6524
|
-
},
|
|
6525
|
-
"setLBTThreshold": {
|
|
6526
|
-
"method": "put",
|
|
6527
|
-
"path": "/lbt-threshold",
|
|
6528
|
-
"private": true,
|
|
6529
|
-
"scopes": [
|
|
6530
|
-
"homey.system"
|
|
6531
|
-
],
|
|
6532
|
-
"parameters": {
|
|
6533
|
-
"threshold": {
|
|
6534
|
-
"in": "body",
|
|
6535
|
-
"type": "number",
|
|
6536
|
-
"required": true
|
|
6537
|
-
}
|
|
6538
|
-
}
|
|
6539
|
-
},
|
|
6540
|
-
"attemptNvmFix": {
|
|
6541
|
-
"method": "put",
|
|
6542
|
-
"path": "/attempt-nvm-fix",
|
|
6543
|
-
"private": true,
|
|
6544
|
-
"scopes": [
|
|
6545
|
-
"homey.system"
|
|
6546
|
-
],
|
|
6547
|
-
"parameters": {}
|
|
6548
6494
|
}
|
|
6549
6495
|
}
|
|
6550
6496
|
}
|
|
@@ -976,6 +976,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
976
976
|
id: string;
|
|
977
977
|
}
|
|
978
978
|
|
|
979
|
+
export class VirtualDeviceGroup {
|
|
980
|
+
id: string;
|
|
981
|
+
}
|
|
982
|
+
|
|
979
983
|
export class VirtualDeviceHomeyBridge {
|
|
980
984
|
id: string;
|
|
981
985
|
}
|
|
@@ -984,6 +988,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
984
988
|
id: string;
|
|
985
989
|
}
|
|
986
990
|
|
|
991
|
+
export class VirtualDeviceRF433 {
|
|
992
|
+
id: string;
|
|
993
|
+
}
|
|
994
|
+
|
|
987
995
|
export class VirtualDeviceZigbee {
|
|
988
996
|
id: string;
|
|
989
997
|
}
|
|
@@ -1000,6 +1008,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1000
1008
|
id: string;
|
|
1001
1009
|
}
|
|
1002
1010
|
|
|
1011
|
+
export class VirtualDriverGroup {
|
|
1012
|
+
id: string;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1003
1015
|
export class VirtualDriverHomeyBridge {
|
|
1004
1016
|
id: string;
|
|
1005
1017
|
}
|
|
@@ -1008,6 +1020,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1008
1020
|
id: string;
|
|
1009
1021
|
}
|
|
1010
1022
|
|
|
1023
|
+
export class VirtualDriverRF433 {
|
|
1024
|
+
id: string;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1011
1027
|
export class VirtualDriverZigbee {
|
|
1012
1028
|
id: string;
|
|
1013
1029
|
}
|
|
@@ -2129,6 +2145,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
2129
2145
|
virtualClass?: string;
|
|
2130
2146
|
|
|
2131
2147
|
uiIndicator?: string;
|
|
2148
|
+
|
|
2149
|
+
hidden?: boolean;
|
|
2132
2150
|
};
|
|
2133
2151
|
}): Promise<HomeyAPIV3Cloud.ManagerDevices.Device>;
|
|
2134
2152
|
|
|
@@ -2151,6 +2169,54 @@ export namespace HomeyAPIV3Cloud {
|
|
|
2151
2169
|
|
|
2152
2170
|
transactionId?: string;
|
|
2153
2171
|
}): Promise<any>;
|
|
2172
|
+
|
|
2173
|
+
createGroup(opts: {
|
|
2174
|
+
group: {
|
|
2175
|
+
name: string;
|
|
2176
|
+
|
|
2177
|
+
class: string;
|
|
2178
|
+
|
|
2179
|
+
zoneId: string;
|
|
2180
|
+
|
|
2181
|
+
deviceIds: Array<any>;
|
|
2182
|
+
|
|
2183
|
+
iconOverride?: string;
|
|
2184
|
+
|
|
2185
|
+
iconDeviceId?: string;
|
|
2186
|
+
};
|
|
2187
|
+
}): Promise<any>;
|
|
2188
|
+
|
|
2189
|
+
deleteDeviceFromGroup(opts: {
|
|
2190
|
+
deviceId: string;
|
|
2191
|
+
|
|
2192
|
+
groupId: string;
|
|
2193
|
+
}): Promise<any>;
|
|
2194
|
+
|
|
2195
|
+
updateGroup(opts: {
|
|
2196
|
+
id: string;
|
|
2197
|
+
|
|
2198
|
+
group: {
|
|
2199
|
+
name?: string;
|
|
2200
|
+
|
|
2201
|
+
deviceIds?: Array<any>;
|
|
2202
|
+
|
|
2203
|
+
iconOverride?: string;
|
|
2204
|
+
|
|
2205
|
+
iconDeviceId?: string;
|
|
2206
|
+
};
|
|
2207
|
+
}): Promise<any>;
|
|
2208
|
+
|
|
2209
|
+
hideDeviceFromExternalService(opts: {
|
|
2210
|
+
id: string;
|
|
2211
|
+
|
|
2212
|
+
service: string;
|
|
2213
|
+
}): Promise<any>;
|
|
2214
|
+
|
|
2215
|
+
unhideDeviceFromExternalService(opts: {
|
|
2216
|
+
id: string;
|
|
2217
|
+
|
|
2218
|
+
service: string;
|
|
2219
|
+
}): Promise<any>;
|
|
2154
2220
|
}
|
|
2155
2221
|
|
|
2156
2222
|
export class ManagerDevkit extends HomeyAPIV3.ManagerDevkit {
|
|
@@ -2308,6 +2374,14 @@ export namespace HomeyAPIV3Cloud {
|
|
|
2308
2374
|
|
|
2309
2375
|
unsetOptionWaterPriceFixed(): Promise<any>;
|
|
2310
2376
|
|
|
2377
|
+
getOptionElectricityPriceDynamicPreferredInterval(): Promise<any>;
|
|
2378
|
+
|
|
2379
|
+
setOptionElectricityPriceDynamicPreferredInterval(opts: {
|
|
2380
|
+
value: any;
|
|
2381
|
+
}): Promise<any>;
|
|
2382
|
+
|
|
2383
|
+
unsetOptionElectricityPriceDynamicPreferredInterval(): Promise<any>;
|
|
2384
|
+
|
|
2311
2385
|
getState(): Promise<any>;
|
|
2312
2386
|
|
|
2313
2387
|
getLiveReport(opts: { zone?: string }): Promise<any>;
|
|
@@ -2351,6 +2425,38 @@ export namespace HomeyAPIV3Cloud {
|
|
|
2351
2425
|
deviceIds?: Array<any>;
|
|
2352
2426
|
};
|
|
2353
2427
|
}): Promise<any>;
|
|
2428
|
+
|
|
2429
|
+
fetchDynamicElectricityPrices(opts: { date: string }): Promise<any>;
|
|
2430
|
+
|
|
2431
|
+
setDynamicElectricityPriceUserCosts(opts: {
|
|
2432
|
+
mathExpression: string;
|
|
2433
|
+
|
|
2434
|
+
type?: string;
|
|
2435
|
+
}): Promise<any>;
|
|
2436
|
+
|
|
2437
|
+
getDynamicElectricityPriceUserCosts(): Promise<any>;
|
|
2438
|
+
|
|
2439
|
+
unsetDynamicElectricityPriceUserCosts(): Promise<any>;
|
|
2440
|
+
|
|
2441
|
+
setElectricityPriceType(opts: { type: string }): Promise<any>;
|
|
2442
|
+
|
|
2443
|
+
getElectricityPriceType(): Promise<any>;
|
|
2444
|
+
|
|
2445
|
+
getDynamicPricesElectricityZones(): Promise<any>;
|
|
2446
|
+
|
|
2447
|
+
getDynamicPricesElectricityZone(): Promise<any>;
|
|
2448
|
+
|
|
2449
|
+
setDynamicPricesElectricityZone(opts: {
|
|
2450
|
+
options: {
|
|
2451
|
+
zoneId?: string;
|
|
2452
|
+
|
|
2453
|
+
zoneVersion?: string;
|
|
2454
|
+
|
|
2455
|
+
zoneName?: string;
|
|
2456
|
+
|
|
2457
|
+
zoneCountryKey?: string;
|
|
2458
|
+
};
|
|
2459
|
+
}): Promise<any>;
|
|
2354
2460
|
}
|
|
2355
2461
|
|
|
2356
2462
|
export class ManagerEnergyDongle extends HomeyAPIV3.ManagerEnergyDongle {
|
|
@@ -2899,6 +3005,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
2899
3005
|
getState(): Promise<any>;
|
|
2900
3006
|
|
|
2901
3007
|
getWeather(): Promise<any>;
|
|
3008
|
+
|
|
3009
|
+
getWeatherHourly(): Promise<any>;
|
|
2902
3010
|
}
|
|
2903
3011
|
|
|
2904
3012
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -4627,6 +4735,8 @@ export namespace HomeyAPIV3Local {
|
|
|
4627
4735
|
getState(): Promise<any>;
|
|
4628
4736
|
|
|
4629
4737
|
getWeather(): Promise<any>;
|
|
4738
|
+
|
|
4739
|
+
getWeatherHourly(): Promise<any>;
|
|
4630
4740
|
}
|
|
4631
4741
|
|
|
4632
4742
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -1059,6 +1059,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1059
1059
|
id: string;
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
|
+
export class VirtualDeviceGroup {
|
|
1063
|
+
id: string;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1062
1066
|
export class VirtualDeviceHomeyBridge {
|
|
1063
1067
|
id: string;
|
|
1064
1068
|
}
|
|
@@ -1067,6 +1071,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1067
1071
|
id: string;
|
|
1068
1072
|
}
|
|
1069
1073
|
|
|
1074
|
+
export class VirtualDeviceRF433 {
|
|
1075
|
+
id: string;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1070
1078
|
export class VirtualDeviceZigbee {
|
|
1071
1079
|
id: string;
|
|
1072
1080
|
}
|
|
@@ -1083,6 +1091,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1083
1091
|
id: string;
|
|
1084
1092
|
}
|
|
1085
1093
|
|
|
1094
|
+
export class VirtualDriverGroup {
|
|
1095
|
+
id: string;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1086
1098
|
export class VirtualDriverHomeyBridge {
|
|
1087
1099
|
id: string;
|
|
1088
1100
|
}
|
|
@@ -1091,6 +1103,10 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
|
|
|
1091
1103
|
id: string;
|
|
1092
1104
|
}
|
|
1093
1105
|
|
|
1106
|
+
export class VirtualDriverRF433 {
|
|
1107
|
+
id: string;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1094
1110
|
export class VirtualDriverZigbee {
|
|
1095
1111
|
id: string;
|
|
1096
1112
|
}
|
|
@@ -9018,6 +9034,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9018
9034
|
virtualClass?: string;
|
|
9019
9035
|
|
|
9020
9036
|
uiIndicator?: string;
|
|
9037
|
+
|
|
9038
|
+
hidden?: boolean;
|
|
9021
9039
|
};
|
|
9022
9040
|
}): Promise<HomeyAPIV3Cloud.ManagerDevices.Device>;
|
|
9023
9041
|
|
|
@@ -9040,6 +9058,54 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9040
9058
|
|
|
9041
9059
|
transactionId?: string;
|
|
9042
9060
|
}): Promise<any>;
|
|
9061
|
+
|
|
9062
|
+
createGroup(opts: {
|
|
9063
|
+
group: {
|
|
9064
|
+
name: string;
|
|
9065
|
+
|
|
9066
|
+
class: string;
|
|
9067
|
+
|
|
9068
|
+
zoneId: string;
|
|
9069
|
+
|
|
9070
|
+
deviceIds: Array<any>;
|
|
9071
|
+
|
|
9072
|
+
iconOverride?: string;
|
|
9073
|
+
|
|
9074
|
+
iconDeviceId?: string;
|
|
9075
|
+
};
|
|
9076
|
+
}): Promise<any>;
|
|
9077
|
+
|
|
9078
|
+
deleteDeviceFromGroup(opts: {
|
|
9079
|
+
deviceId: string;
|
|
9080
|
+
|
|
9081
|
+
groupId: string;
|
|
9082
|
+
}): Promise<any>;
|
|
9083
|
+
|
|
9084
|
+
updateGroup(opts: {
|
|
9085
|
+
id: string;
|
|
9086
|
+
|
|
9087
|
+
group: {
|
|
9088
|
+
name?: string;
|
|
9089
|
+
|
|
9090
|
+
deviceIds?: Array<any>;
|
|
9091
|
+
|
|
9092
|
+
iconOverride?: string;
|
|
9093
|
+
|
|
9094
|
+
iconDeviceId?: string;
|
|
9095
|
+
};
|
|
9096
|
+
}): Promise<any>;
|
|
9097
|
+
|
|
9098
|
+
hideDeviceFromExternalService(opts: {
|
|
9099
|
+
id: string;
|
|
9100
|
+
|
|
9101
|
+
service: string;
|
|
9102
|
+
}): Promise<any>;
|
|
9103
|
+
|
|
9104
|
+
unhideDeviceFromExternalService(opts: {
|
|
9105
|
+
id: string;
|
|
9106
|
+
|
|
9107
|
+
service: string;
|
|
9108
|
+
}): Promise<any>;
|
|
9043
9109
|
}
|
|
9044
9110
|
|
|
9045
9111
|
export class ManagerDevkit extends HomeyAPIV3.ManagerDevkit {
|
|
@@ -9197,6 +9263,14 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9197
9263
|
|
|
9198
9264
|
unsetOptionWaterPriceFixed(): Promise<any>;
|
|
9199
9265
|
|
|
9266
|
+
getOptionElectricityPriceDynamicPreferredInterval(): Promise<any>;
|
|
9267
|
+
|
|
9268
|
+
setOptionElectricityPriceDynamicPreferredInterval(opts: {
|
|
9269
|
+
value: any;
|
|
9270
|
+
}): Promise<any>;
|
|
9271
|
+
|
|
9272
|
+
unsetOptionElectricityPriceDynamicPreferredInterval(): Promise<any>;
|
|
9273
|
+
|
|
9200
9274
|
getState(): Promise<any>;
|
|
9201
9275
|
|
|
9202
9276
|
getLiveReport(opts: { zone?: string }): Promise<any>;
|
|
@@ -9241,6 +9315,38 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9241
9315
|
};
|
|
9242
9316
|
}): Promise<any>;
|
|
9243
9317
|
|
|
9318
|
+
fetchDynamicElectricityPrices(opts: { date: string }): Promise<any>;
|
|
9319
|
+
|
|
9320
|
+
setDynamicElectricityPriceUserCosts(opts: {
|
|
9321
|
+
mathExpression: string;
|
|
9322
|
+
|
|
9323
|
+
type?: string;
|
|
9324
|
+
}): Promise<any>;
|
|
9325
|
+
|
|
9326
|
+
getDynamicElectricityPriceUserCosts(): Promise<any>;
|
|
9327
|
+
|
|
9328
|
+
unsetDynamicElectricityPriceUserCosts(): Promise<any>;
|
|
9329
|
+
|
|
9330
|
+
setElectricityPriceType(opts: { type: string }): Promise<any>;
|
|
9331
|
+
|
|
9332
|
+
getElectricityPriceType(): Promise<any>;
|
|
9333
|
+
|
|
9334
|
+
getDynamicPricesElectricityZones(): Promise<any>;
|
|
9335
|
+
|
|
9336
|
+
getDynamicPricesElectricityZone(): Promise<any>;
|
|
9337
|
+
|
|
9338
|
+
setDynamicPricesElectricityZone(opts: {
|
|
9339
|
+
options: {
|
|
9340
|
+
zoneId?: string;
|
|
9341
|
+
|
|
9342
|
+
zoneVersion?: string;
|
|
9343
|
+
|
|
9344
|
+
zoneName?: string;
|
|
9345
|
+
|
|
9346
|
+
zoneCountryKey?: string;
|
|
9347
|
+
};
|
|
9348
|
+
}): Promise<any>;
|
|
9349
|
+
|
|
9244
9350
|
enableDummyEnergyReports(opts: {
|
|
9245
9351
|
fromDate?: string;
|
|
9246
9352
|
|
|
@@ -9295,6 +9401,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9295
9401
|
persistent?: boolean;
|
|
9296
9402
|
|
|
9297
9403
|
dataRequestActiveState?: string;
|
|
9404
|
+
|
|
9405
|
+
mode?: string;
|
|
9298
9406
|
}): Promise<any>;
|
|
9299
9407
|
|
|
9300
9408
|
checkFirmwareUpdateAvailable(opts: { deviceId: string }): Promise<any>;
|
|
@@ -9890,6 +9998,8 @@ export namespace HomeyAPIV3Cloud {
|
|
|
9890
9998
|
getState(): Promise<any>;
|
|
9891
9999
|
|
|
9892
10000
|
getWeather(): Promise<any>;
|
|
10001
|
+
|
|
10002
|
+
getWeatherHourly(): Promise<any>;
|
|
9893
10003
|
}
|
|
9894
10004
|
|
|
9895
10005
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -11904,6 +12014,8 @@ export namespace HomeyAPIV3Local {
|
|
|
11904
12014
|
getState(): Promise<any>;
|
|
11905
12015
|
|
|
11906
12016
|
getWeather(): Promise<any>;
|
|
12017
|
+
|
|
12018
|
+
getWeatherHourly(): Promise<any>;
|
|
11907
12019
|
}
|
|
11908
12020
|
|
|
11909
12021
|
export class ManagerWebserver extends HomeyAPIV3.ManagerWebserver {
|
|
@@ -11969,27 +12081,9 @@ export namespace HomeyAPIV3Local {
|
|
|
11969
12081
|
opts?: object;
|
|
11970
12082
|
}): Promise<any>;
|
|
11971
12083
|
|
|
11972
|
-
getFirmwareVersion(): Promise<any>;
|
|
11973
|
-
|
|
11974
|
-
flashFirmware(opts: {
|
|
11975
|
-
erase?: string;
|
|
11976
|
-
|
|
11977
|
-
downgrade?: string;
|
|
11978
|
-
|
|
11979
|
-
version?: string;
|
|
11980
|
-
|
|
11981
|
-
firmware?: string;
|
|
11982
|
-
|
|
11983
|
-
shasum?: string;
|
|
11984
|
-
}): Promise<any>;
|
|
11985
|
-
|
|
11986
12084
|
getLog(): Promise<any>;
|
|
11987
12085
|
|
|
11988
12086
|
setLogEnabled(opts: { enabled: boolean }): Promise<any>;
|
|
11989
|
-
|
|
11990
|
-
setLBTThreshold(opts: { threshold: number }): Promise<any>;
|
|
11991
|
-
|
|
11992
|
-
attemptNvmFix(): Promise<any>;
|
|
11993
12087
|
}
|
|
11994
12088
|
}
|
|
11995
12089
|
|
|
@@ -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
|
|