In a task error condition, this statement is executed: luup.call_delay("clearTask", 15, "", false) ...but fails since the "clearTask" function scope is local, not global. Solution: remove the 'local' in the function declaration!