Providing safety for automation systems