Xiaomi Gateway and Hass.io

sounds very similar to this thread, that turn out to be a faulty gateway in the end.