reduce interval

This commit is contained in:
oznu 2017-07-31 20:51:36 +10:00
parent 13d99fe5b4
commit 58fee3a490

View File

@ -46,7 +46,7 @@ class OccupancySensor {
this.occupancyDetected = Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED
this.checkOccupancy()
setInterval(this.checkOccupancy.bind(this), 1800)
setInterval(this.checkOccupancy.bind(this), 1800 * 1000)
}
checkGuest (isGuest) {