hoffmation-base 3.0.0-alpha.70 → 3.0.0-alpha.71

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.
@@ -46,13 +46,16 @@ class DeviceUpdater {
46
46
  return;
47
47
  }
48
48
  classifier = devices_1.Devices.IDENTIFIER_SMART_GARDEN;
49
- devId = idSplit[3];
49
+ devId = idSplit[3].replace(/-2D/g, '-');
50
50
  }
51
51
  const allDevicesKey = `${classifier}-${devId}`;
52
52
  const device = services_1.API.getDevice(allDevicesKey, false);
53
53
  if (typeof device === 'undefined' || device.update === undefined) {
54
- classifier == devices_1.Devices.IDENTIFIER_SMART_GARDEN &&
55
- services_1.ServerLogService.writeLog(models_1.LogLevel.Warn, `deviceUpdater.updateState('${id}', ${JSON.stringify(state)}'): Device ${allDevicesKey} type is "${typeof device}"`);
54
+ // classifier == Devices.IDENTIFIER_SMART_GARDEN &&
55
+ // ServerLogService.writeLog(
56
+ // LogLevel.Warn,
57
+ // `deviceUpdater.updateState('${id}', ${JSON.stringify(state)}'): Device ${allDevicesKey} type is "${typeof device}"`,
58
+ // );
56
59
  return;
57
60
  }
58
61
  try {
@@ -34,7 +34,7 @@ class SmartGardenDevice extends IoBrokerBaseDevice_1.IoBrokerBaseDevice {
34
34
  }
35
35
  /** @inheritDoc */
36
36
  update(idSplit, state, initial = false, pOverride = false) {
37
- this.log(models_1.LogLevel.Warn, `Smartgarden: ${initial ? 'Initiales ' : ''}Update: ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
37
+ this.log(models_1.LogLevel.DeepTrace, `Smartgarden: ${initial ? 'Initiales ' : ''}Update: ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
38
38
  if (!pOverride) {
39
39
  this.log(models_1.LogLevel.Warn, `Keine Update Überschreibung:\n\tID: ${idSplit.join('.')}\n\tData: ${JSON.stringify(state)}`);
40
40
  }