homebridge-nest-cam2
Advanced tools
Comparing version 2.1.0-beta.2 to 2.1.0-beta.3
@@ -9,2 +9,3 @@ "use strict"; | ||
const ALERT_COOLDOWN = 300000; | ||
const ALERT_LENGTH = 5000; | ||
class NestCam { | ||
@@ -58,3 +59,3 @@ constructor(config, info, log, hap) { | ||
this.nexusTalkHost = info.direct_nexustalk_host; | ||
this.apiHost = info.nexus_api_http_server; | ||
this.apiHost = `https://${info.nexus_api_nest_domain_host}`; | ||
} | ||
@@ -118,3 +119,3 @@ async toggleActive(enabled) { | ||
self.setMotion(accessory, false); | ||
}, 5000); | ||
}, ALERT_LENGTH); | ||
setTimeout(async function () { | ||
@@ -137,3 +138,3 @@ self.motionDetected = false; | ||
self.setDoorbell(accessory, false); | ||
}, 10000); | ||
}, ALERT_LENGTH); | ||
setTimeout(async function () { | ||
@@ -140,0 +141,0 @@ self.doorbellRang = false; |
{ | ||
"name": "homebridge-nest-cam2", | ||
"version": "2.1.0-beta.2", | ||
"version": "2.1.0-beta.3", | ||
"description": "Nest cam plugin for homebridge: https://homebridge.io/", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
197309
1508