homebridge-tasmota-control 1.4.0-beta.31 → 1.4.0-beta.33
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 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import switches from './src/switches.js';
|
|
|
6
6
|
import lights from './src/lights.js';
|
|
7
7
|
import fans from './src/fans.js';
|
|
8
8
|
import ImpulseGenerator from './src/impulsegenerator.js';
|
|
9
|
-
import { PluginName, PlatformName
|
|
9
|
+
import { PluginName, PlatformName } from './src/constants.js';
|
|
10
10
|
|
|
11
11
|
class tasmotaPlatform {
|
|
12
12
|
constructor(log, config, api) {
|
|
@@ -100,14 +100,16 @@ class tasmotaPlatform {
|
|
|
100
100
|
|
|
101
101
|
const info = await deviceInfo.getInfo();
|
|
102
102
|
if (!info.serialNumber) {
|
|
103
|
-
|
|
103
|
+
log.warn(`Serial number not found`);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
log.warn(info.deviceType);
|
|
107
108
|
let device;
|
|
108
109
|
switch (info.deviceType) {
|
|
109
110
|
case 0://mielhvac
|
|
110
111
|
device = new mielhvac(api, deviceConfig, info, refreshInterval, defaultHeatingSetTemperatureFile, defaultCoolingSetTemperatureFile);
|
|
112
|
+
break;
|
|
111
113
|
case 1://switches
|
|
112
114
|
device = new switches(api, deviceConfig, info, refreshInterval);
|
|
113
115
|
break;
|
package/package.json
CHANGED