Xiaomi Gateway and Switch

Does Xiaomi stuff work out of the box with openhab? How easy is it to setup?

Here’s one place to start:

If not wanting to use a proprietary gateway:

Another good place for info is to search the forum. Here’s a quick search using keywords “Xiaomi Gateway Setup”.