iobroker-ucl 1.0.45 → 1.0.47
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 -18
- package/homematicFunctions.ts +17 -18
- package/package.json +1 -1
package/homematicFunctions.js
CHANGED
@@ -31,16 +31,14 @@ function createDatenpunktSingle(adapter, deviceRawId, attributeType, attributeNa
|
|
31
31
|
adapter.setState(stateDatenpunkt, attributeValue);
|
32
32
|
}
|
33
33
|
function getHomematicDevices(adapter, filterCategory) {
|
34
|
-
var _this = this;
|
35
34
|
var homematicArray = [];
|
36
35
|
//var homematicArray : Array<InstanceType<typeof AbstractHomematic>> = [];
|
37
|
-
// @ts-ignore
|
38
36
|
adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(function (datenpunktKey) {
|
39
37
|
var datenpunktPraefix = datenpunktKey.replaceAll(".type", "");
|
40
38
|
if (adapter.getState(datenpunktKey).val == filterCategory) {
|
41
39
|
if (filterCategory == deviceHomematicWandthermostat) {
|
42
40
|
// @ts-ignore
|
43
|
-
homematicArray.push(new HomematicWandthermostat(
|
41
|
+
homematicArray.push(new HomematicWandthermostat(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
44
42
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
45
43
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
46
44
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -49,7 +47,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
49
47
|
}
|
50
48
|
else if (filterCategory == deviceHomematicPraesenzmelder) {
|
51
49
|
// @ts-ignore
|
52
|
-
homematicArray.push(new HomematicPraesenzmelder(
|
50
|
+
homematicArray.push(new HomematicPraesenzmelder(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
53
51
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
54
52
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
55
53
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -58,7 +56,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
58
56
|
}
|
59
57
|
else if (filterCategory == deviceHomematicWetterstation) {
|
60
58
|
// @ts-ignore
|
61
|
-
homematicArray.push(new HomematicWetterstation(
|
59
|
+
homematicArray.push(new HomematicWetterstation(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
62
60
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
63
61
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
64
62
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -67,7 +65,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
67
65
|
}
|
68
66
|
else if (filterCategory == deviceHomematicDoor) {
|
69
67
|
// @ts-ignore
|
70
|
-
homematicArray.push(new HomematicDoor(
|
68
|
+
homematicArray.push(new HomematicDoor(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
71
69
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
72
70
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
73
71
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -76,7 +74,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
76
74
|
}
|
77
75
|
else if (filterCategory == deviceHomematicRollladen) {
|
78
76
|
// @ts-ignore
|
79
|
-
homematicArray.push(new HomematicRollladen(
|
77
|
+
homematicArray.push(new HomematicRollladen(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
80
78
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
81
79
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
82
80
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -85,7 +83,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
85
83
|
}
|
86
84
|
else if (filterCategory == deviceHomematicWandschalter) {
|
87
85
|
// @ts-ignore
|
88
|
-
homematicArray.push(new HomematicWandschalter(
|
86
|
+
homematicArray.push(new HomematicWandschalter(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
89
87
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
90
88
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
91
89
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -94,7 +92,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
94
92
|
}
|
95
93
|
else if (filterCategory == deviceHomematicFussbodenheizung) {
|
96
94
|
// @ts-ignore
|
97
|
-
homematicArray.push(new HomematicFussbodenheizung(
|
95
|
+
homematicArray.push(new HomematicFussbodenheizung(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
98
96
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
99
97
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
100
98
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -103,7 +101,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
103
101
|
}
|
104
102
|
else if (filterCategory == deviceHomematicWandtaster) {
|
105
103
|
// @ts-ignore
|
106
|
-
homematicArray.push(new HomematicWandtaster(
|
104
|
+
homematicArray.push(new HomematicWandtaster(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
107
105
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
108
106
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
109
107
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -112,7 +110,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
112
110
|
}
|
113
111
|
else if (filterCategory == deviceHomematicAccessPoint) {
|
114
112
|
// @ts-ignore
|
115
|
-
homematicArray.push(new HomematicAccessPoint(
|
113
|
+
homematicArray.push(new HomematicAccessPoint(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
116
114
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
117
115
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
118
116
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -121,7 +119,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
121
119
|
}
|
122
120
|
else if (filterCategory == deviceHomematicTemperatursensor) {
|
123
121
|
// @ts-ignore
|
124
|
-
homematicArray.push(new HomematicTemperatursensor(
|
122
|
+
homematicArray.push(new HomematicTemperatursensor(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
125
123
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
126
124
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
127
125
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -130,7 +128,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
130
128
|
}
|
131
129
|
else if (filterCategory == deviceHomematicRauchmelder) {
|
132
130
|
// @ts-ignore
|
133
|
-
homematicArray.push(new HomematicRauchmelder(
|
131
|
+
homematicArray.push(new HomematicRauchmelder(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
134
132
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
135
133
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
136
134
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -139,7 +137,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
139
137
|
}
|
140
138
|
else if (filterCategory == deviceHomematicFunkSchaltaktor) {
|
141
139
|
// @ts-ignore
|
142
|
-
homematicArray.push(new HomematicFunkschaltaktor(
|
140
|
+
homematicArray.push(new HomematicFunkschaltaktor(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
143
141
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
144
142
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
145
143
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -148,7 +146,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
148
146
|
}
|
149
147
|
else if (filterCategory == deviceHomematicWindow) {
|
150
148
|
// @ts-ignore
|
151
|
-
homematicArray.push(new HomematicWindow(
|
149
|
+
homematicArray.push(new HomematicWindow(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
152
150
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
153
151
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
154
152
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -157,7 +155,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
157
155
|
}
|
158
156
|
else if (filterCategory == deviceHomematicSteckdose) {
|
159
157
|
// @ts-ignore
|
160
|
-
homematicArray.push(new HomematicSteckdose(
|
158
|
+
homematicArray.push(new HomematicSteckdose(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
161
159
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
162
160
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
163
161
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -166,7 +164,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
166
164
|
}
|
167
165
|
else if (filterCategory == deviceHomematicHeizkoerper) {
|
168
166
|
// @ts-ignore
|
169
|
-
homematicArray.push(new HomematicHeizkoerper(
|
167
|
+
homematicArray.push(new HomematicHeizkoerper(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
170
168
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
171
169
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
172
170
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
@@ -175,7 +173,7 @@ function getHomematicDevices(adapter, filterCategory) {
|
|
175
173
|
}
|
176
174
|
else if (filterCategory == deviceHomematicDimmer) {
|
177
175
|
// @ts-ignore
|
178
|
-
homematicArray.push(new HomematicDimmer(
|
176
|
+
homematicArray.push(new HomematicDimmer(adapter, adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
179
177
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
180
178
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
181
179
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
package/homematicFunctions.ts
CHANGED
@@ -34,14 +34,13 @@ function createDatenpunktSingle(adapter:any, deviceRawId, attributeType, attribu
|
|
34
34
|
export function getHomematicDevices(adapter:any, filterCategory:string) {
|
35
35
|
var homematicArray = [];
|
36
36
|
//var homematicArray : Array<InstanceType<typeof AbstractHomematic>> = [];
|
37
|
-
|
38
|
-
// @ts-ignore
|
37
|
+
|
39
38
|
adapter.$('state[id=0_userdata.0.devices.homematic.*.type]').each(datenpunktKey => { // 0_userdata.0.devices.homematic.30.type
|
40
39
|
var datenpunktPraefix = datenpunktKey.replaceAll(".type", "");
|
41
40
|
if (adapter.getState(datenpunktKey).val == filterCategory) {
|
42
41
|
if (filterCategory == deviceHomematicWandthermostat) {
|
43
42
|
// @ts-ignore
|
44
|
-
homematicArray.push(new HomematicWandthermostat(
|
43
|
+
homematicArray.push(new HomematicWandthermostat(adapter,
|
45
44
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
46
45
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
47
46
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -50,7 +49,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
50
49
|
));
|
51
50
|
} else if (filterCategory == deviceHomematicPraesenzmelder) {
|
52
51
|
// @ts-ignore
|
53
|
-
homematicArray.push(new HomematicPraesenzmelder(
|
52
|
+
homematicArray.push(new HomematicPraesenzmelder(adapter,
|
54
53
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
55
54
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
56
55
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -59,7 +58,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
59
58
|
));
|
60
59
|
} else if (filterCategory == deviceHomematicWetterstation) {
|
61
60
|
// @ts-ignore
|
62
|
-
homematicArray.push(new HomematicWetterstation(
|
61
|
+
homematicArray.push(new HomematicWetterstation(adapter,
|
63
62
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
64
63
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
65
64
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -68,7 +67,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
68
67
|
));
|
69
68
|
} else if (filterCategory == deviceHomematicDoor) {
|
70
69
|
// @ts-ignore
|
71
|
-
homematicArray.push(new HomematicDoor(
|
70
|
+
homematicArray.push(new HomematicDoor(adapter,
|
72
71
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
73
72
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
74
73
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -77,7 +76,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
77
76
|
));
|
78
77
|
} else if (filterCategory == deviceHomematicRollladen) {
|
79
78
|
// @ts-ignore
|
80
|
-
homematicArray.push(new HomematicRollladen(
|
79
|
+
homematicArray.push(new HomematicRollladen(adapter,
|
81
80
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
82
81
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
83
82
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -86,7 +85,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
86
85
|
));
|
87
86
|
} else if (filterCategory == deviceHomematicWandschalter) {
|
88
87
|
// @ts-ignore
|
89
|
-
homematicArray.push(new HomematicWandschalter(
|
88
|
+
homematicArray.push(new HomematicWandschalter(adapter,
|
90
89
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
91
90
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
92
91
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -95,7 +94,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
95
94
|
));
|
96
95
|
} else if (filterCategory == deviceHomematicFussbodenheizung) {
|
97
96
|
// @ts-ignore
|
98
|
-
homematicArray.push(new HomematicFussbodenheizung(
|
97
|
+
homematicArray.push(new HomematicFussbodenheizung(adapter,
|
99
98
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
100
99
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
101
100
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -104,7 +103,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
104
103
|
));
|
105
104
|
} else if (filterCategory == deviceHomematicWandtaster) {
|
106
105
|
// @ts-ignore
|
107
|
-
homematicArray.push(new HomematicWandtaster(
|
106
|
+
homematicArray.push(new HomematicWandtaster(adapter,
|
108
107
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
109
108
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
110
109
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -113,7 +112,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
113
112
|
));
|
114
113
|
} else if (filterCategory == deviceHomematicAccessPoint) {
|
115
114
|
// @ts-ignore
|
116
|
-
homematicArray.push(new HomematicAccessPoint(
|
115
|
+
homematicArray.push(new HomematicAccessPoint(adapter,
|
117
116
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
118
117
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
119
118
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -122,7 +121,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
122
121
|
));
|
123
122
|
} else if (filterCategory == deviceHomematicTemperatursensor) {
|
124
123
|
// @ts-ignore
|
125
|
-
homematicArray.push(new HomematicTemperatursensor(
|
124
|
+
homematicArray.push(new HomematicTemperatursensor(adapter,
|
126
125
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
127
126
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
128
127
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -131,7 +130,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
131
130
|
));
|
132
131
|
} else if (filterCategory == deviceHomematicRauchmelder) {
|
133
132
|
// @ts-ignore
|
134
|
-
homematicArray.push(new HomematicRauchmelder(
|
133
|
+
homematicArray.push(new HomematicRauchmelder(adapter,
|
135
134
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
136
135
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
137
136
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -140,7 +139,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
140
139
|
));
|
141
140
|
} else if (filterCategory == deviceHomematicFunkSchaltaktor) {
|
142
141
|
// @ts-ignore
|
143
|
-
homematicArray.push(new HomematicFunkschaltaktor(
|
142
|
+
homematicArray.push(new HomematicFunkschaltaktor(adapter,
|
144
143
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
145
144
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
146
145
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -149,7 +148,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
149
148
|
));
|
150
149
|
} else if (filterCategory == deviceHomematicWindow) {
|
151
150
|
// @ts-ignore
|
152
|
-
homematicArray.push(new HomematicWindow(
|
151
|
+
homematicArray.push(new HomematicWindow(adapter,
|
153
152
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
154
153
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
155
154
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -158,7 +157,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
158
157
|
));
|
159
158
|
} else if (filterCategory == deviceHomematicSteckdose) {
|
160
159
|
// @ts-ignore
|
161
|
-
homematicArray.push(new HomematicSteckdose(
|
160
|
+
homematicArray.push(new HomematicSteckdose(adapter,
|
162
161
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
163
162
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
164
163
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -167,7 +166,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
167
166
|
));
|
168
167
|
} else if (filterCategory == deviceHomematicHeizkoerper) {
|
169
168
|
// @ts-ignore
|
170
|
-
homematicArray.push(new HomematicHeizkoerper(
|
169
|
+
homematicArray.push(new HomematicHeizkoerper(adapter,
|
171
170
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
172
171
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
173
172
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
@@ -176,7 +175,7 @@ export function getHomematicDevices(adapter:any, filterCategory:string) {
|
|
176
175
|
));
|
177
176
|
} else if (filterCategory == deviceHomematicDimmer) {
|
178
177
|
// @ts-ignore
|
179
|
-
homematicArray.push(new HomematicDimmer(
|
178
|
+
homematicArray.push(new HomematicDimmer(adapter,
|
180
179
|
adapter.getState(datenpunktPraefix + "." + attributeRawID).val, // [0] Device-ID (z.B. 1 --> In der Anzeige wird daraus "H01")
|
181
180
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
182
181
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|