nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
694 stars 1.7k forks source link

Inaccuracy in COB leading to a possible insulin overdose. #631

Closed bchris21 closed 2 years ago

bchris21 commented 3 years ago

Hello,

I am using NSClient to monitor my son while he is in kindergarten. I have realized the following issue which I would like to report:

Issue: COB between AAPS and NSClient are inaccurate and not synced.

When does it happen: Whenever I manually delete carbs in AAPS from Treatments tab. The carbs deletion does not sync in NSclient and COB is different including the deleted carbs.

Why it can be dangerous: When my son is in kindergarten and I use Bolus Calculator (in NSclient) before sending SMS bolus, NSClient miscalculates bolus as it counts more carbs on board thus suggests more insulin and risking an overdose.

Workaround: I have to manually check deleted carb entries in AAPS and manually remove them from NSClient Treatments' tab.

App Versions/Builds: AAPS 2.8.2 Build: c07465b0c-2021-03.07-00:56 Fullrelease NSClient 2.8.2 Build: 194549adc-2021-01-23-13:06 nsclientfullrelease

Attachments below show the wrong bolus calculation on AAPS vs NSClient: Screenshot_20210814_131553 Screenshot_20210814_131459 Screenshot_20210814_131416 Screenshot_20210814_131347

I replicated the issue at 14/08/21 13:20 CET

Logs from both AAPS and NSClient are attached.

AndroidAPS_LOG_1628940043853.log.zip AndroidAPS_LOG_1628940082178.log.zip

Any help would be appreciated.

Thanks,

Chris

MilosKozak commented 3 years ago

can you send screenshots with COB graphs when you see this issue again?

bchris21 commented 3 years ago

@MilosKozak below the Screenshots requested.

In detail:

NSClient Screenshot Screenshot_20210818_000657.jpg

AAPS Screenshot Screenshot_20210818_000845.jpg

NSClient Screenshot Screenshot_20210818_000746.jpg

MilosKozak commented 3 years ago

so the problem is only when you you delete carbs?

bchris21 commented 3 years ago

Exactly. Carbs addition syncs ok, but once carbs are deleted they do not sync on NSClient and they are accumulating until consumed by the pass of time or by BG drop.

MilosKozak commented 3 years ago

is the entry removed from NS?

bchris21 commented 2 years ago

Hi Milos, sorry for the late reply. Just replicated the issue and I can confirm that carbs are removed from NS on the next BG update.