hoffmation-base 2.22.3 → 2.22.4
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.
|
@@ -100,11 +100,7 @@ class ZigbeeDimmer extends index_1.ZigbeeDevice {
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
if (transitionTime > -1) {
|
|
103
|
-
this.
|
|
104
|
-
if (err) {
|
|
105
|
-
this.log(models_1.LogLevel.Error, `Dimmer TransitionTime schalten ergab Fehler: ${err}`);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
103
|
+
this.setState(this._stateIdTransitionTime, transitionTime);
|
|
108
104
|
}
|
|
109
105
|
const dontBlock = sharedFunctions_1.LampUtils.checkUnBlock(this, force, pValue);
|
|
110
106
|
if (sharedFunctions_1.LampUtils.checkBlockActive(this, force, pValue)) {
|
|
@@ -80,18 +80,10 @@ class ZigbeeLedRGBCCT extends zigbeeDimmer_1.ZigbeeDimmer {
|
|
|
80
80
|
this.log(models_1.LogLevel.Debug, `LED Schalten An: ${pValue}\tHelligkeit: ${brightness}%\tFarbe: "${color}"\tColorTemperatur: ${colorTemp}\tTransition Time: ${transitionTime}`);
|
|
81
81
|
const formattedColor = services_1.Utils.formatHex(color);
|
|
82
82
|
if (formattedColor !== null) {
|
|
83
|
-
this.
|
|
84
|
-
if (err) {
|
|
85
|
-
this.log(models_1.LogLevel.Error, `LED Farbe schalten ergab Fehler: ${err}`);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
83
|
+
this.setState(this._stateIdColor, color);
|
|
88
84
|
}
|
|
89
85
|
if (colorTemp > -1) {
|
|
90
|
-
this.
|
|
91
|
-
if (err) {
|
|
92
|
-
this.log(models_1.LogLevel.Error, `LED Farbwärme schalten ergab Fehler: ${err}`);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
86
|
+
this.setState(this._stateIdColorTemp, colorTemp);
|
|
95
87
|
}
|
|
96
88
|
super.setLight(pValue, timeout, force, brightness, transitionTime);
|
|
97
89
|
}
|
|
@@ -11,7 +11,7 @@ class ZigbeeInnr142C extends BaseDevices_1.ZigbeeLedRGBCCT {
|
|
|
11
11
|
this._stateNameTransitionTime = 'transition_time';
|
|
12
12
|
this._stateNameColor = 'color';
|
|
13
13
|
this._stateNameColorTemp = 'colortemp';
|
|
14
|
-
this._debounceStateDelay =
|
|
14
|
+
this._debounceStateDelay = 3500;
|
|
15
15
|
this._stateIdBrightness = `${this.info.fullID}.brightness`;
|
|
16
16
|
this._stateIdColor = `${this.info.fullID}.color`;
|
|
17
17
|
this._stateIdColorTemp = `${this.info.fullID}.colortemp`;
|