If you got it from Google Play, please note that version is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can.
First of all, thank you very much for your time and activity to program Gadgetbridge.
I am using my Amazfit Cor 2 since 2 weeks right now.
The textual line of the summary on the top shows reasonal times when I've slept.
The first days with the originally shipped FW version 0.3.0.11 I had mostly reasonable times for the light and deep sleeting times.
Then I've updated the Amazfit Cor 2 to 0.3.0.44 using the official Mi Fit App (on an old unsued phone). I have deleted and relinked the Amazfit Cor 2 to Gadgetbridge (on my normal phone).
Since then Gadgetbridge shows the analyzed light sleeping time shows only some minutes to less then 2 hours and the deep sleeping time nothing up to less than 10 minutes. And this during night with more than 8 hours sleeping time in the summary.
There are some regular ‘green’ lines up to 0.111111 or no lines (white space) in between. Only very sporadic green and blue lines exceed this level e.g. up to about 0.25.
Could you please verify if you can improve this.
Thanks in advance.
PS: I'd provide needed data directly, if needed.
Amazfit Cor 2, FW 0.3.0.44
I would have assumed that even 0.3.0.11 had that problem.
It is present 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 do 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.
We ignore those information 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 analysis it will retroactively work.
Thank you, you are right. It just began to work occasionally up to often, when I had sent this post.
I've changed the issue name from 'Amazfit Cor 2: No reasonable Sleep Analysis since Update from 0.3.0.11 to 0.3.0.44'to ‘Amazfit Cor 2: No reliable Sleep Analysis’.
I have the impression that it works if it starts with ‘deep sleep’ than it changes mostly beween deep and light sleep only rarely to ‘green (active)'. If not it changes between ‘green (active)’ and nothing.
If I export the database eg. to calc/excel, can I try to parse the data like you do? Which tokens do you analyze right now?
Can I manually look for the further undocumented ‘flags’ or ‘hints’?
Thank you and cheers
See here please https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Data-Export-Import-Merging-Processing
Please also have a look at #686
Basically we ignore the upper nibble by just masking the last 4 bit (& 0xf) and map the resulting value (0-15)
No due date set.
This issue currently doesn't have any dependencies.
Deleting a branch is permanent. It CANNOT be undone. Continue?