Open 5iver opened 5 years ago
Just a note: In general, the new rule engine does not know anything about the old one and thus does not and should not have a dependency on the (1.x) actions. With https://github.com/eclipse/smarthome/pull/6398, we will hopefully soon have a replacement for 1.x actions for the new rule engine and I could imagine that we can leverage this feature to make the 1.x actions available to the new rule engine through the openHAB compatibility layer.
EDIT: At first I thought this was recently introduced, but it was not. Steps to reproduce in this post. The same occurs when using the REST API
/rules/{ruleUID}/runnow
(which is what Paper UI is sending).If everything in the Action is commented out but the LoggerFactory import and the log statement, the exception does not occur. There looks to be an issue in the getContext when the rule has not already been triggered by an event. Here is the JS Action: