homebridge-tasmota-control 1.3.6 → 1.3.7
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/package.json +1 -1
- package/src/tasmotadevice.js +3 -3
package/package.json
CHANGED
package/src/tasmotadevice.js
CHANGED
|
@@ -490,7 +490,7 @@ class TasmotaDevice extends EventEmitter {
|
|
|
490
490
|
};
|
|
491
491
|
|
|
492
492
|
//update presets state
|
|
493
|
-
if (this.
|
|
493
|
+
if (this.presetsConfiguredCount > 0) {
|
|
494
494
|
this.presetsConfigured.forEach((preset, index) => {
|
|
495
495
|
|
|
496
496
|
let iseeMode = operationMode;
|
|
@@ -514,7 +514,7 @@ class TasmotaDevice extends EventEmitter {
|
|
|
514
514
|
|
|
515
515
|
//update buttons state
|
|
516
516
|
if (this.buttonsConfiguredCount > 0) {
|
|
517
|
-
this.
|
|
517
|
+
this.buttonsConfigured.forEach((button, index) => {
|
|
518
518
|
const mode = button.mode;
|
|
519
519
|
switch (mode) {
|
|
520
520
|
case 0: //POWER ON,OFF
|
|
@@ -638,7 +638,7 @@ class TasmotaDevice extends EventEmitter {
|
|
|
638
638
|
|
|
639
639
|
//update sensors state
|
|
640
640
|
if (this.sensorsConfiguredCount > 0) {
|
|
641
|
-
this.
|
|
641
|
+
this.sensorsConfigured.forEach((sensor, index) => {
|
|
642
642
|
const mode = sensor.mode;
|
|
643
643
|
switch (mode) {
|
|
644
644
|
case 0: //POWER ON,OFF
|