AndroidAPS icon indicating copy to clipboard operation
AndroidAPS copied to clipboard

Preselection of hypo TT in carb UI

Open widmann opened this issue 2 months ago • 2 comments

Recently, I went on a day-long cycling tour and set a 70% profile with an activity TT for 10 hours. After two hours I got slightly low, so I ate some carbs, and entered them. Unfortunately, I didn't notice the preselected "start hypo TT". There was no problem for the next hour, but then the target was reset to the default (instead of activity TT). The loop gave me too much insulin, and I had a severe hypo.

Suggestion: Do not preselect "Start hypo TT" if the currently set TT is higher and longer than the hypo TT would be.

widmann avatar Oct 02 '25 10:10 widmann

I recently encountered the same issue. In a caretaker configuration, a low profile combined with a high temporary target (TT) set 1.5 hours prior to exercise caused an interaction problem. The caretaker treated the low with carbohydrates, which effectively shortened the TT duration. When the TT expired, the system reverted to the default target, thereby blocking the expected automation from being triggered.

gerison77 avatar Oct 23 '25 06:10 gerison77

When low, I think Hypo TT should automatically be selected when entering carbs, unless: There is already a high TT > 100 mg/dl or 5,5 mmol/L with a duration longer than preset Hypo TT duration.

This will avoid Hypo TT cancelling out Activity TT or custom high TT with a longer duration than preset Hypo TT.

We experience this issue from time to time with Hypo TT cancelling out Activity TT when entering carbs when low. I think this proposal will fix issue as described in this ticket and other scenarios. It's recommended to not allow SMB when a high TT is set (above 100mg/dl)

olorinmaia avatar Nov 19 '25 23:11 olorinmaia

@MilosKozak @widmann this issue can be closed due to merging of https://github.com/nightscout/AndroidAPS/pull/4339

olorinmaia avatar Nov 22 '25 12:11 olorinmaia

Thank you for providing the patch! It is much appreciated.

widmann avatar Nov 24 '25 11:11 widmann

Thank you for providing the patch! It is much appreciated.

You are welcome and thanks for reporting this issue. I also helped myself as we experience this from time to time.

Feel free to close the issue 😉

olorinmaia avatar Nov 24 '25 12:11 olorinmaia