Since the migration to OH3 (OpenHabian) one of my rules doesn’t work anymore. With additional debug logs I was able to identify that the following lines don’t work anymore for some reason:
var String strHarmonyActivity = ST_HARMONY_CurrentActivity.state.toString var boolean boolHarmonyDreamboxActivity = strHarmonyActivity.contains("TV")
When the rule is executed I get the following error in the log:
2020-12-30 00:06:27.501 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'default-6' failed: cannot invoke method public abstract java.lang.String org.openhab.core.items.Item.getName() on null in default
Sadly I didn’t find any solutions for this error in the forum. Any idea what could cause this error?