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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.3.6",
4
+ "version": "1.3.7",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -490,7 +490,7 @@ class TasmotaDevice extends EventEmitter {
490
490
  };
491
491
 
492
492
  //update presets state
493
- if (this.presetsConfigured.length > 0) {
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.buttonsConfiguredCount.forEach((button, index) => {
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.sensorsConfiguredCount.forEach((sensor, index) => {
641
+ this.sensorsConfigured.forEach((sensor, index) => {
642
642
  const mode = sensor.mode;
643
643
  switch (mode) {
644
644
  case 0: //POWER ON,OFF