是否可以从 Homey 应用程序中访问 ManagerInsights API? 权限文档仅显示了一些可用的“管理器...”API。
我将“homey:manager:insights”添加到应用程序权限中,但随后出现编译错误(错误:无效权限:homey:manager:insights)。
不确定为什么您认为您需要特殊权限,文档指出 “您可以通过 Homey 实例访问此管理器,如
this.homey.insights
”。
例如在您的应用程序中:
class MyApp extends Homey.App {
async onInit() {
this.log = await this.homey.insights.createLog(...);
}
}