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