homebridge-tasmota-control 1.6.2-beta.0 → 1.6.2-beta.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/sensors.js +2 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.6.2-beta.0",
4
+ "version": "1.6.2-beta.1",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/sensors.js CHANGED
@@ -153,6 +153,7 @@ class Sensors extends EventEmitter {
153
153
  }
154
154
 
155
155
  if (isEnergy) {
156
+ this.emit('warn', `Energy: ${JSON.stringify(energy, null, 2)}`)
156
157
  //update characteristics
157
158
  this.sensorEnergyServices?.[i]?.Characteristic?.Power?.updateCharacteristic(Characteristic.Power, energy.power);
158
159
  this.sensorEnergyServices?.[i]?.Characteristic?.ApparentPower?.updateCharacteristic(Characteristic.ApparentPower, energy.apparentPower);
@@ -169,6 +170,7 @@ class Sensors extends EventEmitter {
169
170
 
170
171
  const sensor = isEnergy ? { ...obj, ...energy } : obj;
171
172
  const debug1 = this.enableDebugMode ? this.emit('debug', `Sensor: ${JSON.stringify(sensor, null, 2)}`) : false;
173
+ this.emit('warn', `Sensor: ${JSON.stringify(sensor, null, 2)}`)
172
174
 
173
175
  //push to array
174
176
  this.sensors.push(sensor);