hoffmation-base 3.0.0-alpha.1 → 3.0.0-alpha.3
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.
|
@@ -26,6 +26,9 @@ class BaseCommand {
|
|
|
26
26
|
reason = this.source.reasonTrace;
|
|
27
27
|
}
|
|
28
28
|
if (this.reason === '') {
|
|
29
|
+
if (reason === '') {
|
|
30
|
+
return `${this._commandType}`;
|
|
31
|
+
}
|
|
29
32
|
return `${reason} -> ${this._commandType}`;
|
|
30
33
|
}
|
|
31
34
|
return `${reason} -> ${this._commandType}(${this.reason})`;
|
|
@@ -20,7 +20,7 @@ class DimmerSetLightCommand extends lampSetLightCommand_1.LampSetLightCommand {
|
|
|
20
20
|
this._commandType = commandType_1.CommandType.DimmerSetLightCommand;
|
|
21
21
|
}
|
|
22
22
|
get logMessage() {
|
|
23
|
-
return `Dimmer setLight to ${this.on}
|
|
23
|
+
return `Dimmer setLight to ${this.on} for reason: ${this.reasonTrace}`;
|
|
24
24
|
}
|
|
25
25
|
static byTimeBased(s, c) {
|
|
26
26
|
switch (c.time) {
|
|
@@ -64,6 +64,7 @@ class LampUtils {
|
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
66
|
static setActuator(device, c) {
|
|
67
|
+
const dontBlock = LampUtils.checkUnBlock(device, c);
|
|
67
68
|
if (LampUtils.checkBlockActive(device, c)) {
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
@@ -76,10 +77,7 @@ class LampUtils {
|
|
|
76
77
|
c.timeout = 3000;
|
|
77
78
|
LampUtils.stromStossOn(device);
|
|
78
79
|
}
|
|
79
|
-
if (c.timeout
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
if (c.timeout > -1 && device.blockAutomationHandler !== undefined) {
|
|
80
|
+
if (c.timeout > -1 && !dontBlock) {
|
|
83
81
|
device.blockAutomationHandler.disableAutomatic(c.timeout, models_1.CollisionSolving.overrideIfGreater);
|
|
84
82
|
}
|
|
85
83
|
}
|