oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.68k stars 292 forks source link

measurement assigned to wrong user #1001

Closed FransM closed 10 months ago

FransM commented 11 months ago

Describe the bug In the scenario as described in https://github.com/oliexdev/openScale/issues/1000 the measurement was assigned to me

To Reproduce Could not reproduce

Expected behavior My measurement is about 100 kg. The new measurement was about 15 kg. Still this was added to my list. I would expect that if the weight changes so much that this is treated as error or is used as a popup to ask for the user. (or maybe add a user unknown or unassigned)

Additional context Xiaomi body composition scale 2

Debug log not available, cannot reproduce and only noticed afterwards.

FransM commented 10 months ago

I've peeked into the code and I suspect that I know what happened. Smart user assignment was on but the newly added measurement was out of range for any user so the measurement was assigned to the selected user as ignore-out-of-range was off. This is probably as intended but in my case subsequent measurements ended up at the wrong user.