hoffmation-base 2.20.2 → 2.20.3

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.
@@ -142,13 +142,13 @@ class CameraDevice {
142
142
  }
143
143
  update(idSplit, state) {
144
144
  const stateName = idSplit[4];
145
- this.log(models_1.LogLevel.Debug, `Update for "${stateName}" to value: ${state.val}`);
146
145
  switch (stateName) {
147
146
  case 'MotionDetected':
148
147
  this._movementDetectedStateId = idSplit.join('.');
149
148
  if (this.settings.movementDetectionOnPersonOnly) {
150
149
  return;
151
150
  }
151
+ this.log(models_1.LogLevel.Debug, `Update for "${stateName}" to value: ${state.val}`);
152
152
  const movementDetected = state.val === 1;
153
153
  this.updateMovement(movementDetected);
154
154
  if (movementDetected) {
@@ -158,6 +158,7 @@ class CameraDevice {
158
158
  case 'PersonDetected':
159
159
  this._personDetectedStateId = idSplit.join('.');
160
160
  const newValue = state.val === 1;
161
+ this.log(models_1.LogLevel.Debug, `Update for "${stateName}" to value: ${state.val}`);
161
162
  if (newValue) {
162
163
  this.log(models_1.LogLevel.Info, `Person Detected`);
163
164
  this.resetPersonDetectFallbackTimer();
@@ -170,6 +171,7 @@ class CameraDevice {
170
171
  case 'DogDetected':
171
172
  this._dogDetectedStateId = idSplit.join('.');
172
173
  const newDogDetectionVal = state.val === 1;
174
+ this.log(models_1.LogLevel.Debug, `Update for "${stateName}" to value: ${state.val}`);
173
175
  if (newDogDetectionVal) {
174
176
  this.log(models_1.LogLevel.Info, `Dog Detected`);
175
177
  this.resetDogDetectFallbackTimer();