Auto turn off with Mi Band 2 doesn't work

I’ve tried this feature for three consecutive nights now and I’ve always woken up with the light on. The band is connected with both the Yeelight app and the Mi Fit app on my phone. The sleeping time is correctly registered in the Mi Fit app. How can I get it to work?

Have you enabled the item?

Yes, I have. It is discoverable too.