homebridge-tasmota-control 1.6.15-beta.13 → 1.6.15-beta.14
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/config.schema.json +0 -6
- package/index.js +14 -14
- package/package.json +1 -1
- package/src/constants.js +0 -1
- package/src/mielhvac.js +0 -2
package/config.schema.json
CHANGED
package/index.js
CHANGED
|
@@ -158,20 +158,20 @@ class tasmotaPlatform {
|
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
//create impulse generator
|
|
161
|
-
const impulseGenerator = new ImpulseGenerator()
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
161
|
+
const impulseGenerator = new ImpulseGenerator()
|
|
162
|
+
.on('start', async () => {
|
|
163
|
+
try {
|
|
164
|
+
const startDone = await deviceType.start();
|
|
165
|
+
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
166
|
+
|
|
167
|
+
//start impulse generator
|
|
168
|
+
const startImpulseGenerator = stopImpulseGenerator ? await deviceType.startImpulseGenerator() : false
|
|
169
|
+
} catch (error) {
|
|
170
|
+
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}, trying again.`);
|
|
171
|
+
}
|
|
172
|
+
}).on('state', (state) => {
|
|
173
|
+
const emitLog = !enableDebugMode ? false : state ? log.info(`Device: ${host} ${deviceName}, Start impulse generator started.`) : log.info(`Device: ${host} ${deviceName}, Start impulse generator stopped.`);
|
|
174
|
+
});
|
|
175
175
|
|
|
176
176
|
//start impulse generator
|
|
177
177
|
await impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
package/package.json
CHANGED
package/src/constants.js
CHANGED
package/src/mielhvac.js
CHANGED
|
@@ -514,7 +514,6 @@ class MiElHvac extends EventEmitter {
|
|
|
514
514
|
40: () => power && airDirection === 'indirect',
|
|
515
515
|
41: () => power && airDirection === 'direct',
|
|
516
516
|
42: () => power && airDirection === 'even',
|
|
517
|
-
43: () => power && !['indirect', 'direct', 'even'].includes(airDirection),
|
|
518
517
|
};
|
|
519
518
|
|
|
520
519
|
const prohibitMap = {
|
|
@@ -1098,7 +1097,6 @@ class MiElHvac extends EventEmitter {
|
|
|
1098
1097
|
40: () => getCommand('SetAirDirection', 'indirect'),
|
|
1099
1098
|
41: () => getCommand('SetAirDirection', 'direct'),
|
|
1100
1099
|
42: () => getCommand('SetAirDirection', 'even'),
|
|
1101
|
-
43: () => getCommand('SetAirDirection', 'off'),
|
|
1102
1100
|
|
|
1103
1101
|
// Prohibit
|
|
1104
1102
|
50: () => getCommand('SetProhibit', 'all'),
|