Open FSeidinger opened 6 months ago
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).
I'm happy to accept a PR with a doc update!
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: