hoffmation-base 3.0.0-alpha.14 → 3.0.0-alpha.15

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.
@@ -7,6 +7,7 @@ const services_1 = require("../services");
7
7
  const models_1 = require("../../models");
8
8
  const blockAutomaticHandler_1 = require("../services/blockAutomaticHandler");
9
9
  const sharedFunctions_1 = require("./sharedFunctions");
10
+ const DeviceCapability_1 = require("./DeviceCapability");
10
11
  class WledDevice extends IoBrokerBaseDevice_1.IoBrokerBaseDevice {
11
12
  constructor(pInfo) {
12
13
  super(pInfo, deviceType_1.DeviceType.WledDevice);
@@ -20,6 +21,8 @@ class WledDevice extends IoBrokerBaseDevice_1.IoBrokerBaseDevice {
20
21
  this._presetID = `${this.info.fullID}.ps`;
21
22
  this._brightnessID = `${this.info.fullID}.bri`;
22
23
  this.blockAutomationHandler = new blockAutomaticHandler_1.BlockAutomaticHandler(this.restoreTargetAutomaticValue.bind(this));
24
+ this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.lamp);
25
+ this.deviceCapabilities.push(DeviceCapability_1.DeviceCapability.dimmablelamp);
23
26
  }
24
27
  get actuatorOn() {
25
28
  return this.on;
@@ -116,7 +116,7 @@ class AcDevice {
116
116
  }
117
117
  if (this.settings.useOwnTemperatureAndAutomatic) {
118
118
  // Device is in automatic mode so ignore energy and room temperature
119
- if ((heatGroup === null || heatGroup === void 0 ? void 0 : heatGroup.settings.automaticMode) === false) {
119
+ if (heatGroup === null || heatGroup === void 0 ? void 0 : heatGroup.settings.automaticMode) {
120
120
  return ac_mode_1.AcMode.Auto;
121
121
  }
122
122
  if (settings_service_1.SettingsService.heatMode !== config_1.HeatingMode.Sommer && this.settings.heatingAllowed) {