@switchbot/homebridge-switchbot 2.8.0-beta.7 → 2.8.0-beta.8
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/dist/device/meterplus.js
CHANGED
|
@@ -170,7 +170,7 @@ class MeterPlus {
|
|
|
170
170
|
async openAPIparseStatus() {
|
|
171
171
|
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} openAPIparseStatus`);
|
|
172
172
|
// Battery
|
|
173
|
-
this.BatteryLevel = Number(this.
|
|
173
|
+
this.BatteryLevel = Number(this.Battery);
|
|
174
174
|
if (this.BatteryLevel < 15) {
|
|
175
175
|
this.StatusLowBattery = this.platform.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW;
|
|
176
176
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Homebridge SwitchBot",
|
|
3
3
|
"name": "@switchbot/homebridge-switchbot",
|
|
4
|
-
"version": "2.8.0-beta.
|
|
4
|
+
"version": "2.8.0-beta.8",
|
|
5
5
|
"description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
|
|
6
6
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
7
7
|
"license": "ISC",
|
package/src/device/meterplus.ts
CHANGED
|
@@ -227,7 +227,7 @@ export class MeterPlus {
|
|
|
227
227
|
this.debugLog(`${this.device.deviceType}: ${this.accessory.displayName} openAPIparseStatus`);
|
|
228
228
|
|
|
229
229
|
// Battery
|
|
230
|
-
this.BatteryLevel = Number(this.
|
|
230
|
+
this.BatteryLevel = Number(this.Battery);
|
|
231
231
|
if (this.BatteryLevel < 15) {
|
|
232
232
|
this.StatusLowBattery = this.platform.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW;
|
|
233
233
|
} else {
|