iobroker-ucl 1.0.42 → 1.0.44

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getHomematicDevicesAll = exports.getHomematicDevices = exports.createDatenpunktDevice = void 0;
4
- var _a = require('./homematic.js'), HomematicWindow = _a.HomematicWindow, HomematicSteckdose = _a.HomematicSteckdose, HomematicHeizkoerper = _a.HomematicHeizkoerper, HomematicDimmer = _a.HomematicDimmer, HomematicWandthermostat = _a.HomematicWandthermostat, HomematicFussbodenheizung = _a.HomematicFussbodenheizung, HomematicWandschalter = _a.HomematicWandschalter, HomematicDoor = _a.HomematicDoor, HomematicWetterstation = _a.HomematicWetterstation, HomematicAccessPoint = _a.HomematicAccessPoint, HomematicRollladen = _a.HomematicRollladen, HomematicWandtaster = _a.HomematicWandtaster, HomematicTemperatursensor = _a.HomematicTemperatursensor, HomematicRauchmelder = _a.HomematicRauchmelder, HomematicPraesenzmelder = _a.HomematicPraesenzmelder, AbstractHomematic = _a.AbstractHomematic, HomematicFunkschaltaktor = _a.HomematicFunkschaltaktor;
4
+ var _a = require('./homematicClasses.js'), HomematicWindow = _a.HomematicWindow, HomematicSteckdose = _a.HomematicSteckdose, HomematicHeizkoerper = _a.HomematicHeizkoerper, HomematicDimmer = _a.HomematicDimmer, HomematicWandthermostat = _a.HomematicWandthermostat, HomematicFussbodenheizung = _a.HomematicFussbodenheizung, HomematicWandschalter = _a.HomematicWandschalter, HomematicDoor = _a.HomematicDoor, HomematicWetterstation = _a.HomematicWetterstation, HomematicAccessPoint = _a.HomematicAccessPoint, HomematicRollladen = _a.HomematicRollladen, HomematicWandtaster = _a.HomematicWandtaster, HomematicTemperatursensor = _a.HomematicTemperatursensor, HomematicRauchmelder = _a.HomematicRauchmelder, HomematicPraesenzmelder = _a.HomematicPraesenzmelder, AbstractHomematic = _a.AbstractHomematic, HomematicFunkschaltaktor = _a.HomematicFunkschaltaktor, deviceHomematicWandthermostat = _a.deviceHomematicWandthermostat, deviceHomematicPraesenzmelder = _a.deviceHomematicPraesenzmelder, deviceHomematicWetterstation = _a.deviceHomematicWetterstation, deviceHomematicDoor = _a.deviceHomematicDoor, deviceHomematicRollladen = _a.deviceHomematicRollladen, deviceHomematicWandschalter = _a.deviceHomematicWandschalter, deviceHomematicFussbodenheizung = _a.deviceHomematicFussbodenheizung, deviceHomematicWandtaster = _a.deviceHomematicWandtaster, deviceHomematicAccessPoint = _a.deviceHomematicAccessPoint, deviceHomematicTemperatursensor = _a.deviceHomematicTemperatursensor, deviceHomematicRauchmelder = _a.deviceHomematicRauchmelder, deviceHomematicFunkSchaltaktor = _a.deviceHomematicFunkSchaltaktor, deviceHomematicWindow = _a.deviceHomematicWindow, deviceHomematicSteckdose = _a.deviceHomematicSteckdose, deviceHomematicHeizkoerper = _a.deviceHomematicHeizkoerper, deviceHomematicDimmer = _a.deviceHomematicDimmer;
5
5
  var attributeRawID = "rawId";
6
6
  var attributeBaseState = "baseState";
7
7
  var attributeEtage = "etage";
