Ask for the building permit and the grid connection in writing
Ask the seller for the building permit and the grid operator's connection commitment, each with its date. Under § 17 of Germany's Energy Industry Act (EnWG), grid operators must connect storage plants, but they may refuse for operational, economic or technical reasons. A refusal has to be justified in text form, so a missing commitment is something you can ask about directly.
Good if an offer says the grid connection is still open