hoffmation-base 2.22.5 → 2.22.7
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.
|
@@ -30,7 +30,12 @@ class TuyaGarageOpener extends tuyaDevice_1.TuyaDevice {
|
|
|
30
30
|
}
|
|
31
31
|
break;
|
|
32
32
|
case this._switchId:
|
|
33
|
-
this.
|
|
33
|
+
if (this.settings.invertSensor) {
|
|
34
|
+
this._switchState = state.val === false;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this._switchState = state.val === true;
|
|
38
|
+
}
|
|
34
39
|
break;
|
|
35
40
|
}
|
|
36
41
|
super.update(idSplit, state, initial, true);
|
|
@@ -36,7 +36,9 @@ class ZigbeeInnr142C extends BaseDevices_1.ZigbeeLedRGBCCT {
|
|
|
36
36
|
brightness = 10;
|
|
37
37
|
}
|
|
38
38
|
this.log(models_1.LogLevel.Debug, `LED Schalten An: ${pValue}\tHelligkeit: ${brightness}%\tFarbe: "${color}"\tColorTemperatur: ${colorTemp}\tTransition Time: ${transitionTime}`);
|
|
39
|
-
|
|
39
|
+
if (this._lightOn !== pValue || this._brightness !== brightness) {
|
|
40
|
+
super.setLight(pValue, timeout, force, brightness, transitionTime);
|
|
41
|
+
}
|
|
40
42
|
const formattedColor = services_1.Utils.formatHex(color);
|
|
41
43
|
if (!pValue) {
|
|
42
44
|
return;
|