From 2e41807d80b01148284559f5652150dff4dce475 Mon Sep 17 00:00:00 2001 From: Andreas Zimnas Date: Thu, 17 Oct 2024 08:22:59 +0300 Subject: [PATCH] fix update state not beeing called for P100 an P110 --- package.json | 2 +- src/platformTPLinkAccessory.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 928d4ff..05dda2a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/platformTPLinkAccessory.ts b/src/platformTPLinkAccessory.ts index dfc0f66..c08740e 100644 --- a/src/platformTPLinkAccessory.ts +++ b/src/platformTPLinkAccessory.ts @@ -108,6 +108,10 @@ export abstract class TPLinkPlatformAccessory { this.platform.log.debug('On is undefined -> set no response'); this.setNoResponse(); } + + setTimeout(()=>{ + this.updateState(interval); + }, interval); } else{ this.setNoResponse(); interval += 300000;