hoffmation-base 3.0.0-alpha.79 → 3.0.0-alpha.80

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.
@@ -49,7 +49,7 @@ class DeviceUpdater {
49
49
  devId = idSplit[3].replace(/-2D/g, '-');
50
50
  }
51
51
  else if (idSplit[0] == devices_1.Devices.IDENTIFIER_VELUX) {
52
- if (idSplit[1] === 'admin' || idSplit[2].indexOf('DEVICE') !== 0) {
52
+ if (idSplit[1] === 'admin' || idSplit[2].indexOf('PRODUCTS') !== 0) {
53
53
  // This is no update for a velux device
54
54
  return;
55
55
  }
@@ -54,7 +54,7 @@ class VeluxShutter extends veluxDevice_1.VeluxDevice {
54
54
  this.log(models_2.LogLevel.DeepTrace, `Rollo Update : ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
55
55
  super.update(idSplit, state, initial, true);
56
56
  switch (idSplit[4]) {
57
- case 'targetPosition':
57
+ case 'currentPosition':
58
58
  this.setCurrentLevel(state.val, true);
59
59
  break;
60
60
  }