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.
- package/package.json +1 -1
- package/src/sensors.js +2 -0
package/package.json
CHANGED
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);
|