hoffmation-base 2.20.1 → 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}"`);
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();
@@ -39,10 +39,10 @@ class ShellyTrv extends shellyDevice_1.ShellyDevice {
39
39
  temp: {
40
40
  ref: 20, // Point temperature
41
41
  },
42
- Pmax: 100,
42
+ Pmax: 100, // Max power (output),
43
43
  // Tune the PID Controller
44
- Kp: 25,
45
- Ki: 1000,
44
+ Kp: 25, // PID: Kp in 1/1000
45
+ Ki: 1000, // PID: Ki in 1/1000
46
46
  Kd: 9, // PID: Kd in 1/1000
47
47
  });
48
48
  this._lastBatteryPersist = 0;
@@ -31,10 +31,10 @@ class ZigbeeHeater extends zigbeeDevice_1.ZigbeeDevice {
31
31
  temp: {
32
32
  ref: 20, // Point temperature
33
33
  },
34
- Pmax: 100,
34
+ Pmax: 100, // Max power (output),
35
35
  // Tune the PID Controller
36
- Kp: 25,
37
- Ki: 1000,
36
+ Kp: 25, // PID: Kp in 1/1000
37
+ Ki: 1000, // PID: Ki in 1/1000
38
38
  Kd: 9, // PID: Kd in 1/1000
39
39
  });
40
40
  this._seasonTurnOff = false;
@@ -11,8 +11,8 @@ class ioBrokerMain {
11
11
  this.connectionCallbacks = new models_1.ConnectionCallbacks();
12
12
  this.initConnCallbacks();
13
13
  this.servConn = new connection_1.IOBrokerConnection({
14
- name: '',
15
- connLink: services_1.SettingsService.settings.ioBrokerUrl,
14
+ name: '', // optional - default 'vis.0'
15
+ connLink: services_1.SettingsService.settings.ioBrokerUrl, // optional URL of the socket.io adapter
16
16
  socketSession: '', // optional - used by authentication
17
17
  }, this.connectionCallbacks);
18
18
  ioBrokerMain.iOConnection = this.servConn;
@@ -79,7 +79,7 @@ class OwnGoveeDevice {
79
79
  var _a, _b;
80
80
  log_service_1.ServerLogService.writeLog(level, `${this.name}: ${message}`, {
81
81
  debugType: debugType,
82
- room: (_b = (_a = this.room) === null || _a === void 0 ? void 0 : _a.roomName) !== null && _b !== void 0 ? _b : '',
82
+ room: (_b = (_a = this._room) === null || _a === void 0 ? void 0 : _a.roomName) !== null && _b !== void 0 ? _b : '',
83
83
  deviceId: this.name,
84
84
  deviceName: this.name,
85
85
  });
@@ -26,7 +26,7 @@ class TibberService {
26
26
  active: true,
27
27
  // Endpoint configuration.
28
28
  apiEndpoint: {
29
- apiKey: newSettings.apiKey,
29
+ apiKey: newSettings.apiKey, // Demo token
30
30
  queryUrl: 'wss://api.tibber.com/v1-beta/gql/subscriptions',
31
31
  },
32
32
  // Query configuration.