Lockscreen does not unlock on alarm (Xiaomi, MIUI)

On Xiaomi/MIUI, you need to grant special permission to Sleep as Android so that it may unlock your screen during alarm.

Go to System Settings > Permissions > Advanced Permissions > select Sleep app and give it permission to access Lockscreen.