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

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