Skip to content

Commit

Permalink
power consumption improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
apatsufas committed Oct 9, 2024
1 parent fc50bc0 commit 1ccf1f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"displayName": "Tapo P100 Plugin",
"name": "homebridge-tapo",
"type": "module",
"version": "1.5.2-beta2",
"version": "1.5.2-beta5",
"description": "Homebridge Plugin for TP-Link Tapo P100 Plugs",
"license": "Apache-2.0",
"homepage": "https://github.com/apatsufas/homebridge-tapo-p100#readme",
Expand Down
6 changes: 6 additions & 0 deletions src/utils/l530.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ export default class L530 extends L520E {
}

public getPowerConsumption():ConsumptionInfo{
if(!this.getSysInfo().device_on){
return {
total: this._consumption.total,
current: 0,
};
}
return this._consumption;
}

Expand Down

0 comments on commit 1ccf1f3

Please sign in to comment.