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

[AAPS 3.0-beta1] AAPS Showing 60% Profile, Pump Running 100%. Cancel Temp Profile Fails #769

Closed AndyS117 closed 2 years ago

AndyS117 commented 2 years ago

Reporting bugs

Version: 3.0-beta1 (Build 24a277bf1) Time of Issue: 21/10/2021 11:07 (local) Pump: DanaRS v3, Model 05, Protocol 11, Code F0 CGM (Dexcom G6, Patched App) Not sending data due to sensor error.

Actions Taken:

PumpScreen Screenshot_20211021_110751_info nightscout androidaps

AndyS117 commented 2 years ago

Update: When CGM resumed sending data (bad data - false low) the basal program between AAPS and Pump synced and agreed again. Was able to cancel an incorrect 0% Temp Basal caused by bad data without error.

Would the difference between what pump was doing and AAPS running at be an issue since this would result in a difference in IOB?

Philoul commented 2 years ago

When you have this issue, can you check in Action tab if a TBR is running, and also in Treatments activity (now in 3 dots menu), the TBR recorded in database.

I sometimes had the same kind of issue in the past (not the same TBR value in overview compared to pump) but it was only a problem of refresh in Overview (in Action tab and in TBR tab in Treatments, I always got correct value consistent with the pump).

MilosKozak commented 2 years ago

what do you see on treatments tab (screenshot)?

AndyS117 commented 2 years ago

TBR in Actions tab matched what was displayed in Overview. Basal rates on Treatments show the 60% set at 10:45-11:15. The subsequent 10:50-11:05 didn't take it seems and the switch back to 0 at 11:25 is approximately when data started coming back from CGM. No record of my attempt to cancel TBR. Based on what I'm seeing there I would say I first cancelled at 11:05:55.

Screenshot_20211021_133653_info nightscout androidaps Screenshot_20211021_141114_info nightscout androidaps Screenshots attached.

MilosKozak commented 2 years ago

fixed by https://github.com/nightscout/AndroidAPS/commit/d520c45aba655ef5c9212e66c9d3f9e7b7eb10e9 Thanks a lot. good catch!!