homebridge-tasmota-control 1.4.1-beta.1 → 1.4.1-beta.3

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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -83,7 +83,10 @@ class tasmotaPlatform {
83
83
  return;
84
84
  }
85
85
 
86
+ let i = 0;
86
87
  for (const type of info.deviceTypes) {
88
+ info.serialNumber = i === 0 ? info.serialNumber : `${info.serialNumber}${i}`;
89
+
87
90
  let deviceType;
88
91
  switch (type) {
89
92
  case 0://mielhvac
@@ -123,7 +126,7 @@ class tasmotaPlatform {
123
126
  deviceType = new Sensors(api, device, info, refreshInterval);
124
127
  break;
125
128
  default:
126
- const emitLog = disableLogWarn ? false : log.warn(`Device: ${host} ${deviceName}, unknown device: ${info.deviceType}.`);
129
+ const emitLog = disableLogWarn ? false : log.warn(`Device: ${host} ${deviceName}, unknown device: ${info.deviceTypes}.`);
127
130
  return;
128
131
  }
129
132
 
@@ -168,6 +171,7 @@ class tasmotaPlatform {
168
171
 
169
172
  //start impulse generator
170
173
  await impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
174
+ i++;
171
175
  }
172
176
  } catch (error) {
173
177
  const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}.`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.4.1-beta.1",
4
+ "version": "1.4.1-beta.3",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",