homebridge-melcloud-control 4.0.0-beta.556 → 4.0.0-beta.557
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/config.schema.json +21 -13
- package/package.json +1 -1
- package/src/melcloud.js +3 -2
package/config.schema.json
CHANGED
|
@@ -395,6 +395,12 @@
|
|
|
395
395
|
"default": false,
|
|
396
396
|
"description": "This enable extra outdoor temperature sensor to use with automations in HomeKit app."
|
|
397
397
|
},
|
|
398
|
+
"errorSensor": {
|
|
399
|
+
"title": "Error",
|
|
400
|
+
"type": "boolean",
|
|
401
|
+
"default": false,
|
|
402
|
+
"description": "This enable error sensor to use with automations in HomeKit app."
|
|
403
|
+
},
|
|
398
404
|
"refreshInterval": {
|
|
399
405
|
"title": "Refresh Interval",
|
|
400
406
|
"type": "integer",
|
|
@@ -1004,6 +1010,12 @@
|
|
|
1004
1010
|
"default": false,
|
|
1005
1011
|
"description": "This enable extra Return Zone 2 temperature sensor to use with automations in HomeKit app."
|
|
1006
1012
|
},
|
|
1013
|
+
"errorSensor": {
|
|
1014
|
+
"title": "Error",
|
|
1015
|
+
"type": "boolean",
|
|
1016
|
+
"default": false,
|
|
1017
|
+
"description": "This enable error sensor to use with automations in HomeKit app."
|
|
1018
|
+
},
|
|
1007
1019
|
"refreshInterval": {
|
|
1008
1020
|
"title": "Refresh Interval",
|
|
1009
1021
|
"type": "integer",
|
|
@@ -1391,6 +1403,12 @@
|
|
|
1391
1403
|
"default": false,
|
|
1392
1404
|
"description": "This enable extra supply temperature sensor to use with automations in HomeKit app."
|
|
1393
1405
|
},
|
|
1406
|
+
"errorSensor": {
|
|
1407
|
+
"title": "Error",
|
|
1408
|
+
"type": "boolean",
|
|
1409
|
+
"default": false,
|
|
1410
|
+
"description": "This enable error sensor to use with automations in HomeKit app."
|
|
1411
|
+
},
|
|
1394
1412
|
"refreshInterval": {
|
|
1395
1413
|
"title": "Refresh Interval",
|
|
1396
1414
|
"type": "integer",
|
|
@@ -1868,19 +1886,6 @@
|
|
|
1868
1886
|
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1869
1887
|
}
|
|
1870
1888
|
},
|
|
1871
|
-
{
|
|
1872
|
-
"title": "Temperature Sensors",
|
|
1873
|
-
"type": "section",
|
|
1874
|
-
"expandable": true,
|
|
1875
|
-
"expanded": false,
|
|
1876
|
-
"items": [
|
|
1877
|
-
"accounts[].ataDevices[].temperatureSensor",
|
|
1878
|
-
"accounts[].ataDevices[].temperatureSensorOutdoor"
|
|
1879
|
-
],
|
|
1880
|
-
"condition": {
|
|
1881
|
-
"functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].displayType > 0;"
|
|
1882
|
-
}
|
|
1883
|
-
},
|
|
1884
1889
|
{
|
|
1885
1890
|
"title": "Presets",
|
|
1886
1891
|
"type": "section",
|
|
@@ -1912,6 +1917,9 @@
|
|
|
1912
1917
|
"expandable": true,
|
|
1913
1918
|
"expanded": false,
|
|
1914
1919
|
"items": [
|
|
1920
|
+
"accounts[].ataDevices[].temperatureSensor",
|
|
1921
|
+
"accounts[].ataDevices[].temperatureSensorOutdoor",
|
|
1922
|
+
"accounts[].ataDevices[].errorSensor",
|
|
1915
1923
|
{
|
|
1916
1924
|
"key": "accounts[].ataDevices[].buttonsSensors",
|
|
1917
1925
|
"type": "tabarray",
|
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.557",
|
|
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
|
@@ -498,6 +498,7 @@ class MelCloud extends EventEmitter {
|
|
|
498
498
|
async send(accountInfo) {
|
|
499
499
|
try {
|
|
500
500
|
const axiosInstance = axios.create({
|
|
501
|
+
method: 'POST',
|
|
501
502
|
baseURL: ApiUrls.BaseURL,
|
|
502
503
|
timeout: 15000,
|
|
503
504
|
headers: {
|
|
@@ -506,8 +507,8 @@ class MelCloud extends EventEmitter {
|
|
|
506
507
|
}
|
|
507
508
|
});
|
|
508
509
|
|
|
509
|
-
const
|
|
510
|
-
await axiosInstance
|
|
510
|
+
const payload = { data: accountInfo.LoginData };
|
|
511
|
+
await axiosInstance(ApiUrls.UpdateApplicationOptions, payload);
|
|
511
512
|
await this.functions.saveData(this.accountFile, accountInfo);
|
|
512
513
|
return true;
|
|
513
514
|
} catch (error) {
|