homebridge-melcloud-control 2.5.0-beta.22 → 2.5.0-beta.24
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/homebridge-ui/public/index.html +4 -3
- package/package.json +1 -1
- package/src/melcloud.js +10 -10
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
<div class="form-group">
|
|
13
13
|
<label for="name">Name</label>
|
|
14
14
|
<input id="name" type="text" class="form-control"><br>
|
|
15
|
-
<label for="user">
|
|
15
|
+
<label for="user">User Name</label>
|
|
16
16
|
<input id="user" type="text" class="form-control"><br>
|
|
17
|
-
<label for="passwd">
|
|
18
|
-
<input id="passwd" type="
|
|
17
|
+
<label for="passwd">Password</label>
|
|
18
|
+
<input id="passwd" type="password" class="form-control"><br>
|
|
19
19
|
<label for="language">Language</label>
|
|
20
20
|
<input id="language" type="text" class="form-control"><br>
|
|
21
21
|
</div>
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
case 0:
|
|
124
124
|
//get device info fom devices
|
|
125
125
|
for (const deviceInfo of devices) {
|
|
126
|
+
const deviceType = deviceInfo.Type;
|
|
126
127
|
const deviceId = deviceInfo.DeviceID;
|
|
127
128
|
const deviceName = deviceInfo.DeviceName;
|
|
128
129
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "2.5.0-beta.
|
|
4
|
+
"version": "2.5.0-beta.24",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/melcloud.js
CHANGED
|
@@ -31,16 +31,16 @@ class MelCloud extends EventEmitter {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
this.impulseGenerator = new ImpulseGenerator();
|
|
35
|
-
this.impulseGenerator.on('checkDevicesList', async () => {
|
|
36
|
-
try {
|
|
37
|
-
await this.chackDevicesList(this.contextKey);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
this.emit('error', `Check devices list: ${error}.`);
|
|
40
|
-
};
|
|
41
|
-
}).on('state', (state) => { });
|
|
42
|
-
|
|
43
34
|
if (!connectForConfig) {
|
|
35
|
+
this.impulseGenerator = new ImpulseGenerator();
|
|
36
|
+
this.impulseGenerator.on('checkDevicesList', async () => {
|
|
37
|
+
try {
|
|
38
|
+
await this.chackDevicesList(this.contextKey);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
this.emit('error', `Check devices list: ${error}.`);
|
|
41
|
+
};
|
|
42
|
+
}).on('state', (state) => { });
|
|
43
|
+
|
|
44
44
|
this.connect();
|
|
45
45
|
};
|
|
46
46
|
};
|
|
@@ -189,7 +189,7 @@ class MelCloud extends EventEmitter {
|
|
|
189
189
|
|
|
190
190
|
return true;
|
|
191
191
|
} catch (error) {
|
|
192
|
-
this.impulseGenerator.stop();
|
|
192
|
+
const stop = connectForConfig ? false : this.impulseGenerator.stop();
|
|
193
193
|
throw new Error(`Scanning for devices error: ${error.message ?? error}.`);
|
|
194
194
|
};
|
|
195
195
|
}
|