[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>pull/1817/head
parent
c2b3885e9e
commit
7d2a505e13
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue