iobroker-ucl 1.0.57 → 1.0.59

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.
@@ -33,8 +33,8 @@ function createDatenpunktSingle(adapter, deviceRawId, attributeType, attributeNa
33
33
  function getHomematicDevices(adapter, filterCategory) {
34
34
  var homematicArray = [];
35
35
  //var homematicArray : Array<InstanceType<typeof AbstractHomematic>> = [];
36
- adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(function (datenpunktKey) {
37
- var datenpunktPraefix = datenpunktKey.replaceAll(".type", "");
36
+ adapter.$('state[id=0_userdata.0.devices.homematic.*.category]').each(function (datenpunktKey) {
37
+ var datenpunktPraefix = datenpunktKey.replaceAll(".category", "");
38
38
  if (adapter.getState(datenpunktKey).val == filterCategory) {
39
39
  if (filterCategory == deviceHomematicWandthermostat) {
40
40
  // @ts-ignore
@@ -188,67 +188,67 @@ exports.getHomematicDevices = getHomematicDevices;
188
188
  function getHomematicDevicesAll(adapter) {
189
189
  //var homematicArray : Array<InstanceType<typeof AbstractHomematic>> = [];
190
190
  var homematicArray = [];
191
- this.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(function (homematic) {
191
+ adapter.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(function (homematic) {
192
192
  // @ts-ignore
193
193
  homematicArray.push(homematic);
194
194
  });
195
- this.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(function (homematic) {
195
+ adapter.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(function (homematic) {
196
196
  // @ts-ignore
197
197
  homematicArray.push(homematic);
198
198
  });
199
- this.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(function (homematic) {
199
+ adapter.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(function (homematic) {
200
200
  // @ts-ignore
201
201
  homematicArray.push(homematic);
202
202
  });
203
- this.getHomematicDevices(adapter, deviceHomematicDoor).forEach(function (homematic) {
203
+ adapter.getHomematicDevices(adapter, deviceHomematicDoor).forEach(function (homematic) {
204
204
  // @ts-ignore
205
205
  homematicArray.push(homematic);
206
206
  });
207
- this.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(function (homematic) {
207
+ adapter.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(function (homematic) {
208
208
  // @ts-ignore
209
209
  homematicArray.push(homematic);
210
210
  });
211
- this.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(function (homematic) {
211
+ adapter.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(function (homematic) {
212
212
  // @ts-ignore
213
213
  homematicArray.push(homematic);
214
214
  });
215
- this.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(function (homematic) {
215
+ adapter.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(function (homematic) {
216
216
  // @ts-ignore
217
217
  homematicArray.push(homematic);
218
218
  });
219
- this.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(function (homematic) {
219
+ adapter.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(function (homematic) {
220
220
  // @ts-ignore
221
221
  homematicArray.push(homematic);
222
222
  });
223
- this.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(function (homematic) {
223
+ adapter.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(function (homematic) {
224
224
  // @ts-ignore
225
225
  homematicArray.push(homematic);
226
226
  });
227
- this.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(function (homematic) {
227
+ adapter.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(function (homematic) {
228
228
  // @ts-ignore
229
229
  homematicArray.push(homematic);
230
230
  });
231
- this.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(function (homematic) {
231
+ adapter.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(function (homematic) {
232
232
  // @ts-ignore
233
233
  homematicArray.push(homematic);
234
234
  });
235
- this.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(function (homematic) {
235
+ adapter.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(function (homematic) {
236
236
  // @ts-ignore
237
237
  homematicArray.push(homematic);
238
238
  });
239
- this.getHomematicDevices(adapter, deviceHomematicWindow).forEach(function (homematic) {
239
+ adapter.getHomematicDevices(adapter, deviceHomematicWindow).forEach(function (homematic) {
240
240
  // @ts-ignore
241
241
  homematicArray.push(homematic);
242
242
  });
243
- this.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(function (homematic) {
243
+ adapter.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(function (homematic) {
244
244
  // @ts-ignore
245
245
  homematicArray.push(homematic);
246
246
  });
247
- this.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(function (homematic) {
247
+ adapter.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(function (homematic) {
248
248
  // @ts-ignore
249
249
  homematicArray.push(homematic);
250
250
  });
251
- this.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(function (homematic) {
251
+ adapter.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(function (homematic) {
252
252
  // @ts-ignore
253
253
  homematicArray.push(homematic);
254
254
  });
@@ -35,8 +35,8 @@ export function getHomematicDevices(adapter: any, filterCategory: string) {
35
35
  var homematicArray = [];
36
36
  //var homematicArray : Array<InstanceType<typeof AbstractHomematic>> = [];
37
37
 
38
- adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(datenpunktKey => { // 0_userdata.0.devices.homematic.30.type
39
- var datenpunktPraefix = datenpunktKey.replaceAll(".type", "");
38
+ adapter.$('state[id=0_userdata.0.devices.homematic.*.category]').each(datenpunktKey => { // 0_userdata.0.devices.homematic.30.type
39
+ var datenpunktPraefix = datenpunktKey.replaceAll(".category", "");
40
40
  if (adapter.getState(datenpunktKey).val == filterCategory) {
41
41
  if (filterCategory == deviceHomematicWandthermostat) {
42
42
  // @ts-ignore
@@ -194,67 +194,67 @@ export function getHomematicDevicesAll(adapter: any) {
194
194
  var homematicArray = [];
195
195
 
196
196
 
197
- this.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(homematic => {
197
+ adapter.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(homematic => {
198
198
  // @ts-ignore
199
199
  homematicArray.push(homematic);
200
200
  });
201
- this.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(homematic => {
201
+ adapter.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(homematic => {
202
202
  // @ts-ignore
203
203
  homematicArray.push(homematic);
204
204
  });
205
- this.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(homematic => {
205
+ adapter.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(homematic => {
206
206
  // @ts-ignore
207
207
  homematicArray.push(homematic);
208
208
  });
209
- this.getHomematicDevices(adapter, deviceHomematicDoor).forEach(homematic => {
209
+ adapter.getHomematicDevices(adapter, deviceHomematicDoor).forEach(homematic => {
210
210
  // @ts-ignore
211
211
  homematicArray.push(homematic);
212
212
  });
213
- this.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(homematic => {
213
+ adapter.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(homematic => {
214
214
  // @ts-ignore
215
215
  homematicArray.push(homematic);
216
216
  });
217
- this.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(homematic => {
217
+ adapter.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(homematic => {
218
218
  // @ts-ignore
219
219
  homematicArray.push(homematic);
220
220
  });
221
- this.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(homematic => {
221
+ adapter.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(homematic => {
222
222
  // @ts-ignore
223
223
  homematicArray.push(homematic);
224
224
  });
225
- this.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(homematic => {
225
+ adapter.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(homematic => {
226
226
  // @ts-ignore
227
227
  homematicArray.push(homematic);
228
228
  });
229
- this.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(homematic => {
229
+ adapter.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(homematic => {
230
230
  // @ts-ignore
231
231
  homematicArray.push(homematic);
232
232
  });
233
- this.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(homematic => {
233
+ adapter.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(homematic => {
234
234
  // @ts-ignore
235
235
  homematicArray.push(homematic);
236
236
  });
237
- this.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(homematic => {
237
+ adapter.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(homematic => {
238
238
  // @ts-ignore
239
239
  homematicArray.push(homematic);
240
240
  });
241
- this.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(homematic => {
241
+ adapter.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(homematic => {
242
242
  // @ts-ignore
243
243
  homematicArray.push(homematic);
244
244
  });
245
- this.getHomematicDevices(adapter, deviceHomematicWindow).forEach(homematic => {
245
+ adapter.getHomematicDevices(adapter, deviceHomematicWindow).forEach(homematic => {
246
246
  // @ts-ignore
247
247
  homematicArray.push(homematic);
248
248
  });
249
- this.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(homematic => {
249
+ adapter.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(homematic => {
250
250
  // @ts-ignore
251
251
  homematicArray.push(homematic);
252
252
  });
253
- this.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(homematic => {
253
+ adapter.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(homematic => {
254
254
  // @ts-ignore
255
255
  homematicArray.push(homematic);
256
256
  });
257
- this.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(homematic => {
257
+ adapter.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(homematic => {
258
258
  // @ts-ignore
259
259
  homematicArray.push(homematic);
260
260
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker-ucl",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "build": "tsc --build",
@@ -651,8 +651,8 @@ function createDatenpunktSingle(adapter, deviceRawId, attributeType, attributeNa
651
651
  }
652
652
  function getZigbeeDevices(adapter, filterCategory) {
653
653
  var zigbeeArray = [];
654
- adapter.$('state[id=0_userdata.0.devices.zigbee.*.type]').each(function (datenpunktKey) {
655
- var datenpunktPraefix = datenpunktKey.replaceAll(".type", "");
654
+ adapter.$('state[id=0_userdata.0.devices.zigbee.*.category]').each(function (datenpunktKey) {
655
+ var datenpunktPraefix = datenpunktKey.replaceAll(".category", "");
656
656
  if (adapter.getState(datenpunktKey).val == filterCategory) {
657
657
  //constructor(adapter:any, id: number, baseState: string, etage: string, raum: string,
658
658
  // device: string,
@@ -694,8 +694,8 @@ function createDatenpunktSingle(adapter:any, deviceRawId, attributeType, attribu
694
694
  export function getZigbeeDevices(adapter: any, filterCategory: string) {
695
695
  var zigbeeArray = [];
696
696
 
697
- adapter.$('state[id=0_userdata.0.devices.zigbee.*.type]').each(datenpunktKey => { // 0_userdata.0.devices.zigbee.30.type
698
- var datenpunktPraefix = datenpunktKey.replaceAll(".type", "");
697
+ adapter.$('state[id=0_userdata.0.devices.zigbee.*.category]').each(datenpunktKey => { // 0_userdata.0.devices.zigbee.30.type
698
+ var datenpunktPraefix = datenpunktKey.replaceAll(".category", "");
699
699
  if (adapter.getState(datenpunktKey).val == filterCategory) {
700
700
  //constructor(adapter:any, id: number, baseState: string, etage: string, raum: string,
701
701
  // device: string,