Tip: Alternate way to get token for Xiaomi Vacuum

Yes, I see no reason why it would not work.
I recently posted that as a suggestion [SOLVED] Openhab2 - Xiaomi Mi Gateway - does not respond - #330 by marcel_verpaalen but did not see any response of some one that tried it.
You could prob also request the tokens of the subdevices of the gateway (dunno if that is needed)

If you have one, give it a try… It will show up as unsupported device, but that would not stop it from getting the token and, if needed, send custom commands to it (like get_device_list or similar)