homebridge-lib 5.7.0 → 5.7.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.
@@ -111,7 +111,7 @@ class Power extends History {
111
111
  if (this._time != null) {
112
112
  const delta = this._power * (now - this._time) // Ws
113
113
  this._runningConsumption += Math.round(delta / 600.0) // W * 10 min
114
- this._totalConsumption += Math.round(delta / 3600.0) // Wh
114
+ this._totalConsumption += Math.round(delta / 3600000.0) // kWh
115
115
  this._consumptionDelegate.value = this._totalConsumption
116
116
  this._entry.power = this._runningConsumption
117
117
  super._addEntry(now)
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Library for homebridge plugins",
4
4
  "author": "Erik Baauw",
5
5
  "license": "Apache-2.0",
6
- "version": "5.7.0",
6
+ "version": "5.7.1",
7
7
  "keywords": [
8
8
  "homekit",
9
9
  "homebridge"