Howto use zigbee2mqtt with openHAB, removing proprietary bridges / gateways

Things seems to have changed since last year, when we were said Xiaomi devices could not be used on a standard Zigbee protocol as some specific encoding…
https://github.com/zigbeer/zigbee-shepherd/issues/8#issuecomment-291489170

ZS currently has tested with Philips Hue, GE light, Netvox sensors/plugs/lights, ASUS sensors, and some other devices from our customer. We’ve tried Xiaomi’s device as well, unfortunately it doesn’t work with ZS for its proprietary encoding. We not yet give it a try with Smart Things devices (and we will).

and even the zigbee-shepherd was not working out of the box :
https://github.com/zigbeer/zigbee-shepherd/issues/26

Xiaomi devices send predetermined attribute reports to coordinator endpoint 1 with profile id 0x0104 (Zigbee Home Automation profile). Zigbee-shepherd at the moment registers the 0x0104 profile to endpoint 2. So to get Xiaomi attribute reports working we need to swap the profile id-s of endpoints 1 and 2 in zigbee-shepherd. That can be done in lib/initializers/init_controller.js

strange strange…