homebridge-melcloud-control 3.6.9 → 3.7.0-beta.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.
@@ -232,6 +232,13 @@
232
232
  "required": false,
233
233
  "readonly": true
234
234
  },
235
+ "disableAccessory": {
236
+ "title": "Disable Accessory",
237
+ "type": "boolean",
238
+ "default": false,
239
+ "description": "Here You can disable this accessory.",
240
+ "required": false
241
+ },
235
242
  "name": {
236
243
  "title": "Name",
237
244
  "type": "string",
@@ -794,6 +801,13 @@
794
801
  "required": false,
795
802
  "readonly": true
796
803
  },
804
+ "disableAccessory": {
805
+ "title": "Disable Accessory",
806
+ "type": "boolean",
807
+ "default": false,
808
+ "description": "Here You can disable this accessory.",
809
+ "required": false
810
+ },
797
811
  "name": {
798
812
  "title": "Name",
799
813
  "type": "string",
@@ -1222,6 +1236,13 @@
1222
1236
  "required": false,
1223
1237
  "readonly": true
1224
1238
  },
1239
+ "disableAccessory": {
1240
+ "title": "Disable Accessory",
1241
+ "type": "boolean",
1242
+ "default": false,
1243
+ "description": "Here You can disable this accessory.",
1244
+ "required": false
1245
+ },
1225
1246
  "name": {
1226
1247
  "title": "Name",
1227
1248
  "type": "string",
@@ -1737,6 +1758,7 @@
1737
1758
  "key": "accounts[].ataDevices[].typeString",
1738
1759
  "readonly": true
1739
1760
  },
1761
+ "accounts[].ataDevices[].disableAccessory",
1740
1762
  {
1741
1763
  "key": "accounts[].ataDevices[]",
1742
1764
  "type": "section",
@@ -1750,7 +1772,10 @@
1750
1772
  "accounts[].ataDevices[].coolDryFanMode",
1751
1773
  "accounts[].ataDevices[].autoDryFanMode",
1752
1774
  "accounts[].ataDevices[].refreshInterval"
1753
- ]
1775
+ ],
1776
+ "condition": {
1777
+ "functionBody": "return accounts[].ataDevices[].disableAccessory === false;"
1778
+ }
1754
1779
  },
1755
1780
  {
1756
1781
  "key": "accounts[].ataDevices[]",
@@ -1773,7 +1798,10 @@
1773
1798
  "accounts[].ataDevices[].presets[].namePrefix"
1774
1799
  ]
1775
1800
  }
1776
- ]
1801
+ ],
1802
+ "condition": {
1803
+ "functionBody": "return accounts[].ataDevices[].disableAccessory === false;"
1804
+ }
1777
1805
  },
1778
1806
  {
1779
1807
  "key": "accounts[].ataDevices[]",
@@ -1784,7 +1812,10 @@
1784
1812
  "items": [
1785
1813
  "accounts[].ataDevices[].temperatureSensor",
1786
1814
  "accounts[].ataDevices[].temperatureSensorOutdoor"
1787
- ]
1815
+ ],
1816
+ "condition": {
1817
+ "functionBody": "return accounts[].ataDevices[].disableAccessory === false;"
1818
+ }
1788
1819
  },
1789
1820
  {
1790
1821
  "key": "accounts[].ataDevices[]",
@@ -1804,7 +1835,10 @@
1804
1835
  "accounts[].ataDevices[].buttonsSensors[].namePrefix"
1805
1836
  ]
1806
1837
  }
1807
- ]
1838
+ ],
1839
+ "condition": {
1840
+ "functionBody": "return accounts[].ataDevices[].disableAccessory === false;"
1841
+ }
1808
1842
  }
1809
1843
  ]
1810
1844
  }
@@ -1827,6 +1861,7 @@
1827
1861
  "key": "accounts[].atwDevices[].typeString",
1828
1862
  "readonly": true
1829
1863
  },
1864
+ "accounts[].ataDevices[].disableAccessory",
1830
1865
  {
1831
1866
  "key": "accounts[].atwDevices[]",
1832
1867
  "type": "section",
@@ -1837,7 +1872,10 @@
1837
1872
  "accounts[].atwDevices[].name",
1838
1873
  "accounts[].atwDevices[].displayMode",
1839
1874
  "accounts[].atwDevices[].refreshInterval"
1840
- ]
1875
+ ],
1876
+ "condition": {
1877
+ "functionBody": "return accounts[].atwDevices[].disableAccessory === false;"
1878
+ }
1841
1879
  },
1842
1880
  {
1843
1881
  "key": "accounts[].atwDevices[]",
@@ -1860,7 +1898,10 @@
1860
1898
  "accounts[].atwDevices[].presets[].namePrefix"
1861
1899
  ]
1862
1900
  }
1863
- ]
1901
+ ],
1902
+ "condition": {
1903
+ "functionBody": "return accounts[].atwDevices[].disableAccessory === false;"
1904
+ }
1864
1905
  },
1865
1906
  {
1866
1907
  "key": "accounts[].atwDevices[]",
@@ -1878,7 +1919,10 @@
1878
1919
  "accounts[].atwDevices[].temperatureSensorReturnWaterTank",
1879
1920
  "accounts[].atwDevices[].temperatureSensorFlowZone2",
1880
1921
  "accounts[].atwDevices[].temperatureSensorReturnZone2"
1881
- ]
1922
+ ],
1923
+ "condition": {
1924
+ "functionBody": "return accounts[].atwDevices[].disableAccessory === false;"
1925
+ }
1882
1926
  },
1883
1927
  {
1884
1928
  "key": "accounts[].atwDevices[]",
@@ -1898,7 +1942,10 @@
1898
1942
  "accounts[].atwDevices[].buttonsSensors[].namePrefix"
1899
1943
  ]
