hoffmation-base 3.0.0-alpha.66 → 3.0.0-alpha.68

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.
@@ -38,10 +38,12 @@ class DeviceUpdater {
38
38
  devId = idSplit[2].substring(2);
39
39
  }
40
40
  else if (idSplit[0] == devices_1.Devices.IDENTIFIER_SMART_GARDEN) {
41
+ services_1.ServerLogService.writeLog(models_1.LogLevel.Debug, `Received smart-garden state (${id}): ${JSON.stringify(state)}`);
41
42
  if (idSplit[1] === 'admin' ||
42
43
  idSplit.length < 4 ||
43
44
  idSplit[2].indexOf('LOCATION') !== 0 ||
44
45
  idSplit[3].indexOf('DEVICE') !== 0) {
46
+ services_1.ServerLogService.writeLog(models_1.LogLevel.Debug, `Discarded smart-garden state id-split: ${JSON.stringify(idSplit)}`);
45
47
  // This is no update for a smartgarden device
46
48
  return;
47
49
  }
@@ -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.DeepTrace, `Smartgarden: ${initial ? 'Initiales ' : ''}Update: ID: ${idSplit.join('.')} JSON: ${JSON.stringify(state)}`);
37
+ this.log(models_1.LogLevel.Warn, `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
  }
@@ -19,7 +19,7 @@ class SmartGardenMower extends smartGardenDevice_1.SmartGardenDevice {
19
19
  this.queuedValue = null;
20
20
  this._lastPersist = 0;
21
21
  this._actuatorOn = false;
22
- this._activityControlStateId = `${pInfo.fullID}.SERVICE_MOWER_${this._deviceSerial}/activity_control_i`;
22
+ this._activityControlStateId = `${pInfo.fullID}.SERVICE_MOWER_${this._deviceSerial}.activity_control_i`;
23
23
  this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.actuator);
24
24
  this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.blockAutomatic);
25
25
  this.blockAutomationHandler = new blockAutomaticHandler_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));
@@ -20,8 +20,8 @@ class SmartGardenValve extends smartGardenDevice_1.SmartGardenDevice {
20
20
  this.queuedValue = null;
21
21
  this._lastPersist = 0;
22
22
  this._actuatorOn = false;
23
- this._durationValueStateId = `${pInfo.fullID}.SERVICE_VALVE_${this._deviceSerial}/duration_value`;
24
- this._stopAllValvesStateId = `${pInfo.fullID}.SERVICE_VALVE_SET_${this._deviceSerial}/stop_all_valves_i`;
23
+ this._durationValueStateId = `${pInfo.fullID}.SERVICE_VALVE_${this._deviceSerial}.duration_value`;
24
+ this._stopAllValvesStateId = `${pInfo.fullID}.SERVICE_VALVE_SET_${this._deviceSerial}.stop_all_valves_i`;
25
25
  this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.actuator);
26
26
  this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.blockAutomatic);
27
27
  this.blockAutomationHandler = new blockAutomaticHandler_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this), this.log.bind(this));