iobroker-ucl 1.0.49 → 1.0.50
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/homematicFunctions.js +16 -24
- package/homematicFunctions.ts +16 -25
- package/package.json +1 -1
- package/zigbeeFunctions.js +10 -10
- package/zigbeeFunctions.ts +10 -10
package/homematicFunctions.js
CHANGED
@@ -188,79 +188,71 @@ exports.getHomematicDevices = getHomematicDevices;
|
|
188
188
|
function getHomematicDevicesAll(adapter) {
|
189
189
|
//var homematicArray : Array<InstanceType<typeof AbstractHomematic>> = [];
|
190
190
|
var homematicArray = [];
|
191
|
-
|
191
|
+
this.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(function (homematic) {
|
192
192
|
// @ts-ignore
|
193
193
|
homematicArray.push(homematic);
|
194
194
|
});
|
195
|
-
|
195
|
+
this.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(function (homematic) {
|
196
196
|
// @ts-ignore
|
197
197
|
homematicArray.push(homematic);
|
198
198
|
});
|
199
|
-
|
199
|
+
this.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(function (homematic) {
|
200
200
|
// @ts-ignore
|
201
201
|
homematicArray.push(homematic);
|
202
202
|
});
|
203
|
-
|
203
|
+
this.getHomematicDevices(adapter, deviceHomematicDoor).forEach(function (homematic) {
|
204
204
|
// @ts-ignore
|
205
205
|
homematicArray.push(homematic);
|
206
206
|
});
|
207
|
-
|
207
|
+
this.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(function (homematic) {
|
208
208
|
// @ts-ignore
|
209
209
|
homematicArray.push(homematic);
|
210
210
|
});
|
211
|
-
|
211
|
+
this.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(function (homematic) {
|
212
212
|
// @ts-ignore
|
213
213
|
homematicArray.push(homematic);
|
214
214
|
});
|
215
|
-
|
215
|
+
this.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(function (homematic) {
|
216
216
|
// @ts-ignore
|
217
217
|
homematicArray.push(homematic);
|
218
218
|
});
|
219
|
-
|
219
|
+
this.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(function (homematic) {
|
220
220
|
// @ts-ignore
|
221
221
|
homematicArray.push(homematic);
|
222
222
|
});
|
223
|
-
|
223
|
+
this.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(function (homematic) {
|
224
224
|
// @ts-ignore
|
225
225
|
homematicArray.push(homematic);
|
226
226
|
});
|
227
|
-
|
227
|
+
this.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(function (homematic) {
|
228
228
|
// @ts-ignore
|
229
229
|
homematicArray.push(homematic);
|
230
230
|
});
|
231
|
-
|
231
|
+
this.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(function (homematic) {
|
232
232
|
// @ts-ignore
|
233
233
|
homematicArray.push(homematic);
|
234
234
|
});
|
235
|
-
|
235
|
+
this.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(function (homematic) {
|
236
236
|
// @ts-ignore
|
237
237
|
homematicArray.push(homematic);
|
238
238
|
});
|
239
|
-
|
239
|
+
this.getHomematicDevices(adapter, deviceHomematicWindow).forEach(function (homematic) {
|
240
240
|
// @ts-ignore
|
241
241
|
homematicArray.push(homematic);
|
242
242
|
});
|
243
|
-
|
243
|
+
this.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(function (homematic) {
|
244
244
|
// @ts-ignore
|
245
245
|
homematicArray.push(homematic);
|
246
246
|
});
|
247
|
-
|
247
|
+
this.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(function (homematic) {
|
248
248
|
// @ts-ignore
|
249
249
|
homematicArray.push(homematic);
|
250
250
|
});
|
251
|
-
|
251
|
+
this.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(function (homematic) {
|
252
252
|
// @ts-ignore
|
253
253
|
homematicArray.push(homematic);
|
254
254
|
});
|
255
255
|
return homematicArray;
|
256
256
|
}
|
257
257
|
exports.getHomematicDevicesAll = getHomematicDevicesAll;
|
258
|
-
/*export function getHomematicDevicesUwe(adapter: any, filterCategory:string) {
|
259
|
-
adapter.log("INSIDE: ");
|
260
|
-
var homematicArray = [];
|
261
|
-
adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(datenpunktKey => { // 0_userdata.0.devices.homematic.30.type
|
262
|
-
adapter.log("Here i am: " + datenpunktKey);
|
263
|
-
});
|
264
|
-
return homematicArray;
|
265
|
-
}*/
|
266
258
|
module.exports = { createHomematicDevice: createHomematicDevice, getHomematicDevices: getHomematicDevices, getHomematicDevicesAll: getHomematicDevicesAll };
|
package/homematicFunctions.ts
CHANGED
@@ -194,80 +194,71 @@ export function getHomematicDevicesAll(adapter: any) {
|
|
194
194
|
var homematicArray = [];
|
195
195
|
|
196
196
|
|
197
|
-
|
197
|
+
this.getHomematicDevices(adapter, deviceHomematicWandthermostat).forEach(homematic => {
|
198
198
|
// @ts-ignore
|
199
199
|
homematicArray.push(homematic);
|
200
200
|
});
|
201
|
-
|
201
|
+
this.getHomematicDevices(adapter, deviceHomematicPraesenzmelder).forEach(homematic => {
|
202
202
|
// @ts-ignore
|
203
203
|
homematicArray.push(homematic);
|
204
204
|
});
|
205
|
-
|
205
|
+
this.getHomematicDevices(adapter, deviceHomematicWetterstation).forEach(homematic => {
|
206
206
|
// @ts-ignore
|
207
207
|
homematicArray.push(homematic);
|
208
208
|
});
|
209
|
-
|
209
|
+
this.getHomematicDevices(adapter, deviceHomematicDoor).forEach(homematic => {
|
210
210
|
// @ts-ignore
|
211
211
|
homematicArray.push(homematic);
|
212
212
|
});
|
213
|
-
|
213
|
+
this.getHomematicDevices(adapter, deviceHomematicRollladen).forEach(homematic => {
|
214
214
|
// @ts-ignore
|
215
215
|
homematicArray.push(homematic);
|
216
216
|
});
|
217
|
-
|
217
|
+
this.getHomematicDevices(adapter, deviceHomematicWandschalter).forEach(homematic => {
|
218
218
|
// @ts-ignore
|
219
219
|
homematicArray.push(homematic);
|
220
220
|
});
|
221
|
-
|
221
|
+
this.getHomematicDevices(adapter, deviceHomematicFussbodenheizung).forEach(homematic => {
|
222
222
|
// @ts-ignore
|
223
223
|
homematicArray.push(homematic);
|
224
224
|
});
|
225
|
-
|
225
|
+
this.getHomematicDevices(adapter, deviceHomematicWandtaster).forEach(homematic => {
|
226
226
|
// @ts-ignore
|
227
227
|
homematicArray.push(homematic);
|
228
228
|
});
|
229
|
-
|
229
|
+
this.getHomematicDevices(adapter, deviceHomematicAccessPoint).forEach(homematic => {
|
230
230
|
// @ts-ignore
|
231
231
|
homematicArray.push(homematic);
|
232
232
|
});
|
233
|
-
|
233
|
+
this.getHomematicDevices(adapter, deviceHomematicTemperatursensor).forEach(homematic => {
|
234
234
|
// @ts-ignore
|
235
235
|
homematicArray.push(homematic);
|
236
236
|
});
|
237
|
-
|
237
|
+
this.getHomematicDevices(adapter, deviceHomematicRauchmelder).forEach(homematic => {
|
238
238
|
// @ts-ignore
|
239
239
|
homematicArray.push(homematic);
|
240
240
|
});
|
241
|
-
|
241
|
+
this.getHomematicDevices(adapter, deviceHomematicFunkSchaltaktor).forEach(homematic => {
|
242
242
|
// @ts-ignore
|
243
243
|
homematicArray.push(homematic);
|
244
244
|
});
|
245
|
-
|
245
|
+
this.getHomematicDevices(adapter, deviceHomematicWindow).forEach(homematic => {
|
246
246
|
// @ts-ignore
|
247
247
|
homematicArray.push(homematic);
|
248
248
|
});
|
249
|
-
|
249
|
+
this.getHomematicDevices(adapter, deviceHomematicSteckdose).forEach(homematic => {
|
250
250
|
// @ts-ignore
|
251
251
|
homematicArray.push(homematic);
|
252
252
|
});
|
253
|
-
|
253
|
+
this.getHomematicDevices(adapter, deviceHomematicHeizkoerper).forEach(homematic => {
|
254
254
|
// @ts-ignore
|
255
255
|
homematicArray.push(homematic);
|
256
256
|
});
|
257
|
-
|
257
|
+
this.getHomematicDevices(adapter, deviceHomematicDimmer).forEach(homematic => {
|
258
258
|
// @ts-ignore
|
259
259
|
homematicArray.push(homematic);
|
260
260
|
});
|
261
261
|
return homematicArray;
|
262
262
|
}
|
263
263
|
|
264
|
-
/*export function getHomematicDevicesUwe(adapter: any, filterCategory:string) {
|
265
|
-
adapter.log("INSIDE: ");
|
266
|
-
var homematicArray = [];
|
267
|
-
adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(datenpunktKey => { // 0_userdata.0.devices.homematic.30.type
|
268
|
-
adapter.log("Here i am: " + datenpunktKey);
|
269
|
-
});
|
270
|
-
return homematicArray;
|
271
|
-
}*/
|
272
|
-
|
273
264
|
module.exports = { createHomematicDevice, getHomematicDevices, getHomematicDevicesAll };
|
package/package.json
CHANGED
package/zigbeeFunctions.js
CHANGED
@@ -890,43 +890,43 @@ function getZigbeeDevices(adapter, filterCategory) {
|
|
890
890
|
exports.getZigbeeDevices = getZigbeeDevices;
|
891
891
|
function getZigbeeDevicesAll(adapter) {
|
892
892
|
var zigbeeArray = [];
|
893
|
-
getZigbeeDevices(adapter, deviceZigbeeSteckdose).forEach(function (homematic) {
|
893
|
+
this.getZigbeeDevices(adapter, deviceZigbeeSteckdose).forEach(function (homematic) {
|
894
894
|
// @ts-ignore
|
895
895
|
zigbeeArray.push(homematic);
|
896
896
|
});
|
897
|
-
getZigbeeDevices(adapter, deviceZigbeeBewegungsmelder).forEach(function (homematic) {
|
897
|
+
this.getZigbeeDevices(adapter, deviceZigbeeBewegungsmelder).forEach(function (homematic) {
|
898
898
|
// @ts-ignore
|
899
899
|
zigbeeArray.push(homematic);
|
900
900
|
});
|
901
|
-
getZigbeeDevices(adapter, deviceZigbeeLampeRGB).forEach(function (homematic) {
|
901
|
+
this.getZigbeeDevices(adapter, deviceZigbeeLampeRGB).forEach(function (homematic) {
|
902
902
|
// @ts-ignore
|
903
903
|
zigbeeArray.push(homematic);
|
904
904
|
});
|
905
|
-
getZigbeeDevices(adapter, deviceZigbeeLampeWeiss).forEach(function (homematic) {
|
905
|
+
this.getZigbeeDevices(adapter, deviceZigbeeLampeWeiss).forEach(function (homematic) {
|
906
906
|
// @ts-ignore
|
907
907
|
zigbeeArray.push(homematic);
|
908
908
|
});
|
909
|
-
getZigbeeDevices(adapter, deviceZigbeeRauchmelder).forEach(function (homematic) {
|
909
|
+
this.getZigbeeDevices(adapter, deviceZigbeeRauchmelder).forEach(function (homematic) {
|
910
910
|
// @ts-ignore
|
911
911
|
zigbeeArray.push(homematic);
|
912
912
|
});
|
913
|
-
getZigbeeDevices(adapter, deviceZigbeeWandtaster).forEach(function (homematic) {
|
913
|
+
this.getZigbeeDevices(adapter, deviceZigbeeWandtaster).forEach(function (homematic) {
|
914
914
|
// @ts-ignore
|
915
915
|
zigbeeArray.push(homematic);
|
916
916
|
});
|
917
|
-
getZigbeeDevices(adapter, deviceZigbeeDosenrelais).forEach(function (homematic) {
|
917
|
+
this.getZigbeeDevices(adapter, deviceZigbeeDosenrelais).forEach(function (homematic) {
|
918
918
|
// @ts-ignore
|
919
919
|
zigbeeArray.push(homematic);
|
920
920
|
});
|
921
|
-
getZigbeeDevices(adapter, deviceZigbeeSchalter).forEach(function (homematic) {
|
921
|
+
this.getZigbeeDevices(adapter, deviceZigbeeSchalter).forEach(function (homematic) {
|
922
922
|
// @ts-ignore
|
923
923
|
zigbeeArray.push(homematic);
|
924
924
|
});
|
925
|
-
getZigbeeDevices(adapter, deviceZigbeeRepeater).forEach(function (homematic) {
|
925
|
+
this.getZigbeeDevices(adapter, deviceZigbeeRepeater).forEach(function (homematic) {
|
926
926
|
// @ts-ignore
|
927
927
|
zigbeeArray.push(homematic);
|
928
928
|
});
|
929
|
-
getZigbeeDevices(adapter, deviceZigbeeFenstersensor).forEach(function (homematic) {
|
929
|
+
this.getZigbeeDevices(adapter, deviceZigbeeFenstersensor).forEach(function (homematic) {
|
930
930
|
// @ts-ignore
|
931
931
|
zigbeeArray.push(homematic);
|
932
932
|
});
|
package/zigbeeFunctions.ts
CHANGED
@@ -1038,43 +1038,43 @@ export function getZigbeeDevices(adapter: any, filterCategory: string) {
|
|
1038
1038
|
export function getZigbeeDevicesAll(adapter: any) {
|
1039
1039
|
var zigbeeArray = [];
|
1040
1040
|
|
1041
|
-
getZigbeeDevices(adapter, deviceZigbeeSteckdose).forEach(homematic => {
|
1041
|
+
this.getZigbeeDevices(adapter, deviceZigbeeSteckdose).forEach(homematic => {
|
1042
1042
|
// @ts-ignore
|
1043
1043
|
zigbeeArray.push(homematic);
|
1044
1044
|
});
|
1045
|
-
getZigbeeDevices(adapter, deviceZigbeeBewegungsmelder).forEach(homematic => {
|
1045
|
+
this.getZigbeeDevices(adapter, deviceZigbeeBewegungsmelder).forEach(homematic => {
|
1046
1046
|
// @ts-ignore
|
1047
1047
|
zigbeeArray.push(homematic);
|
1048
1048
|
});
|
1049
|
-
getZigbeeDevices(adapter, deviceZigbeeLampeRGB).forEach(homematic => {
|
1049
|
+
this.getZigbeeDevices(adapter, deviceZigbeeLampeRGB).forEach(homematic => {
|
1050
1050
|
// @ts-ignore
|
1051
1051
|
zigbeeArray.push(homematic);
|
1052
1052
|
});
|
1053
|
-
getZigbeeDevices(adapter, deviceZigbeeLampeWeiss).forEach(homematic => {
|
1053
|
+
this.getZigbeeDevices(adapter, deviceZigbeeLampeWeiss).forEach(homematic => {
|
1054
1054
|
// @ts-ignore
|
1055
1055
|
zigbeeArray.push(homematic);
|
1056
1056
|
});
|
1057
|
-
getZigbeeDevices(adapter, deviceZigbeeRauchmelder).forEach(homematic => {
|
1057
|
+
this.getZigbeeDevices(adapter, deviceZigbeeRauchmelder).forEach(homematic => {
|
1058
1058
|
// @ts-ignore
|
1059
1059
|
zigbeeArray.push(homematic);
|
1060
1060
|
});
|
1061
|
-
getZigbeeDevices(adapter, deviceZigbeeWandtaster).forEach(homematic => {
|
1061
|
+
this.getZigbeeDevices(adapter, deviceZigbeeWandtaster).forEach(homematic => {
|
1062
1062
|
// @ts-ignore
|
1063
1063
|
zigbeeArray.push(homematic);
|
1064
1064
|
});
|
1065
|
-
getZigbeeDevices(adapter, deviceZigbeeDosenrelais).forEach(homematic => {
|
1065
|
+
this.getZigbeeDevices(adapter, deviceZigbeeDosenrelais).forEach(homematic => {
|
1066
1066
|
// @ts-ignore
|
1067
1067
|
zigbeeArray.push(homematic);
|
1068
1068
|
});
|
1069
|
-
getZigbeeDevices(adapter, deviceZigbeeSchalter).forEach(homematic => {
|
1069
|
+
this.getZigbeeDevices(adapter, deviceZigbeeSchalter).forEach(homematic => {
|
1070
1070
|
// @ts-ignore
|
1071
1071
|
zigbeeArray.push(homematic);
|
1072
1072
|
});
|
1073
|
-
getZigbeeDevices(adapter, deviceZigbeeRepeater).forEach(homematic => {
|
1073
|
+
this.getZigbeeDevices(adapter, deviceZigbeeRepeater).forEach(homematic => {
|
1074
1074
|
// @ts-ignore
|
1075
1075
|
zigbeeArray.push(homematic);
|
1076
1076
|
});
|
1077
|
-
getZigbeeDevices(adapter, deviceZigbeeFenstersensor).forEach(homematic => {
|
1077
|
+
this.getZigbeeDevices(adapter, deviceZigbeeFenstersensor).forEach(homematic => {
|
1078
1078
|
// @ts-ignore
|
1079
1079
|
zigbeeArray.push(homematic);
|
1080
1080
|
});
|