homebridge-tasmota-control 1.6.1-beta.15 → 1.6.1-beta.16
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 +12 -9
package/package.json
CHANGED
package/src/sensors.js
CHANGED
|
@@ -164,15 +164,18 @@ class Sensors extends EventEmitter {
|
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
//energy
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
this.sensorMotionServices?.[i]
|
|
168
|
+
?.Characteristic?.Power?.updateCharacteristic(Characteristic.MotionDetected, sensor.power)
|
|
169
|
+
.Characteristic?.ApparentPower?.updateCharacteristic(Characteristic.MotionDetected, sensor.apparentPower)
|
|
170
|
+
.Characteristic?.ReactivePower?.updateCharacteristic(Characteristic.MotionDetected, sensor.reactivePower)
|
|
171
|
+
.Characteristic?.EnergyToday?.updateCharacteristic(Characteristic.MotionDetected, sensor.energyToday)
|
|
172
|
+
.Characteristic?.EnergyLastDay?.updateCharacteristic(Characteristic.MotionDetected, sensor.energyLastDay)
|
|
173
|
+
.Characteristic?.EnergyLifetime?.updateCharacteristic(Characteristic.MotionDetected, sensor.energyLifetime)
|
|
174
|
+
.Characteristic?.Current?.updateCharacteristic(Characteristic.MotionDetected, sensor.current)
|
|
175
|
+
.Characteristic?.Voltage?.updateCharacteristic(Characteristic.MotionDetected, sensor.voltage)
|
|
176
|
+
.Characteristic?.Factor?.updateCharacteristic(Characteristic.MotionDetected, sensor.factor)
|
|
177
|
+
.Characteristic?.Frequency?.updateCharacteristic(Characteristic.MotionDetected, sensor.frequency)
|
|
178
|
+
.Characteristic?.ReadingTime?.updateCharacteristic(Characteristic.MotionDetected, sensor.readingTime);
|
|
176
179
|
}
|
|
177
180
|
}
|
|
178
181
|
}
|