@@ -171,52 +171,52 @@ function getHomematicDevices(adapter, filterCategory) {
171
171
  exports.getHomematicDevices = getHomematicDevices;
172
172
  function getHomematicDevicesAll(adapter) {
173
173
  var homematicArray = [{}];
174
- adapter.getHomematicDevices(deviceHomematicWandthermostat).forEach(function (homematic) {
174
+ adapter.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(function (homematic) {
175
175
  homematicArray.push(homematic);
176
176
  });
177
- adapter.getHomematicDevices(deviceHomematicPraesenzmelder).forEach(function (homematic) {
177
+ adapter.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(function (homematic) {
178
178
  homematicArray.push(homematic);
179
179
  });
180
- adapter.getHomematicDevices(deviceHomematicWetterstation).forEach(function (homematic) {
180
+ adapter.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(function (homematic) {
181
181
  homematicArray.push(homematic);
182
182
  });
183
- adapter.getHomematicDevices(deviceHomematicDoor).forEach(function (homematic) {
183
+ adapter.getHomematicDevices(adapter, deviceHomematicDoor).forEach(function (homematic) {
184
184
  homematicArray.push(homematic);
185
185
  });
186
- adapter.getHomematicDevices(deviceHomematicRollladen).forEach(function (homematic) {
186
+ adapter.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(function (homematic) {
187
187
  homematicArray.push(homematic);
188
188
  });
189
- adapter.getHomematicDevices(deviceHomematicWandschalter).forEach(function (homematic) {
189
+ adapter.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(function (homematic) {
190
190
  homematicArray.push(homematic);
191
191
  });
192
- adapter.getHomematicDevices(deviceHomematicFussbodenheizung).forEach(function (homematic) {
192
+ adapter.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(function (homematic) {
193
193
  homematicArray.push(homematic);
194
194
  });
195
- adapter.getHomematicDevices(deviceHomematicWandtaster).forEach(function (homematic) {
195
+ adapter.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(function (homematic) {
196
196
  homematicArray.push(homematic);
197
197
  });
198
- adapter.getHomematicDevices(deviceHomematicAccessPoint).forEach(function (homematic) {
198
+ adapter.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(function (homematic) {
199
199
  homematicArray.push(homematic);
200
200
  });
201
- adapter.getHomematicDevices(deviceHomematicTemperatursensor).forEach(function (homematic) {
201
+ adapter.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(function (homematic) {
202
202
  homematicArray.push(homematic);
203
203
  });
204
- adapter.getHomematicDevices(deviceHomematicRauchmelder).forEach(function (homematic) {
204
+ adapter.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(function (homematic) {
205
205
  homematicArray.push(homematic);
206
206
  });
207
- adapter.getHomematicDevices(deviceHomematicFunkSchaltaktor).forEach(function (homematic) {
207
+ adapter.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(function (homematic) {
208
208
  homematicArray.push(homematic);
209
209
  });
210
- adapter.getHomematicDevices(deviceHomematicWindow).forEach(function (homematic) {
210
+ adapter.getHomematicDevices(adapter, deviceHomematicWindow).forEach(function (homematic) {
211
211
  homematicArray.push(homematic);
212
212
  });
213
- adapter.getHomematicDevices(deviceHomematicSteckdose).forEach(function (homematic) {
213
+ adapter.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(function (homematic) {
214
214
  homematicArray.push(homematic);
215
215
  });
216
- adapter.getHomematicDevices(deviceHomematicHeizkoerper).forEach(function (homematic) {
216
+ adapter.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(function (homematic) {
217
217
  homematicArray.push(homematic);
218
218
  });
219
- adapter.getHomematicDevices(deviceHomematicDimmer).forEach(function (homematic) {
219
+ adapter.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(function (homematic) {
220
220
  homematicArray.push(homematic);
221
221
  });
222
222
  return homematicArray;
@@ -1,4 +1,4 @@
1
- const { HomematicWindow, HomematicSteckdose, HomematicHeizkoerper, HomematicDimmer, HomematicWandthermostat, HomematicFussbodenheizung, HomematicWandschalter, HomematicDoor, HomematicWetterstation, HomematicAccessPoint, HomematicRollladen, HomematicWandtaster, HomematicTemperatursensor, HomematicRauchmelder, HomematicPraesenzmelder, AbstractHomematic, HomematicFunkschaltaktor } = require('./homematic.js');
1
+ const { HomematicWindow, HomematicSteckdose, HomematicHeizkoerper, HomematicDimmer, HomematicWandthermostat, HomematicFussbodenheizung, HomematicWandschalter, HomematicDoor, HomematicWetterstation, HomematicAccessPoint, HomematicRollladen, HomematicWandtaster, HomematicTemperatursensor, HomematicRauchmelder, HomematicPraesenzmelder, AbstractHomematic, HomematicFunkschaltaktor, deviceHomematicWandthermostat, deviceHomematicPraesenzmelder, deviceHomematicWetterstation, deviceHomematicDoor, deviceHomematicRollladen, deviceHomematicWandschalter, deviceHomematicFussbodenheizung, deviceHomematicWandtaster, deviceHomematicAccessPoint, deviceHomematicTemperatursensor, deviceHomematicRauchmelder, deviceHomematicFunkSchaltaktor, deviceHomematicWindow, deviceHomematicSteckdose, deviceHomematicHeizkoerper, deviceHomematicDimmer} = require('./homematicClasses.js');
2
2
 
3
3
  const attributeRawID = "rawId";
4
4
  const attributeBaseState = "baseState";
@@ -174,52 +174,52 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
174
174
  export function getHomematicDevicesAll(adapter:any) {
175
175
  var homematicArray = [{}];
176
176
 
177
- adapter.getHomematicDevices(deviceHomematicWandthermostat).forEach(homematic => {
177
+ adapter.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(homematic => {
178
178
  homematicArray.push(homematic);
179
179
  });
180
- adapter.getHomematicDevices(deviceHomematicPraesenzmelder).forEach(homematic => {
180
+ adapter.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(homematic => {
181
181
  homematicArray.push(homematic);
182
182
  });
183
- adapter.getHomematicDevices(deviceHomematicWetterstation).forEach(homematic => {
183
+ adapter.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(homematic => {
184
184
  homematicArray.push(homematic);
185
185
  });
186
- adapter.getHomematicDevices(deviceHomematicDoor).forEach(homematic => {
186
+ adapter.getHomematicDevices(adapter, deviceHomematicDoor).forEach(homematic => {
187
187
  homematicArray.push(homematic);
188
188
  });
189
- adapter.getHomematicDevices(deviceHomematicRollladen).forEach(homematic => {
189
+ adapter.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(homematic => {
190
190
  homematicArray.push(homematic);
191
191
  });
192
- adapter.getHomematicDevices(deviceHomematicWandschalter).forEach(homematic => {
192
+ adapter.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(homematic => {
193
193
  homematicArray.push(homematic);
194
194
  });
195
- adapter.getHomematicDevices(deviceHomematicFussbodenheizung).forEach(homematic => {
195
+ adapter.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(homematic => {
196
196
  homematicArray.push(homematic);
197
197
  });
198
- adapter.getHomematicDevices(deviceHomematicWandtaster).forEach(homematic => {
198
+ adapter.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(homematic => {
199
199
  homematicArray.push(homematic);
200
200
  });
201
- adapter.getHomematicDevices(deviceHomematicAccessPoint).forEach(homematic => {
201
+ adapter.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(homematic => {
202
202
  homematicArray.push(homematic);
203
203
  });
204
- adapter.getHomematicDevices(deviceHomematicTemperatursensor).forEach(homematic => {
204
+ adapter.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(homematic => {
205
205
  homematicArray.push(homematic);
206
206
  });
207
- adapter.getHomematicDevices(deviceHomematicRauchmelder).forEach(homematic => {
207
+ adapter.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(homematic => {
208
208
  homematicArray.push(homematic);
209
209
  });
210
- adapter.getHomematicDevices(deviceHomematicFunkSchaltaktor).forEach(homematic => {
210
+ adapter.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(homematic => {
211
211
  homematicArray.push(homematic);
212
212
  });
213
- adapter.getHomematicDevices(deviceHomematicWindow).forEach(homematic => {
213
+ adapter.getHomematicDevices(adapter, deviceHomematicWindow).forEach(homematic => {
214
214
  homematicArray.push(homematic);
215
215
  });
216
- adapter.getHomematicDevices(deviceHomematicSteckdose).forEach(homematic => {
216
+ adapter.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(homematic => {
217
217
  homematicArray.push(homematic);
218
218
  });
219
- adapter.getHomematicDevices(deviceHomematicHeizkoerper).forEach(homematic => {
219
+ adapter.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(homematic => {
220
220
  homematicArray.push(homematic);
221
221
  });
222
- adapter.getHomematicDevices(deviceHomematicDimmer).forEach(homematic => {
222
+ adapter.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(homematic => {
223
223
  homematicArray.push(homematic);
224
224
  });
225
225
  return homematicArray;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker-ucl",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "build": "tsc --build",
package/homematic.js DELETED
@@ -1,374 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.getHomematicDevicesUwe = exports.HomematicWandschalter = exports.HomematicFussbodenheizung = exports.HomematicDoor = exports.HomematicRollladen = exports.HomematicAccessPoint = exports.HomematicWandtaster = exports.HomematicTemperatursensor = exports.HomematicRauchmelder = exports.HomematicFunkschaltaktor = exports.HomematicDimmer = exports.HomematicHeizkoerper = exports.HomematicSteckdose = exports.HomematicWindow = exports.HomematicWetterstation = exports.HomematicPraesenzmelder = exports.HomematicWandthermostat = exports.AbstractHomematic = void 0;
19
- var deviceWandthermostat = "Wandthermostat";
20
- var devicePraesenzmelder = "Praesenzmelder";
21
- var deviceWetterstation = "Wetterstation";
22
- var deviceDoor = "Door";
23
- var deviceRollladen = "Rollladen";
24
- var deviceWandschalter = "Wandschalter";
25
- var deviceFussbodenheizung = "Fussbodenheizung";
26
- var deviceWandtaster = "Wandtaster";
27
- var deviceAccessPoint = "AccessPoint";
28
- var deviceTemperatursensor = "Temperatursensor";
29
- var deviceRauchmelder = "Rauchmelder";
30
- var deviceFunkSchaltaktor = "FunkSchaltaktor";
31
- var deviceWindow = "Window";
32
- var deviceSteckdose = "Steckdose";
33
- var deviceHeizkoerper = "Heizkoerper";
34
- var deviceDimmer = "Dimmer";
35
- var AbstractHomematic = /** @class */ (function () {
36
- function AbstractHomematic(adapter, id, baseState, etage, raum, device) {
37
- this.adapter = adapter;
38
- this.id = id;
39
- this.etage = etage;
40
- this.raum = raum;
41
- this.device = device;
42
- this.baseState = baseState;
43
- }
44
- AbstractHomematic.prototype.getDeviceId = function () {
45
- return "H" + this.id.toString().padStart(2, '0');
46
- };
47
- AbstractHomematic.prototype.getDeviceIdAsRawNumber = function () {
48
- return this.id;
49
- };
50
- AbstractHomematic.prototype.getBaseState = function () {
51
- return this.baseState;
52
- };
53
- AbstractHomematic.prototype.getType = function () {
54
- return ""; //getObject(this.baseState).native.TYPE;
55
- };
56
- AbstractHomematic.prototype.getEtage = function () {
57
- return this.etage;
58
- };
59
- AbstractHomematic.prototype.getRaum = function () {
60
- return this.raum;
61
- };
62
- AbstractHomematic.prototype.getDevice = function () {
63
- return this.device;
64
- };
65
- AbstractHomematic.prototype.isStatusTotal = function () {
66
- return this.isStatusReachable() && this.isStatusBattery() && this.isStatusDutyCycle();
67
- };
68
- AbstractHomematic.prototype.isStatusReachable = function () {
69
- return !this.adapter.getState(this.baseState + ".0.UNREACH").val;
70
- };
71
- AbstractHomematic.prototype.isStatusBattery = function () {
72
- return true;
73
- };
74
- AbstractHomematic.prototype.isStatusDutyCycle = function () {
75
- if (this.getType().includes("HmIP")) {
76
- return !this.adapter.getState(this.baseState + ".0.DUTY_CYCLE").val; // hm-rpc.0.000A9BE993E2F7.0.DUTY_CYCLE
77
- }
78
- return true;
79
- };
80
- AbstractHomematic.prototype.getSignal = function () {
81
- return this.adapter.getState(this.baseState + ".0.RSSI_DEVICE").val;
82
- };
83
- return AbstractHomematic;
84
- }());
85
- exports.AbstractHomematic = AbstractHomematic;
86
- var HomematicWandthermostat = /** @class */ (function (_super) {
87
- __extends(HomematicWandthermostat, _super);
88
- function HomematicWandthermostat(adapter, id, baseState, etage, raum, device) {
89
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
90
- }
91
- HomematicWandthermostat.prototype.getTemperatureIst = function () {
92
- return this.adapter.getState(this.baseState + ".1.ACTUAL_TEMPERATURE").val; // hm-rpc.0.000A9BE993E2F7.1.ACTUAL_TEMPERATURE
93
- };
94
- HomematicWandthermostat.prototype.getTemperatureSoll = function () {
95
- return this.adapter.getState(this.baseState + ".1.SET_POINT_TEMPERATURE").val; // hm-rpc.0.000A9BE993E2F7.1.SET_POINT_TEMPERATURE
96
- };
97
- HomematicWandthermostat.prototype.getHumanity = function () {
98
- return this.adapter.getState(this.baseState + ".1.HUMIDITY").val + " %"; // hm-rpc.0.000A9BE993E2F7.1.HUMIDITY
99
- };
100
- HomematicWandthermostat.prototype.getCategory = function () {
101
- return deviceWandthermostat;
102
- };
103
- HomematicWandthermostat.prototype.isStatusBattery = function () {
104
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
105
- };
106
- return HomematicWandthermostat;
107
- }(AbstractHomematic));
108
- exports.HomematicWandthermostat = HomematicWandthermostat;
109
- var HomematicPraesenzmelder = /** @class */ (function (_super) {
110
- __extends(HomematicPraesenzmelder, _super);
111
- function HomematicPraesenzmelder(adapter, id, baseState, etage, raum, device) {
112
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
113
- }
114
- HomematicPraesenzmelder.prototype.getCategory = function () {
115
- return devicePraesenzmelder;
116
- };
117
- HomematicPraesenzmelder.prototype.getIllumination = function () {
118
- if (this.adapter.getState(this.baseState + ".1.CURRENT_ILLUMINATION").val != null) {
119
- return this.adapter.getState(this.baseState + ".1.CURRENT_ILLUMINATION").val + " lux"; // hm-rpc.0.000C1BE98E093D.1.CURRENT_ILLUMINATION
120
- }
121
- return "-";
122
- };
123
- HomematicPraesenzmelder.prototype.isStatusBattery = function () {
124
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
125
- };
126
- return HomematicPraesenzmelder;
127
- }(AbstractHomematic));
128
- exports.HomematicPraesenzmelder = HomematicPraesenzmelder;
129
- var HomematicWetterstation = /** @class */ (function (_super) {
130
- __extends(HomematicWetterstation, _super);
131
- function HomematicWetterstation(adapter, id, baseState, etage, raum, device) {
132
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
133
- }
134
- HomematicWetterstation.prototype.getCategory = function () {
135
- return deviceWetterstation;
136
- };
137
- HomematicWetterstation.prototype.isStatusBattery = function () {
138
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
139
- };
140
- return HomematicWetterstation;
141
- }(AbstractHomematic));
142
- exports.HomematicWetterstation = HomematicWetterstation;
143
- var HomematicWindow = /** @class */ (function (_super) {
144
- __extends(HomematicWindow, _super);
145
- function HomematicWindow(adapter, id, baseState, etage, raum, device) {
146
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
147
- }
148
- HomematicWindow.prototype.getCategory = function () {
149
- return deviceWindow;
150
- };
151
- HomematicWindow.prototype.isStatusBattery = function () {
152
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
153
- };
154
- return HomematicWindow;
155
- }(AbstractHomematic));
156
- exports.HomematicWindow = HomematicWindow;
157
- var HomematicSteckdose = /** @class */ (function (_super) {
158
- __extends(HomematicSteckdose, _super);
159
- function HomematicSteckdose(adapter, id, baseState, etage, raum, device) {
160
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
161
- }
162
- HomematicSteckdose.prototype.getCategory = function () {
163
- return deviceSteckdose;
164
- };
165
- return HomematicSteckdose;
166
- }(AbstractHomematic));
167
- exports.HomematicSteckdose = HomematicSteckdose;
168
- var HomematicHeizkoerper = /** @class */ (function (_super) {
169
- __extends(HomematicHeizkoerper, _super);
170
- function HomematicHeizkoerper(adapter, id, baseState, etage, raum, device) {
171
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
172
- }
173
- HomematicHeizkoerper.prototype.getCategory = function () {
174
- return deviceHeizkoerper;
175
- };
176
- HomematicHeizkoerper.prototype.isStatusBattery = function () {
177
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
178
- };
179
- return HomematicHeizkoerper;
180
- }(AbstractHomematic));
181
- exports.HomematicHeizkoerper = HomematicHeizkoerper;
182
- var HomematicDimmer = /** @class */ (function (_super) {
183
- __extends(HomematicDimmer, _super);
184
- function HomematicDimmer(adapter, id, baseState, etage, raum, device) {
185
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
186
- }
187
- HomematicDimmer.prototype.getCategory = function () {
188
- return deviceDimmer;
189
- };
190
- return HomematicDimmer;
191
- }(AbstractHomematic));
192
- exports.HomematicDimmer = HomematicDimmer;
193
- var HomematicFunkschaltaktor = /** @class */ (function (_super) {
194
- __extends(HomematicFunkschaltaktor, _super);
195
- function HomematicFunkschaltaktor(adapter, id, baseState, etage, raum, device) {
196
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
197
- }
198
- HomematicFunkschaltaktor.prototype.getCategory = function () {
199
- return deviceFunkSchaltaktor;
200
- };
201
- return HomematicFunkschaltaktor;
202
- }(AbstractHomematic));
203
- exports.HomematicFunkschaltaktor = HomematicFunkschaltaktor;
204
- var HomematicRauchmelder = /** @class */ (function (_super) {
205
- __extends(HomematicRauchmelder, _super);
206
- function HomematicRauchmelder(adapter, id, baseState, etage, raum, device) {
207
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
208
- }
209
- HomematicRauchmelder.prototype.getCategory = function () {
210
- return deviceRauchmelder;
211
- };
212
- HomematicRauchmelder.prototype.isStatusBattery = function () {
213
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
214
- };
215
- return HomematicRauchmelder;
216
- }(AbstractHomematic));
217
- exports.HomematicRauchmelder = HomematicRauchmelder;
218
- var HomematicTemperatursensor = /** @class */ (function (_super) {
219
- __extends(HomematicTemperatursensor, _super);
220
- function HomematicTemperatursensor(adapter, id, baseState, etage, raum, device) {
221
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
222
- }
223
- HomematicTemperatursensor.prototype.getTemperatureIst = function () {
224
- return this.adapter.getState(this.baseState + ".1.ACTUAL_TEMPERATURE").val + " °C";
225
- };
226
- HomematicTemperatursensor.prototype.getHumanity = function () {
227
- return this.adapter.getState(this.baseState + ".1.HUMIDITY").val + " %"; // hm-rpc.0.00181BE98EF50E.1.HUMIDITY
228
- };
229
- HomematicTemperatursensor.prototype.getCategory = function () {
230
- return deviceTemperatursensor;
231
- };
232
- HomematicTemperatursensor.prototype.isStatusBattery = function () {
233
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
234
- };
235
- return HomematicTemperatursensor;
236
- }(AbstractHomematic));
237
- exports.HomematicTemperatursensor = HomematicTemperatursensor;
238
- var HomematicWandtaster = /** @class */ (function (_super) {
239
- __extends(HomematicWandtaster, _super);
240
- function HomematicWandtaster(adapter, id, baseState, etage, raum, device) {
241
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
242
- }
243
- HomematicWandtaster.prototype.getCategory = function () {
244
- return deviceWandtaster;
245
- };
246
- return HomematicWandtaster;
247
- }(AbstractHomematic));
248
- exports.HomematicWandtaster = HomematicWandtaster;
249
- var HomematicAccessPoint = /** @class */ (function (_super) {
250
- __extends(HomematicAccessPoint, _super);
251
- function HomematicAccessPoint(adapter, id, baseState, etage, raum, device) {
252
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
253
- }
254
- HomematicAccessPoint.prototype.getCategoryAsString = function () {
255
- return "Access Point";
256
- };
257
- HomematicAccessPoint.prototype.isStatusBattery = function () {
258
- return true;
259
- };
260
- HomematicAccessPoint.prototype.getSignal = function () {
261
- return "";
262
- };
263
- HomematicAccessPoint.prototype.getCategory = function () {
264
- return deviceAccessPoint;
265
- };
266
- return HomematicAccessPoint;
267
- }(AbstractHomematic));
268
- exports.HomematicAccessPoint = HomematicAccessPoint;
269
- var HomematicRollladen = /** @class */ (function (_super) {
270
- __extends(HomematicRollladen, _super);
271
- function HomematicRollladen(adapter, id, baseState, etage, raum, device, positionAuf, positionMitte, positionZu) {
272
- var _this = _super.call(this, adapter, id, baseState, etage, raum, device) || this;
273
- _this.positionAuf = positionAuf;
274
- _this.positionMitte = positionMitte;
275
- _this.positionZu = positionZu;
276
- return _this;
277
- }
278
- HomematicRollladen.prototype.getCategory = function () {
279
- return deviceRollladen;
280
- };
281
- HomematicRollladen.prototype.auf = function () {
282
- this.adapter.setState(this.getBaseState() + ".4.LEVEL", this.positionAuf);
283
- };
284
- HomematicRollladen.prototype.zu = function () {
285
- this.adapter.setState(this.getBaseState() + ".4.LEVEL", this.positionZu);
286
- };
287
- HomematicRollladen.prototype.mitte = function () {
288
- this.adapter.setState(this.getBaseState() + ".4.LEVEL", this.positionMitte);
289
- };
290
- return HomematicRollladen;
291
- }(AbstractHomematic));
292
- exports.HomematicRollladen = HomematicRollladen;
293
- var HomematicDoor = /** @class */ (function (_super) {
294
- __extends(HomematicDoor, _super);
295
- function HomematicDoor(adapter, id, baseState, etage, raum, device, skipStatisticIsOpened, skipStatisticIsClosed) {
296
- var _this = _super.call(this, adapter, id, baseState, etage, raum, device) || this;
297
- _this.skipStatisticIsOpened = skipStatisticIsOpened;
298
- _this.skipStatisticIsClosed = skipStatisticIsClosed;
299
- return _this;
300
- }
301
- HomematicDoor.prototype.isSkipStatisticIsOpened = function () {
302
- return this.skipStatisticIsOpened;
303
- };
304
- HomematicDoor.prototype.isSkipStatisticIsClosed = function () {
305
- return this.skipStatisticIsClosed;
306
- };
307
- HomematicDoor.prototype.getCategory = function () {
308
- return deviceDoor;
309
- };
310
- HomematicDoor.prototype.isStatusBattery = function () {
311
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
312
- };
313
- HomematicDoor.prototype.isOpen = function () {
314
- if (this.adapter.getState(this.baseState + ".1.STATE").val) { // hm-rpc.0.0000DD89BE05F9.1.STATE
315
- return true;
316
- }
317
- return false;
318
- };
319
- return HomematicDoor;
320
- }(AbstractHomematic));
321
- exports.HomematicDoor = HomematicDoor;
322
- var HomematicFussbodenheizung = /** @class */ (function (_super) {
323
- __extends(HomematicFussbodenheizung, _super);
324
- function HomematicFussbodenheizung(adapter, id, baseState, etage, raum, device) {
325
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
326
- }
327
- HomematicFussbodenheizung.prototype.getCategory = function () {
328
- return deviceFussbodenheizung;
329
- };
330
- return HomematicFussbodenheizung;
331
- }(AbstractHomematic));
332
- exports.HomematicFussbodenheizung = HomematicFussbodenheizung;
333
- var HomematicWandschalter = /** @class */ (function (_super) {
334
- __extends(HomematicWandschalter, _super);
335
- function HomematicWandschalter(adapter, id, baseState, etage, raum, device) {
336
- return _super.call(this, adapter, id, baseState, etage, raum, device) || this;
337
- }
338
- HomematicWandschalter.prototype.getCategory = function () {
339
- return deviceWandschalter;
340
- };
341
- HomematicWandschalter.prototype.isStatusBattery = function () {
342
- return !this.adapter.getState(this.baseState + ".0.LOW_BAT").val; // // hm-rpc.0.000A9BE993E2F7.0.LOW_BAT
343
- };
344
- HomematicWandschalter.prototype.isSwitchedOn = function () {
345
- if (this.getType() == "HM-LC-Sw1PBU-FM") {
346
- if (this.adapter.getState(this.baseState + ".1.STATE").val == false) { // hm-rpc.0.PEQ2220753.1.STATE
347
- return false;
348
- }
349
- return true;
350
- }
351
- else if (this.getType() == "HmIP-BSM") {
352
- if (this.adapter.getState(this.baseState + ".4.STATE").val == false) { // // hm-rpc.1.000855699C4F38.4.STATE
353
- return false;
354
- }
355
- return true;
356
- }
357
- else {
358
- // @ts-ignore
359
- return undefined;
360
- }
361
- };
362
- return HomematicWandschalter;
363
- }(AbstractHomematic));
364
- exports.HomematicWandschalter = HomematicWandschalter;
365
- function getHomematicDevicesUwe(adapter, filterCategory) {
366
- adapter.log("INSIDE: ");
367
- var homematicArray = [];
368
- adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(function (datenpunktKey) {
369
- adapter.log("Here i am: " + datenpunktKey);
370
- });
371
- return homematicArray;
372
- }
373
- exports.getHomematicDevicesUwe = getHomematicDevicesUwe;
374
- module.exports = { getHomematicDevicesUwe: getHomematicDevicesUwe, HomematicWindow: HomematicWindow, HomematicSteckdose: HomematicSteckdose, HomematicHeizkoerper: HomematicHeizkoerper, HomematicDimmer: HomematicDimmer, HomematicWandthermostat: HomematicWandthermostat, HomematicFussbodenheizung: HomematicFussbodenheizung, HomematicWandschalter: HomematicWandschalter, HomematicDoor: HomematicDoor, HomematicWetterstation: HomematicWetterstation, HomematicAccessPoint: HomematicAccessPoint, HomematicRollladen: HomematicRollladen, HomematicWandtaster: HomematicWandtaster, HomematicTemperatursensor: HomematicTemperatursensor, HomematicRauchmelder: HomematicRauchmelder, HomematicPraesenzmelder: HomematicPraesenzmelder, AbstractHomematic: AbstractHomematic, HomematicFunkschaltaktor: HomematicFunkschaltaktor };