homebridge-melcloud-control 4.2.6-beta.14 → 4.2.6-beta.15
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/deviceata.js +6 -0
- package/src/deviceatw.js +6 -0
- package/src/deviceerv.js +6 -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.2.6-beta.
|
|
4
|
+
"version": "4.2.6-beta.15",
|
|
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/deviceata.js
CHANGED
|
@@ -2,6 +2,7 @@ import EventEmitter from 'events';
|
|
|
2
2
|
import MelCloudAta from './melcloudata.js';
|
|
3
3
|
import RestFul from './restful.js';
|
|
4
4
|
import Mqtt from './mqtt.js';
|
|
5
|
+
import Functions from './functions.js';
|
|
5
6
|
import { TemperatureDisplayUnits, AirConditioner } from './constants.js';
|
|
6
7
|
let Accessory, Characteristic, Service, Categories, AccessoryUUID;
|
|
7
8
|
|
|
@@ -96,6 +97,11 @@ class DeviceAta extends EventEmitter {
|
|
|
96
97
|
button.previousValue = null;
|
|
97
98
|
}
|
|
98
99
|
|
|
100
|
+
this.functions = new Functions(this.logWarn, this.logError, this.logDebug)
|
|
101
|
+
.on('warn', warn => this.emit('warn', warn))
|
|
102
|
+
.on('error', error => this.emit('error', error))
|
|
103
|
+
.on('debug', debug => this.emit('debug', debug));
|
|
104
|
+
|
|
99
105
|
//device data
|
|
100
106
|
this.deviceData = {};
|
|
101
107
|
|
package/src/deviceatw.js
CHANGED
|
@@ -2,6 +2,7 @@ import EventEmitter from 'events';
|
|
|
2
2
|
import MelCloudAtw from './melcloudatw.js';
|
|
3
3
|
import RestFul from './restful.js';
|
|
4
4
|
import Mqtt from './mqtt.js';
|
|
5
|
+
import Functions from './functions.js';
|
|
5
6
|
import { TemperatureDisplayUnits, HeatPump } from './constants.js';
|
|
6
7
|
let Accessory, Characteristic, Service, Categories, AccessoryUUID;
|
|
7
8
|
|
|
@@ -97,6 +98,11 @@ class DeviceAtw extends EventEmitter {
|
|
|
97
98
|
button.previousValue = null;
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
this.functions = new Functions(this.logWarn, this.logError, this.logDebug)
|
|
102
|
+
.on('warn', warn => this.emit('warn', warn))
|
|
103
|
+
.on('error', error => this.emit('error', error))
|
|
104
|
+
.on('debug', debug => this.emit('debug', debug));
|
|
105
|
+
|
|
100
106
|
//device data
|
|
101
107
|
this.deviceData = {};
|
|
102
108
|
|
package/src/deviceerv.js
CHANGED
|
@@ -2,6 +2,7 @@ import EventEmitter from 'events';
|
|
|
2
2
|
import MelCloudErv from './melclouderv.js';
|
|
3
3
|
import RestFul from './restful.js';
|
|
4
4
|
import Mqtt from './mqtt.js';
|
|
5
|
+
import Functions from './functions.js';
|
|
5
6
|
import { TemperatureDisplayUnits, Ventilation } from './constants.js';
|
|
6
7
|
let Accessory, Characteristic, Service, Categories, AccessoryUUID;
|
|
7
8
|
|
|
@@ -90,6 +91,11 @@ class DeviceErv extends EventEmitter {
|
|
|
90
91
|
button.previousValue = null;
|
|
91
92
|
}
|
|
92
93
|
|
|
94
|
+
this.functions = new Functions(this.logWarn, this.logError, this.logDebug)
|
|
95
|
+
.on('warn', warn => this.emit('warn', warn))
|
|
96
|
+
.on('error', error => this.emit('error', error))
|
|
97
|
+
.on('debug', debug => this.emit('debug', debug));
|
|
98
|
+
|
|
93
99
|
//device data
|
|
94
100
|
this.deviceData = {};
|
|
95
101
|
|