homebridge-tasmota-control 1.6.2-beta.8 → 1.6.2-beta.9
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/sensors.js +1 -5
package/package.json
CHANGED
package/src/sensors.js
CHANGED
|
@@ -175,14 +175,10 @@ class Sensors extends EventEmitter {
|
|
|
175
175
|
const energyService = this.sensorEnergyServices?.[i];
|
|
176
176
|
for (const [charType, value] of energyMap) {
|
|
177
177
|
energyService?.Characteristic?.[charType]?.updateCharacteristic?.(charType, value);
|
|
178
|
+
this.emit('warn', `Power: ${JSON.stringify(obj, null, 2)}`)
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
-
const emit = this.sensorEnergyServices?.[i]?.Characteristic?.Power ? this.emit('warn', `Power: ${JSON.stringify(obj, null, 2)}`) : false;
|
|
182
|
-
|
|
183
|
-
|
|
184
181
|
const debug1 = this.enableDebugMode ? this.emit('debug', `Sensor: ${JSON.stringify(obj, null, 2)}`) : false;
|
|
185
|
-
this.emit('warn', `Sensor: ${JSON.stringify(obj, null, 2)}`)
|
|
186
182
|
i++;
|
|
187
183
|
}
|
|
188
184
|
this.sensorsCount = this.sensors.length;
|