Dose xiaomi(miot) support local connection?

Hi there, I want to set up a local network and connect all the xiaomi devices without internet. At the moment I know that xiaomi devices need to connect to xiaomi cloud at first to get the token and then it would be able to connect to the devices but this would require the internet connection to get the token. is it possible for HA to connect to all the xiaomi devices via miot protocol without internet connection at all but only the local connection? thanks.

Can you be more specific around which products you are talking about?