How does the Mi Clock app know when I went to sleep?