homebridge-melcloud-control 3.6.3 → 3.6.5
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 +6 -0
- package/README.md +2 -1
- package/index.js +10 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,12 @@ 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.6.4] - (09.02.2025)
|
|
20
|
+
|
|
21
|
+
## Changes
|
|
22
|
+
|
|
23
|
+
- fix plugin crash if config dosnt contain devices
|
|
24
|
+
|
|
19
25
|
## [3.6.3] - (07.02.2025)
|
|
20
26
|
|
|
21
27
|
## Changes
|
package/README.md
CHANGED
|
@@ -297,7 +297,8 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
|
|
|
297
297
|
### RESTful Integration
|
|
298
298
|
|
|
299
299
|
* Port: last 4 numbers of `device Id`, displayed in HB log during start.
|
|
300
|
-
* POST data as a JSON Object `{OperationMode: 8}
|
|
300
|
+
* POST data as a JSON Object `{OperationMode: 8}`.
|
|
301
|
+
* Header content type must be `application/json`.
|
|
301
302
|
|
|
302
303
|
| Method | URL | Path | Response | Type |
|
|
303
304
|
| --- | --- | --- | --- | --- |
|
package/index.js
CHANGED
|
@@ -116,7 +116,9 @@ class MelCloudPlatform {
|
|
|
116
116
|
|
|
117
117
|
//Air Conditioner 0
|
|
118
118
|
try {
|
|
119
|
-
|
|
119
|
+
const ataDevices = account.ataDevices ?? [];
|
|
120
|
+
const emitLog = !enableDebugMode ? false : log.info(`Found configured ATA devices: ${ataDevices.length}.`);
|
|
121
|
+
for (const device of ataDevices) {
|
|
120
122
|
//chack device from config exist on melcloud
|
|
121
123
|
const deviceId = device.id;
|
|
122
124
|
const displayMode = device.displayMode > 0 ?? false;
|
|
@@ -179,7 +181,9 @@ class MelCloudPlatform {
|
|
|
179
181
|
|
|
180
182
|
//Heat Pump 1
|
|
181
183
|
try {
|
|
182
|
-
|
|
184
|
+
const atwDevices = account.atwDevices ?? [];
|
|
185
|
+
const emitLog = !enableDebugMode ? false : log.info(`Found configured ATW devices: ${atwDevices.length}.`);
|
|
186
|
+
for (const device of atwDevices) {
|
|
183
187
|
//chack device from config exist on melcloud
|
|
184
188
|
const deviceId = device.id;
|
|
185
189
|
const displayMode = device.displayMode > 0 ?? false;
|
|
@@ -242,7 +246,9 @@ class MelCloudPlatform {
|
|
|
242
246
|
|
|
243
247
|
//Energy Recovery Ventilation 3
|
|
244
248
|
try {
|
|
245
|
-
|
|
249
|
+
const ervDevices = account.ervDevices ?? [];
|
|
250
|
+
const emitLog = !enableDebugMode ? false : log.info(`Found configured ERV devices: ${ervDevices.length}.`);
|
|
251
|
+
for (const device of ervDevices) {
|
|
246
252
|
//chack device from config exist on melcloud
|
|
247
253
|
const deviceId = device.id;
|
|
248
254
|
const displayMode = device.displayMode > 0 ?? false;
|
|
@@ -315,5 +321,5 @@ class MelCloudPlatform {
|
|
|
315
321
|
};
|
|
316
322
|
|
|
317
323
|
export default (api) => {
|
|
318
|
-
api.registerPlatform(PluginName, PlatformName, MelCloudPlatform
|
|
324
|
+
api.registerPlatform(PluginName, PlatformName, MelCloudPlatform);
|
|
319
325
|
};
|
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.
|
|
4
|
+
"version": "3.6.5",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|