iobroker-ucl 1.4.20 → 1.4.22

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.
package/alexa.js CHANGED
@@ -39,32 +39,29 @@ var AlexaInputConverter = /** @class */ (function () {
39
39
  _this.ctNew = _this.adapter.getState(value).val;
40
40
  _this.actionChangeCT = true;
41
41
  }
42
- adapter.log("");
42
+ /*adapter.log("");
43
43
  adapter.log(">>> ALEXA (" + logContext + ") >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
44
- adapter.log(" Value : " + _this.value);
45
- adapter.log(" smartName : " + _this.smartName);
46
- adapter.log(" actionTurnOn : " + _this.actionTurnOn);
47
- adapter.log(" actionTurnOff : " + _this.actionTurnOff);
48
- if (_this.actionChangeLevel) {
49
- adapter.log(" actionChangeLevel: " + _this.actionChangeLevel + " (" + _this.levelNew + ")");
44
+ adapter.log(" Value : " + this.value);
45
+ adapter.log(" smartName : " + this.smartName);
46
+ adapter.log(" actionTurnOn : " + this.actionTurnOn);
47
+ adapter.log(" actionTurnOff : " + this.actionTurnOff);
48
+ if (this.actionChangeLevel) {
49
+ adapter.log(" actionChangeLevel: " + this.actionChangeLevel + " (" + this.levelNew + ")");
50
+ } else {
51
+ adapter.log(" actionChangeLevel: " + this.actionChangeLevel);
50
52
  }
51
- else {
52
- adapter.log(" actionChangeLevel: " + _this.actionChangeLevel);
53
+ if (this.actionChangeColor) {
54
+ adapter.log(" actionChangeColor: " + this.actionChangeColor + " (" + this.hueNew + ")");
55
+ } else {
56
+ adapter.log(" actionChangeColor: " + this.actionChangeColor);
53
57
  }
54
- if (_this.actionChangeColor) {
55
- adapter.log(" actionChangeColor: " + _this.actionChangeColor + " (" + _this.hueNew + ")");
56
- }
57
- else {
58
- adapter.log(" actionChangeColor: " + _this.actionChangeColor);
59
- }
60
- if (_this.actionChangeCT) {
61
- adapter.log(" actionChangeCT: " + _this.actionChangeCT + " (" + _this.ctNew + ")");
62
- }
63
- else {
64
- adapter.log(" actionChangeCT: " + _this.actionChangeCT);
58
+ if (this.actionChangeCT) {
59
+ adapter.log(" actionChangeCT: " + this.actionChangeCT + " (" + this.ctNew + ")");
60
+ } else {
61
+ adapter.log(" actionChangeCT: " + this.actionChangeCT);
65
62
  }
66
63
  adapter.log("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
67
- adapter.log("return now");
64
+ adapter.log("return now");*/
68
65
  callback(_this);
69
66
  }, 75);
70
67
  }
package/alexa.ts CHANGED
@@ -34,7 +34,7 @@ export class AlexaInputConverter {
34
34
  this.ctNew = this.adapter.getState(value).val;
35
35
  this.actionChangeCT = true;
36
36
  }
37
- adapter.log("");
37
+ /*adapter.log("");
38
38
  adapter.log(">>> ALEXA (" + logContext + ") >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
39
39
  adapter.log(" Value : " + this.value);
40
40
  adapter.log(" smartName : " + this.smartName);
@@ -56,7 +56,7 @@ export class AlexaInputConverter {
56
56
  adapter.log(" actionChangeCT: " + this.actionChangeCT);
57
57
  }
58
58
  adapter.log("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
59
- adapter.log("return now");
59
+ adapter.log("return now");*/
60
60
  callback(this);
61
61
  }, 75);
62
62
  }
@@ -388,8 +388,8 @@ var HomematicHeizkoerpergruppe = /** @class */ (function (_super) {
388
388
  HomematicHeizkoerpergruppe.prototype.getDeviceId = function () {
389
389
  return "HG" + this.id.toString().padStart(3, '0');
390
390
  };
391
- HomematicHeizkoerpergruppe.prototype.switchToProfil = function (profileIndex) {
392
- this.adapter.sendTo('hm-rpc.1', 'setValue', { ID: this.getBaseStateShort() + ":1", paramType: 'ACTIVE_PROFILE', params: profileIndex }, function (res) {
391
+ HomematicHeizkoerpergruppe.prototype.switchToProfil = function (adapterInstanceIndex, profileIndex) {
392
+ this.adapter.sendTo('hm-rpc.' + adapterInstanceIndex, 'setValue', { ID: this.getBaseStateShort() + ":1", paramType: 'ACTIVE_PROFILE', params: profileIndex }, function (res) {
393
393
  });
394
394
  };
395
395
  HomematicHeizkoerpergruppe.prototype.getOeffnungsgrad = function () {
@@ -415,8 +415,8 @@ class HomematicHeizkoerpergruppe extends AbstractHomematic {
415
415
  return "HG" + this.id.toString().padStart(3, '0');
416
416
  }
417
417
 
418
- public switchToProfil(profileIndex) {
419
- this.adapter.sendTo('hm-rpc.1', 'setValue', {ID: this.getBaseStateShort() + ":1", paramType: 'ACTIVE_PROFILE', params: profileIndex}, res => {
418
+ public switchToProfil(adapterInstanceIndex, profileIndex) {
419
+ this.adapter.sendTo('hm-rpc.' + adapterInstanceIndex, 'setValue', {ID: this.getBaseStateShort() + ":1", paramType: 'ACTIVE_PROFILE', params: profileIndex}, res => {
420
420
  });
421
421
  }
422
422
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker-ucl",
3
- "version": "1.4.20",
3
+ "version": "1.4.22",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "build": "tsc --build",