mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[automation] Correctly map the state context variable of the ItemStateEvent to the implicit var newState (#1809)
Fixes #1802 Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
+2
-1
@@ -54,7 +54,8 @@ public class DSLScriptEngine implements javax.script.ScriptEngine {
|
||||
public static final String MIMETYPE_OPENHAB_DSL_RULE = "application/vnd.openhab.dsl.rule";
|
||||
|
||||
private static final Map<String, String> implicitVars = Map.of("command", "receivedCommand", "event",
|
||||
"receivedEvent", "newState", "newState", "oldState", "previousState", "triggeringItem", "triggeringItem");
|
||||
"receivedEvent", "state", "newState", "newState", "newState", "oldState", "previousState", "triggeringItem",
|
||||
"triggeringItem");
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(DSLScriptEngine.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user