homebridge-melcloud-control 3.8.3-beta.9 → 3.8.4-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.
- package/CHANGELOG.md +7 -0
- package/index.js +27 -3
- package/package.json +1 -1
- package/src/deviceata.js +306 -287
- package/src/deviceatw.js +127 -145
- package/src/deviceerv.js +159 -174
- package/src/melcloudata.js +0 -1
- package/src/melcloudatw.js +0 -1
- package/src/melclouderv.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
16
|
- do not configure it manually, always using Config UI X
|
|
17
17
|
- required Homebridge v2.0.0 and above
|
|
18
18
|
|
|
19
|
+
## [3.8.3] - (20.05.2025)
|
|
20
|
+
|
|
21
|
+
## Changes
|
|
22
|
+
|
|
23
|
+
- fix [#198](https://github.com/grzegorz914/homebridge-melcloud-control/issues/198)
|
|
24
|
+
- cleanup
|
|
25
|
+
|
|
19
26
|
## [3.8.1] - (10.05.2025)
|
|
20
27
|
|
|
21
28
|
## Changes
|
package/index.js
CHANGED
|
@@ -135,13 +135,21 @@ class MelCloudPlatform {
|
|
|
135
135
|
const deviceName = device.name;
|
|
136
136
|
const deviceTypeText = device.typeString;
|
|
137
137
|
const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
|
|
138
|
-
const airConditioner = new DeviceAta(api, account, device,
|
|
138
|
+
const airConditioner = new DeviceAta(api, account, device, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit, restFul, mqtt)
|
|
139
139
|
airConditioner.on('publishAccessory', (accessory) => {
|
|
140
140
|
|
|
141
141
|
//publish device
|
|
142
142
|
api.publishExternalAccessories(PluginName, [accessory]);
|
|
143
143
|
const emitLog = disableLogSuccess ? false : log.success(`${accountName}, ${deviceTypeText} ${deviceName}, published as external accessory.`);
|
|
144
144
|
})
|
|
145
|
+
.on('melCloud', async (key, value) => {
|
|
146
|
+
try {
|
|
147
|
+
accountInfo[key] = value;
|
|
148
|
+
await melCloud.send(accountInfo);
|
|
149
|
+
} catch (error) {
|
|
150
|
+
const emitLog = disableLogError ? false : log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}.`);
|
|
151
|
+
};
|
|
152
|
+
})
|
|
145
153
|
.on('devInfo', (devInfo) => {
|
|
146
154
|
const emitLog = disableLogDeviceInfo ? false : log.info(devInfo);
|
|
147
155
|
})
|
|
@@ -201,13 +209,21 @@ class MelCloudPlatform {
|
|
|
201
209
|
const deviceName = device.name;
|
|
202
210
|
const deviceTypeText = device.typeString;
|
|
203
211
|
const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
|
|
204
|
-
const heatPump = new DeviceAtw(api, account, device,
|
|
212
|
+
const heatPump = new DeviceAtw(api, account, device, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit, restFul, mqtt)
|
|
205
213
|
heatPump.on('publishAccessory', (accessory) => {
|
|
206
214
|
|
|
207
215
|
//publish device
|
|
208
216
|
api.publishExternalAccessories(PluginName, [accessory]);
|
|
209
217
|
const emitLog = disableLogSuccess ? false : log.success(`${accountName}, ${deviceTypeText} ${deviceName}, published as external accessory.`);
|
|
210
218
|
})
|
|
219
|
+
.on('melCloud', async (key, value) => {
|
|
220
|
+
try {
|
|
221
|
+
accountInfo[key] = value;
|
|
222
|
+
await melCloud.send(accountInfo);
|
|
223
|
+
} catch (error) {
|
|
224
|
+
const emitLog = disableLogError ? false : log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}.`);
|
|
225
|
+
};
|
|
226
|
+
})
|
|
211
227
|
.on('devInfo', (devInfo) => {
|
|
212
228
|
const emitLog = disableLogDeviceInfo ? false : log.info(devInfo);
|
|
213
229
|
})
|
|
@@ -267,13 +283,21 @@ class MelCloudPlatform {
|
|
|
267
283
|
const deviceName = device.name;
|
|
268
284
|
const deviceTypeText = device.typeString;
|
|
269
285
|
const deviceRefreshInterval = device.refreshInterval * 1000 || 5000;
|
|
270
|
-
const energyRecoveryVentilation = new DeviceErv(api, account, device,
|
|
286
|
+
const energyRecoveryVentilation = new DeviceErv(api, account, device, contextKey, accountName, deviceId, deviceName, deviceTypeText, devicesFile, deviceRefreshInterval, useFahrenheit, restFul, mqtt)
|
|
271
287
|
energyRecoveryVentilation.on('publishAccessory', (accessory) => {
|
|
272
288
|
|
|
273
289
|
//publish device
|
|
274
290
|
api.publishExternalAccessories(PluginName, [accessory]);
|
|
275
291
|
const emitLog = disableLogSuccess ? false : log.success(`${accountName}, ${deviceTypeText} ${deviceName}, published as external accessory.`);
|
|
276
292
|
})
|
|
293
|
+
.on('melCloud', async (key, value) => {
|
|
294
|
+
try {
|
|
295
|
+
accountInfo[key] = value;
|
|
296
|
+
await melCloud.send(accountInfo);
|
|
297
|
+
} catch (error) {
|
|
298
|
+
const emitLog = disableLogError ? false : log.error(`${accountName}, ${deviceTypeText}, ${deviceName}, ${error}.`);
|
|
299
|
+
};
|
|
300
|
+
})
|
|
277
301
|
.on('devInfo', (devInfo) => {
|
|
278
302
|
const emitLog = disableLogDeviceInfo ? false : log.info(devInfo);
|
|
279
303
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.4-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",
|