Deep Sleep detection on Huami devices
There is no good Deep Sleep detection on Huami devices. This is an issue currently in ALL Huami devices, with the exception of VERY EARLY factory version of the Amazfit Bip and older Mi Band 2 firmwares.
The reason is that the devices no longer properly distinguish between light and deep sleep but set some flags or hints for later analysis which is probably done in Mi Fit. The presumtion is, that the MiFit app does some postprocessing on the data. Some work to analyze this has already been done, but no implementation has landed in Gadgetbridge. We would welcome a contribution in this direction.
So at the moment, we ignore these flags and hints, completely because despite of some theories and discussion, it is still unclear how all this works. This information still lands in the database, so if we fix the analysis one day it will retroactively work.
Having said that, the
Use heart rate sensor to improve sleep detection works and you get good view into your HR during sleep:
- Data Backup
- Permissions Explained
- Sports Activities Workouts
- Activity Sessions List
- Activity and Sleep Charts
- Heartrate measurement
- GPS recording of sports activities
- Integrating Sports Tracking apps with Gadgetbridge Sports Activities/Workouts
- Huami devices
- MyKronoz ZeTime
- Casio devices
- Fossil Hybrid HR
- How to Release
- Developer Documentation
- BT Protocol Reverse Engineering
- Support for a new Device
- New Device Tutorial
- Translating Gadgetbridge