iobroker-ucl 1.1.36 → 1.1.37
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/shellyFunctions.js +7 -0
- package/shellyFunctions.ts +8 -0
package/package.json
CHANGED
package/shellyFunctions.js
CHANGED
@@ -506,14 +506,21 @@ export function loadShellyLampenRGB(adapter: any) {
|
|
506
506
|
}*/
|
507
507
|
var cacheDimmerArray = null;
|
508
508
|
function loadShellyDimmer(adapter) {
|
509
|
+
console.log("loadShellyDimmer do it!!!!");
|
509
510
|
if (cacheDimmerArray != null) {
|
511
|
+
console.log("loadShellyDimmer do it!!!!_a");
|
510
512
|
return cacheDimmerArray;
|
511
513
|
}
|
514
|
+
console.log("loadShellyDimmer do it!!!!_b");
|
512
515
|
// @ts-ignore
|
513
516
|
cacheDimmerArray = [];
|
517
|
+
console.log("loadShellyDimmer do it!!!!_c");
|
514
518
|
adapter.$('state[id=0_userdata.0.devices.shelly.*.*.category]').each(function (datenpunktKey) {
|
519
|
+
console.log("loadShellyDimmer do it!!!!_d");
|
515
520
|
var datenpunktPraefix = datenpunktKey.replaceAll(".category", "");
|
521
|
+
console.log("loadShellyDimmer do it!!!!_e: " + adapter.getState(datenpunktKey).val + " ---- " + deviceShellyDimmer);
|
516
522
|
if (adapter.getState(datenpunktKey).val == deviceShellyDimmer) {
|
523
|
+
console.log("loadShellyDimmer do it!!!!_f");
|
517
524
|
// Einschalt-Scheme:
|
518
525
|
var alexaOnScheme = null;
|
519
526
|
if (adapter.getState(datenpunktPraefix + "." + attributeDimmer_alexaScheme_aktiv).val == true) {
|
package/shellyFunctions.ts
CHANGED
@@ -546,15 +546,23 @@ export function loadShellyLampenRGB(adapter: any) {
|
|
546
546
|
|
547
547
|
var cacheDimmerArray = null;
|
548
548
|
export function loadShellyDimmer(adapter: any) {
|
549
|
+
console.log("loadShellyDimmer do it!!!!");
|
549
550
|
if (cacheDimmerArray != null) {
|
551
|
+
console.log("loadShellyDimmer do it!!!!_a");
|
550
552
|
return cacheDimmerArray;
|
551
553
|
}
|
554
|
+
console.log("loadShellyDimmer do it!!!!_b");
|
555
|
+
|
552
556
|
// @ts-ignore
|
553
557
|
cacheDimmerArray = [];
|
558
|
+
console.log("loadShellyDimmer do it!!!!_c");
|
554
559
|
|
555
560
|
adapter.$('state[id=0_userdata.0.devices.shelly.*.*.category]').each(datenpunktKey => {
|
561
|
+
console.log("loadShellyDimmer do it!!!!_d");
|
556
562
|
var datenpunktPraefix = datenpunktKey.replaceAll(".category", "");
|
563
|
+
console.log("loadShellyDimmer do it!!!!_e: " + adapter.getState(datenpunktKey).val + " ---- " + deviceShellyDimmer);
|
557
564
|
if (adapter.getState(datenpunktKey).val == deviceShellyDimmer) {
|
565
|
+
console.log("loadShellyDimmer do it!!!!_f");
|
558
566
|
|
559
567
|
// Einschalt-Scheme:
|
560
568
|
var alexaOnScheme = null;
|