homebridge-tasmota-control 1.5.1-beta.12 → 1.5.1-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/deviceinfo.js +1 -5
- package/src/mielhvac.js +1 -1
- package/src/sensors.js +1 -1
package/package.json
CHANGED
package/src/deviceinfo.js
CHANGED
|
@@ -66,11 +66,7 @@ class DeviceInfo extends EventEmitter {
|
|
|
66
66
|
const fans = statusStsKeys.includes('FanSpeed') ? types.push(3) : false;
|
|
67
67
|
const switches = !mielhvac && !lights && !fans ? types.push(1) : false
|
|
68
68
|
const sensors = statusSnsKeys.some(key => SensorKeys.includes(key)) ? types.push(4) : false;
|
|
69
|
-
const sensorName = Object.entries(statusSns)
|
|
70
|
-
.filter(([key]) => SensorKeys.some(type => key.includes(type)))
|
|
71
|
-
.reduce((obj, [key, value]) => {
|
|
72
|
-
return key;
|
|
73
|
-
}, {});
|
|
69
|
+
const sensorName = Object.entries(statusSns).filter(([key]) => SensorKeys.some(type => key.includes(type))).reduce((obj, [key, value]) => { return key; }, {});
|
|
74
70
|
const obj = {
|
|
75
71
|
deviceTypes: types,
|
|
76
72
|
deviceName: deviceName,
|
package/src/mielhvac.js
CHANGED
|
@@ -814,7 +814,7 @@ class MiElHvac extends EventEmitter {
|
|
|
814
814
|
this.emit('devInfo', `Hardware: ${this.info.modelName}`);
|
|
815
815
|
this.emit('devInfo', `Serialnr: ${this.serialNumber}`)
|
|
816
816
|
this.emit('devInfo', `Firmware: ${this.info.firmwareRevision}`);
|
|
817
|
-
this.emit('devInfo', `
|
|
817
|
+
this.emit('devInfo', `Device: MiELHVAC`);
|
|
818
818
|
this.emit('devInfo', `----------------------------------`);
|
|
819
819
|
return;
|
|
820
820
|
}
|
package/src/sensors.js
CHANGED
|
@@ -205,7 +205,7 @@ class Sensors extends EventEmitter {
|
|
|
205
205
|
this.emit('devInfo', `Hardware: ${this.info.modelName}`);
|
|
206
206
|
this.emit('devInfo', `Serialnr: ${this.serialNumber}`)
|
|
207
207
|
this.emit('devInfo', `Firmware: ${this.info.firmwareRevision}`);
|
|
208
|
-
this.emit('devInfo', `
|
|
208
|
+
this.emit('devInfo', `Sensor: ${this.info.sensorName}`);
|
|
209
209
|
this.emit('devInfo', `----------------------------------`);
|
|
210
210
|
return;
|
|
211
211
|
}
|