iobroker-ucl 1.0.65 → 1.0.67
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/package.json +1 -1
- package/zigbeeFunctions.js +11 -9
- package/zigbeeFunctions.ts +5 -4
package/package.json
CHANGED
package/zigbeeFunctions.js
CHANGED
@@ -124,20 +124,21 @@ exports.createZigbeeDevice = createZigbeeDevice;
|
|
124
124
|
// Dosenrelais:
|
125
125
|
function createDosenrelaisDevice(adapter, rawId, baseState, etage, raum, device, smartNames) {
|
126
126
|
// Allgemein:
|
127
|
-
createZigbeeDevice(adapter, rawId, baseState, etage, raum, device, deviceZigbeeDosenrelais);
|
127
|
+
/*createZigbeeDevice(adapter, rawId, baseState, etage, raum, device, deviceZigbeeDosenrelais);
|
128
|
+
|
128
129
|
// Spezifisch:
|
129
130
|
var db_smartNames = null;
|
130
|
-
smartNames.forEach(
|
131
|
+
smartNames.forEach(value => {
|
131
132
|
if (db_smartNames == null) {
|
132
|
-
// @ts-ignore
|
133
|
+
// @ts-ignore
|
133
134
|
db_smartNames = value;
|
134
|
-
}
|
135
|
-
|
136
|
-
// @ts-ignore
|
135
|
+
} else {
|
136
|
+
// @ts-ignore
|
137
137
|
db_smartNames += "|" + value;
|
138
138
|
}
|
139
139
|
});
|
140
|
-
createDatenpunktSingle(adapter, rawId, attributeTypeString, attributeDosenrelais_smartNames, db_smartNames, deviceZigbeeDosenrelais)
|
140
|
+
createDatenpunktSingle(adapter, rawId, attributeTypeString, attributeDosenrelais_smartNames, db_smartNames, deviceZigbeeDosenrelais);*/
|
141
|
+
adapter.log("i do nothing!");
|
141
142
|
}
|
142
143
|
exports.createDosenrelaisDevice = createDosenrelaisDevice;
|
143
144
|
// Steckdose:
|
@@ -874,8 +875,9 @@ function getZigbeeDevices(adapter, filterCategory) {
|
|
874
875
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
875
876
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
876
877
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
877
|
-
adapter.getState(datenpunktPraefix + "." + attributeDevice).val
|
878
|
-
adapter.getState(datenpunktPraefix + "." + attributeDosenrelais_smartNames).val.split('|')
|
878
|
+
adapter.getState(datenpunktPraefix + "." + attributeDevice).val // [4] Device (z.B. Stehlampe)
|
879
|
+
//adapter.getState(datenpunktPraefix + "." + attributeDosenrelais_smartNames).val.split('|') // 14 TasterBoolOff
|
880
|
+
));
|
879
881
|
}
|
880
882
|
else if (filterCategory == deviceZigbeeSchalter) {
|
881
883
|
// @ts-ignore
|
package/zigbeeFunctions.ts
CHANGED
@@ -148,7 +148,7 @@ export function createZigbeeDevice(adapter:any, rawId: number, baseState: string
|
|
148
148
|
export function createDosenrelaisDevice(adapter:any, rawId: number, baseState: string, etage:string, raum:string, device:string, smartNames:string[]) {
|
149
149
|
|
150
150
|
// Allgemein:
|
151
|
-
createZigbeeDevice(adapter, rawId, baseState, etage, raum, device, deviceZigbeeDosenrelais);
|
151
|
+
/*createZigbeeDevice(adapter, rawId, baseState, etage, raum, device, deviceZigbeeDosenrelais);
|
152
152
|
|
153
153
|
// Spezifisch:
|
154
154
|
var db_smartNames = null;
|
@@ -161,7 +161,8 @@ export function createDosenrelaisDevice(adapter:any, rawId: number, baseState: s
|
|
161
161
|
db_smartNames += "|" + value;
|
162
162
|
}
|
163
163
|
});
|
164
|
-
createDatenpunktSingle(adapter, rawId, attributeTypeString, attributeDosenrelais_smartNames, db_smartNames, deviceZigbeeDosenrelais)
|
164
|
+
createDatenpunktSingle(adapter, rawId, attributeTypeString, attributeDosenrelais_smartNames, db_smartNames, deviceZigbeeDosenrelais);*/
|
165
|
+
adapter.log("i do nothing!");
|
165
166
|
}
|
166
167
|
|
167
168
|
// Steckdose:
|
@@ -1022,8 +1023,8 @@ export function getZigbeeDevices(adapter: any, filterCategory: string) {
|
|
1022
1023
|
adapter.getState(datenpunktPraefix + "." + attributeBaseState).val, // [1] Datenpunkt Device (z.B. hm-rpc.1.001B9D898F9CBC)
|
1023
1024
|
adapter.getState(datenpunktPraefix + "." + attributeEtage).val, // [2] Etage/Bereich (z.B. EG)
|
1024
1025
|
adapter.getState(datenpunktPraefix + "." + attributeRaum).val, // [3] Raum/Unterbereich (z.B. Wohnzimmer)
|
1025
|
-
adapter.getState(datenpunktPraefix + "." + attributeDevice).val
|
1026
|
-
adapter.getState(datenpunktPraefix + "." + attributeDosenrelais_smartNames).val.split('|')
|
1026
|
+
adapter.getState(datenpunktPraefix + "." + attributeDevice).val // [4] Device (z.B. Stehlampe)
|
1027
|
+
//adapter.getState(datenpunktPraefix + "." + attributeDosenrelais_smartNames).val.split('|') // 14 TasterBoolOff
|
1027
1028
|
));
|
1028
1029
|
} else if (filterCategory == deviceZigbeeSchalter) {
|
1029
1030
|
// @ts-ignore
|