hoffmation-base 3.0.0-alpha.40 → 3.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,7 +28,6 @@ class PresenceGroup extends base_group_1.BaseGroup {
|
|
|
28
28
|
if (action.motionDetected || this.anyPresent()) {
|
|
29
29
|
// TODO: Possible Edge Case, if the other motion sensor doesn't fire motion end event this will never be called
|
|
30
30
|
this.resetLastLeftTimeout();
|
|
31
|
-
return;
|
|
32
31
|
}
|
|
33
32
|
else if (!action.motionDetected && !this.anyPresent()) {
|
|
34
33
|
this.motionSensorOnLastLeft(action);
|
|
@@ -36,7 +35,6 @@ class PresenceGroup extends base_group_1.BaseGroup {
|
|
|
36
35
|
if (action.motionDetected && this.presentAmount() === 1 && this._lastLeftTimeout === null) {
|
|
37
36
|
this.fireFistEnterCBs(action);
|
|
38
37
|
}
|
|
39
|
-
this.motionSensorOnLastLeft(action);
|
|
40
38
|
});
|
|
41
39
|
});
|
|
42
40
|
this.addLastLeftCallback((action) => {
|
|
@@ -87,7 +85,8 @@ class PresenceGroup extends base_group_1.BaseGroup {
|
|
|
87
85
|
this.executeLastLeftCbs(new models_1.PresenceGroupLastLeftAction(action));
|
|
88
86
|
return;
|
|
89
87
|
}
|
|
90
|
-
|
|
88
|
+
const newResetTime = new Date(services_1.Utils.nowMS() + Math.abs(timeAfterReset));
|
|
89
|
+
this.log(models_1.LogLevel.Debug, `Movement reset in ${this.roomName} delayed to ${newResetTime.toLocaleTimeString('de-DE')}.`);
|
|
91
90
|
this.resetLastLeftTimeout();
|
|
92
91
|
this._lastLeftTimeout = services_1.Utils.guardedTimeout(() => {
|
|
93
92
|
this._lastLeftTimeout = null;
|