openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

event object exists when triggered by action rule but does not exist if context provided

Open egoist6 opened this issue 6 months ago • 0 comments

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

egoist6 avatar May 27 '25 19:05 egoist6