homebridge-tasmota-control 1.6.13 → 1.6.14-beta.0
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 +4 -4
- package/package.json +1 -1
- package/src/fans.js +2 -2
- package/src/lights.js +1 -1
package/index.js
CHANGED
|
@@ -67,10 +67,10 @@ class tasmotaPlatform {
|
|
|
67
67
|
|
|
68
68
|
try {
|
|
69
69
|
//get device info
|
|
70
|
-
const deviceInfo = new DeviceInfo(url, auth, user, passwd, deviceName, loadNameFromDevice, enableDebugMode, refreshInterval)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
const deviceInfo = new DeviceInfo(url, auth, user, passwd, deviceName, loadNameFromDevice, enableDebugMode, refreshInterval)
|
|
71
|
+
.on('debug', (debug) => {
|
|
72
|
+
const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
|
|
73
|
+
})
|
|
74
74
|
.on('debug', (debug) => {
|
|
75
75
|
const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
|
|
76
76
|
})
|
package/package.json
CHANGED
package/src/fans.js
CHANGED
|
@@ -100,7 +100,7 @@ class Fans extends EventEmitter {
|
|
|
100
100
|
|
|
101
101
|
//light
|
|
102
102
|
const light = {
|
|
103
|
-
friendlyName: friendlyName
|
|
103
|
+
friendlyName: `Light ${friendlyName}`,
|
|
104
104
|
power: power,
|
|
105
105
|
power1: power1
|
|
106
106
|
};
|
|
@@ -119,7 +119,7 @@ class Fans extends EventEmitter {
|
|
|
119
119
|
const direction = statusSts.FanDirection ?? 0;
|
|
120
120
|
const speed = statusSts.FanSpeed;
|
|
121
121
|
const fan = {
|
|
122
|
-
friendlyName: friendlyName
|
|
122
|
+
friendlyName: `Fan ${friendlyName}`,
|
|
123
123
|
power: powerFan,
|
|
124
124
|
direction: direction,
|
|
125
125
|
speed: speed,
|
package/src/lights.js
CHANGED