Skip to content

Commit

Permalink
fix update state not beeing called for P100 an P110
Browse files Browse the repository at this point in the history
  • Loading branch information
apatsufas committed Oct 17, 2024
1 parent a039e7a commit 2e41807
Show file tree
Hide file tree
Showing 2 changed files with 5 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-beta6",
"version": "1.5.2-beta7",
"description": "Homebridge Plugin for TP-Link Tapo P100 Plugs",
"license": "Apache-2.0",
"homepage": "https://github.com/apatsufas/homebridge-tapo-p100#readme",
Expand Down
4 changes: 4 additions & 0 deletions src/platformTPLinkAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ export abstract class TPLinkPlatformAccessory <T extends TpLinkAccessory>{
this.platform.log.debug('On is undefined -> set no response');
this.setNoResponse();
}

setTimeout(()=>{
this.updateState(interval);
}, interval);
} else{
this.setNoResponse();
interval += 300000;
Expand Down

0 comments on commit 2e41807

Please sign in to comment.