index.js
// Sample function to show how developer can remove accessory dynamically from outside event
Sample function to show how developer can remove accessory dynamically from outside event
Sample function to show how developer can remove accessory dynamically from outside event
removeAccessory(accessory) {
    this.log("Remove Accessory [%s]", accessory);
    this.api.unregisterPlatformAccessories("homebridge-tuya-platform", "TuyaPlatform", [accessory]);
    this.accessories.delete(accessory.uuid);
    this.deviceAccessories.delete(accessory.uuid);
  }
removeAccessory ( accessory ) { this . log ( "Remove Accessory [%s]" , accessory ) ; this . api . unregisterPlatformAccessories ( "homebridge-tuya-platform" , "TuyaPlatform" , [ accessory ] ) ; this . accessories . delete ( accessory . uuid ) ; this . deviceAccessories . delete ( accessory . uuid ) ; }
Sample function to show how developer can remove accessory dynamically from outside event
Sample function to show how developer can remove accessory dynamically from outside event