homebridge-tasmota-control 1.8.0-beta.3 → 1.8.0-beta.4
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/index.js +3 -3
- package/package.json +1 -1
- package/src/lights.js +1 -1
- package/src/mielhvac.js +1 -1
- package/src/sensors.js +1 -1
- package/src/switches.js +1 -1
package/index.js
CHANGED
|
@@ -77,9 +77,9 @@ class tasmotaPlatform {
|
|
|
77
77
|
try {
|
|
78
78
|
//get device info
|
|
79
79
|
const deviceInfo = new DeviceInfo(url, auth, user, passwd, deviceName, loadNameFromDevice, logLevel.debug)
|
|
80
|
-
.on('debug', (msg) =>
|
|
81
|
-
.on('warn', (msg) =>
|
|
82
|
-
.on('error', (msg) =>
|
|
80
|
+
.on('debug', (msg) => log.info(`Device: ${host} ${deviceName}, debug: ${msg}`))
|
|
81
|
+
.on('warn', (msg) => log.warn(`Device: ${host} ${deviceName}, ${msg}`))
|
|
82
|
+
.on('error', (msg) => log.error(`Device: ${host} ${deviceName}, ${msg}`));
|
|
83
83
|
|
|
84
84
|
const info = await deviceInfo.getInfo();
|
|
85
85
|
if (!info.serialNumber) {
|
package/package.json
CHANGED
package/src/lights.js
CHANGED
|
@@ -299,7 +299,7 @@ class Lights extends EventEmitter {
|
|
|
299
299
|
this.emit('success', `Connect Success`)
|
|
300
300
|
|
|
301
301
|
//check device info
|
|
302
|
-
if (
|
|
302
|
+
if (this.logDeviceInfo) await this.deviceInfo();
|
|
303
303
|
|
|
304
304
|
//start prepare accessory
|
|
305
305
|
const accessory = await this.prepareAccessory();
|
package/src/mielhvac.js
CHANGED
|
@@ -1156,7 +1156,7 @@ class MiElHvac extends EventEmitter {
|
|
|
1156
1156
|
this.emit('success', `Connect Success`)
|
|
1157
1157
|
|
|
1158
1158
|
//check device info
|
|
1159
|
-
if (
|
|
1159
|
+
if (this.logDeviceInfo) await this.deviceInfo();
|
|
1160
1160
|
|
|
1161
1161
|
//start prepare accessory
|
|
1162
1162
|
const accessory = await this.prepareAccessory();
|
package/src/sensors.js
CHANGED
|
@@ -505,7 +505,7 @@ class Sensors extends EventEmitter {
|
|
|
505
505
|
this.emit('success', `Connect Success`)
|
|
506
506
|
|
|
507
507
|
//check device info
|
|
508
|
-
if (
|
|
508
|
+
if (this.logDeviceInfo) await this.deviceInfo();
|
|
509
509
|
|
|
510
510
|
//start prepare accessory
|
|
511
511
|
const accessory = await this.prepareAccessory();
|
package/src/switches.js
CHANGED
|
@@ -180,7 +180,7 @@ class Switches extends EventEmitter {
|
|
|
180
180
|
this.emit('success', `Connect Success`)
|
|
181
181
|
|
|
182
182
|
//check device info
|
|
183
|
-
if (
|
|
183
|
+
if (this.logDeviceInfo) await this.deviceInfo();
|
|
184
184
|
|
|
185
185
|
//start prepare accessory
|
|
186
186
|
const accessory = await this.prepareAccessory();
|