-
-
Notifications
You must be signed in to change notification settings - Fork 38
Description
I can't run any rule with runRule (in blockly or in a blockly script) with 5.1.0 latest snapshot (16.9.2025). This worked up to 5.0.1.
Error is: "TypeError: Cannot read property "receivedEvent" from null in @openhab-globals.js at line number 2 at column number 57031"
I just had a look into the changes and I assume without too much knowledge of the context that the problem lies in PR #466 (@florian-h05). This seems to have introduced some usage of "event" in line 505 rules.js outside the verified scope. Probably a change into if (event && event.receivedEvent) { might fix this problem.
I can provide some PR with the suggested fix, but I have no idea if I'm even thinking in the right direction, nor do I have the chance to test this.
Hope there is some fix, regards, Rene