I recently upgraded my OpenHAB installation from 4.2.1 to 4.2.2. Since this upgrade some of my Jython rule files fail to load with the following message:
Error during evaluation of script '/openhab/conf/automation/jython/windowwarning.py': ImportError: cannot import name
NotificationAction
It seems that the NotificationAction is no longer available. The line in question is
I have removed and reinstalled the binding. After a restart of OpenHAB loading the rules no longer fails. However the rules defined in my rule files show up in the rule overview of the MainUI, but they are masked in red with ‘Error: Handler’.
Since I wanted to unify my rules to use Javascript anway, I guess that’s the time, when I will take the plunge an rewrite them in Javascript, so I don’t need the Jython binding any longer.