You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation of event object manually run from GUI is wrong
Expected behavior
The documentation states that this.event has the value undefined if manually run from the openHAB GUI.
Actual behavior
If run manually from the GUI (e.g. from the Run Now (CTRL-R button inside the script editor, this.event is not undefined but set to an instance of org.openhab.core.automation.events.ExecutionEvent.
Since the documentation has been written, there were changes and it seems I forgot to update the UI event object docs (I never use the UI event object, all my JS rules are file-based).
Documentation of event object manually run from GUI is wrong
Expected behavior
The documentation states that
this.event
has the valueundefined
if manually run from the openHAB GUI.Actual behavior
If run manually from the GUI (e.g. from the
Run Now (CTRL-R
button inside the script editor,this.event
is notundefined
but set to an instance oforg.openhab.core.automation.events.ExecutionEvent
.Take for example the following script:
It will produce the following output:
The text was updated successfully, but these errors were encountered: