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 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
- deviceInfo.on('debug', (debug) => {
72
- const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.6.13",
4
+ "version": "1.6.14-beta.0",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
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
@@ -112,7 +112,7 @@ class Lights extends EventEmitter {
112
112
 
113
113
  //push to array
114
114
  const light = {
115
- friendlyName: friendlyName,
115
+ friendlyName: `Light ${friendlyName}`,
116
116
  power: power,
117
117
  brightness: bright,
118
118
  colorTemperature: colorTemperature,