1900
1944
  }
1901
- ]
1945
+ ],
1946
+ "condition": {
1947
+ "functionBody": "return accounts[].atwDevices[].disableAccessory === false;"
1948
+ }
1902
1949
  }
1903
1950
  ]
1904
1951
  }
@@ -1921,6 +1968,7 @@
1921
1968
  "key": "accounts[].ervDevices[].typeString",
1922
1969
  "readonly": true
1923
1970
  },
1971
+ "accounts[].ataDevices[].disableAccessory",
1924
1972
  {
1925
1973
  "key": "accounts[].ervDevices[]",
1926
1974
  "type": "section",
@@ -1931,7 +1979,10 @@
1931
1979
  "accounts[].ervDevices[].name",
1932
1980
  "accounts[].ervDevices[].displayMode",
1933
1981
  "accounts[].ervDevices[].refreshInterval"
1934
- ]
1982
+ ],
1983
+ "condition": {
1984
+ "functionBody": "return accounts[].ervDevices[].disableAccessory === false;"
1985
+ }
1935
1986
  },
1936
1987
  {
1937
1988
  "key": "accounts[].ervDevices[]",
@@ -1954,7 +2005,10 @@
1954
2005
  "accounts[].ervDevices[].presets[].namePrefix"
1955
2006
  ]
1956
2007
  }
1957
- ]
2008
+ ],
2009
+ "condition": {
2010
+ "functionBody": "return accounts[].ervDevices[].disableAccessory === false;"
2011
+ }
1958
2012
  },
1959
2013
  {
1960
2014
  "key": "accounts[].ervDevices[]",
@@ -1966,7 +2020,10 @@
1966
2020
  "accounts[].ervDevices[].temperatureSensor",
1967
2021
  "accounts[].ervDevices[].temperatureSensorOutdoor",
1968
2022
  "accounts[].ervDevices[].temperatureSensorSupply"
1969
- ]
2023
+ ],
2024
+ "condition": {
2025
+ "functionBody": "return accounts[].ervDevices[].disableAccessory === false;"
2026
+ }
1970
2027
  },
1971
2028
  {
1972
2029
  "key": "accounts[].ervDevices[]",
@@ -1986,7 +2043,10 @@
1986
2043
  "accounts[].ervDevices[].buttonsSensors[].namePrefix"
1987
2044
  ]
1988
2045
  }
1989
- ]
2046
+ ],
2047
+ "condition": {
2048
+ "functionBody": "return accounts[].ervDevices[].disableAccessory === false;"
2049
+ }
1990
2050
  }
1991
2051
  ]
1992
2052
  }
package/index.js CHANGED
@@ -123,6 +123,13 @@ class MelCloudPlatform {
123
123
  const ataDevices = account.ataDevices ?? [];
124
124
  const emitLog = !enableDebugMode ? false : log.info(`Found configured ATA devices: ${ataDevices.length}.`);
125
125
  for (const device of ataDevices) {
126
+
127
+ //check accessory is enabled
128
+ const disableAccessory = device.disableAccessory || false;
129
+ if (disableAccessory) {
130
+ continue;
131
+ }
132
+
126
133
  //chack device from config exist on melcloud
127
134
  const deviceId = device.id;
128
135
  const displayMode = device.displayMode > 0 ?? false;
@@ -188,6 +195,13 @@ class MelCloudPlatform {
188
195
  const atwDevices = account.atwDevices ?? [];
189
196
  const emitLog = !enableDebugMode ? false : log.info(`Found configured ATW devices: ${atwDevices.length}.`);
190
197
  for (const device of atwDevices) {
198
+
199
+ //check accessory is enabled
200
+ const disableAccessory = device.disableAccessory || false;
201
+ if (disableAccessory) {
202
+ continue;
203
+ }
204
+
191
205
  //chack device from config exist on melcloud
192
206
  const deviceId = device.id;
193
207
  const displayMode = device.displayMode > 0 ?? false;
@@ -253,6 +267,13 @@ class MelCloudPlatform {
253
267
  const ervDevices = account.ervDevices ?? [];
254
268
  const emitLog = !enableDebugMode ? false : log.info(`Found configured ERV devices: ${ervDevices.length}.`);
255
269
  for (const device of ervDevices) {
270
+
271
+ //check accessory is enabled
272
+ const disableAccessory = device.disableAccessory || false;
273
+ if (disableAccessory) {
274
+ continue;
275
+ }
276
+
256
277
  //chack device from config exist on melcloud
257
278
  const deviceId = device.id;
258
279
  const displayMode = device.displayMode > 0 ?? false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.6.9",
4
+ "version": "3.7.0-beta.0",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -31,13 +31,13 @@
31
31
  "LICENSE"
32
32
  ],
33
33
  "engines": {
34
- "homebridge": "^1.8.5 || ^2.0.0-beta.0",
34
+ "homebridge": "^1.9.0 || ^2.0.0 || ^2.0.0-beta.26 || ^2.0.0-alpha.37",
35
35
  "node": "^18.20.4 || ^20.15.1 || ^22.7.0 || ^23.2.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "@homebridge/plugin-ui-utils": "^2.0.1",
39
39
  "async-mqtt": "^2.6.3",
40
- "axios": "^1.8.1",
40
+ "axios": "^1.8.3",
41
41
  "express": "^4.21.2"
42
42
  },
43
43
  "keywords": [
@@ -53,10 +53,6 @@
53
53
  "mqtt",
54
54
  "restful"
55
55
  ],
56
- "funding": {
57
- "type": "github",
58
- "url": "https://github.com/sponsors/grzegorz914"
59
- },
60
56
  "contributors": [],
61
57
  "scripts": {
62
58
  "test": "echo \"Error: no test specified\" && exit 1"