Hi @janbeck
I’m missing quite a bit of information to tell you exactly why this isn’t working.
Are you correctly using location rules for your field group?
If so, all you need to do is not pass through any ‘field_groups’ in the args and allow ACF to find the correct field groups based on the $post that you are trying to edit.