openhab-core
openhab-core copied to clipboard
event object exists when triggered by action rule but does not exist if context provided
Current Behavior
Is this the following an expected behavior?
If I run a managed rule by a MainUI widget without context like this:
action: rule
actionRule: test
the event object exists (event.type is ExecutionEvent)
If I run a rule by a MainUI widget with a context like this:
action: rule
actionRule: test
actionRuleContext: '{"param1": "value1"}'
there is no event object.
Sounds on the first sight not to be correct. See also here: https://community.openhab.org/t/event-object-and-action-rule/164246
Your Environment
openhab 4.3.5, java 17, jsscripting