homebridge-midea-platform 1.2.5-beta.1 → 1.2.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/docs/download_lua.md +2 -2
- package/homebridge-ui/public/index.html +2 -2
- package/homebridge-ui/server.js +1 -2
- package/package.json +1 -1
- package/.zed/settings.json +0 -12
- package/ac.lua +0 -5150
package/docs/download_lua.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
If you need support for a device, or a new feature for an existing one, please do the following:
|
|
4
4
|
1. Open the Homebridge Config UI X
|
|
5
5
|
2. Do the discovery process through the UI
|
|
6
|
-
- Here you must
|
|
6
|
+
- Here you must your or the default NetHome Plus account (if you don't have your own account in these apps)
|
|
7
7
|
3. After the discovery ends, there will be table of discovered devices
|
|
8
8
|
4. In the `Model` column, the model of your device will be a button, which you can click to download the lua script for the device.
|
|
9
|
-
5. After downloading the script, open an issue about the feature you need and attach the lua script to it (or open an issue and send me the script in email, it's `kovapatrik@gmail.com`)
|
|
9
|
+
5. After downloading the script, open an issue about the feature you need and attach the lua script to it (or open an issue and send me the script in email, it's `kovapatrik@gmail.com`)
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
<div class="mb-3 form-check form-switch">
|
|
37
37
|
<input id="useDefaultProfile" type="checkbox" class="form-check-input" role="switch">
|
|
38
|
-
<label for="useDefaultProfile" class="form-check-label">Use default
|
|
38
|
+
<label for="useDefaultProfile" class="form-check-label">Use default NetHome Plus profile</label>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="mb-3" id="login">
|
|
41
|
-
<div class="mb-3
|
|
41
|
+
<div class="mb-3 bg-warning-subtle border-warning-subtle p-3 rounded-2">
|
|
42
42
|
Midea disabled the token fetching APIs in both Meiju and Midea SmartHome, and now it's only available using the NetHome Plus API.
|
|
43
43
|
It's expected that the token fetching in NetHome Plus API will be disabled as well. Make sure you save your devices' token and key to be able to usem them in the future.
|
|
44
44
|
From now, it's only available to login using NetHome Plus accounts.
|
package/homebridge-ui/server.js
CHANGED
|
@@ -186,7 +186,6 @@ class UiServer extends HomebridgePluginUiServer {
|
|
|
186
186
|
success: true,
|
|
187
187
|
msg: "Currently used cloud provider doesn't support Lua downloading, using the default profile now...",
|
|
188
188
|
});
|
|
189
|
-
const registeredApp = "Midea SmartHome (MSmartHome)";
|
|
190
189
|
const username = Buffer.from(
|
|
191
190
|
(DEFAULT_ACCOUNT[0] ^ DEFAULT_ACCOUNT[1]).toString(16),
|
|
192
191
|
"hex",
|
|
@@ -198,7 +197,7 @@ class UiServer extends HomebridgePluginUiServer {
|
|
|
198
197
|
this.cloud = CloudFactory.createCloud(
|
|
199
198
|
username,
|
|
200
199
|
password,
|
|
201
|
-
|
|
200
|
+
"NetHome Plus",
|
|
202
201
|
);
|
|
203
202
|
await this.cloud.login();
|
|
204
203
|
}
|
package/package.json
CHANGED