I just recently made clean install of xiaomi.eu rom.
At first it wasn't working, but after I changed in programer options, what phone should do when usb is connected to "charge this device", my problems stopped again.
I still use this program to limit charging to 98% or so.