homebridge-melcloud-control 4.0.0-beta.357 → 4.0.0-beta.358
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/package.json +1 -1
- package/src/melcloudhometoken.js +4 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.358",
|
|
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/melcloudhometoken.js
CHANGED
|
@@ -150,8 +150,12 @@ class MelCloudHomeToken extends EventEmitter {
|
|
|
150
150
|
headers: { 'User-Agent': MOBILE_USER_AGENT }
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
+
this.emit('warn', `1 ${dashboardResp}`);
|
|
154
|
+
|
|
153
155
|
// --- Krok 4: Pobierz cookies z dashboard ---
|
|
154
156
|
const dashboardCookies = await jar.getCookies('https://melcloudhome.com/dashboard');
|
|
157
|
+
this.emit('warn', `2 ${dashboardCookies}`);
|
|
158
|
+
|
|
155
159
|
// Możemy zwrócić jako string do użycia w nagłówku:
|
|
156
160
|
const cookieHeader = dashboardCookies.map(c => `${c.key}=${c.value}`).join('; ');
|
|
157
161
|
|