AndroidAPS icon indicating copy to clipboard operation
AndroidAPS copied to clipboard

Feature Request: Add Automation Action "Set current profile back to 100%" (independent of profile name)

Open gerison77 opened this issue 2 months ago • 1 comments

Summary: Currently, it is possible in AndroidAPS to reduce the active profile using automations (e.g. "Use current profile at 70% for 60 minutes"). However, there is no action available to simply return the currently active profile back to 100%. Instead, the user must select and activate a named profile (e.g. "Elias 39") – even if that profile is already active in the background.

This becomes a maintenance issue when the name of the base profile changes, because all automations that refer to it by name must also be updated manually.

Real-world use case – described automation logic:

I currently use the following automation setup:

  • "Sport on":

    • Temp target 140 mg/dl for 60 minutes
    • Use current profile at 70% for 60 minutes
    • Disable SMB
    • Send SMS and show notification
  • "Sport off":

    • Stop temp target
    • Enable SMB
    • Switch to named profile "Elias 39"
    • Send SMS and show notification

But here's the issue: The profile used in “Sport on” is not a different named profile — it is just the current profile, temporarily used at 70%. What I actually want to do after 30 minutes (not 60) is to return the current profile to 100%, without having to name it. This is currently not possible.

Why this matters:

  • If the standard profile name changes (e.g. "Elias 39" becomes "Elias Standard Oct"), the automation “Sport off” would fail unless I also change the profile name in the automation.
  • This becomes a major burden when managing multiple automations for different daily routines or have different profiles in active use.
  • All I want is to restore the current active profile (whatever it is) back to full strength (100%) — just like how "Stop Temp Target" works for glucose targets.

Suggested feature: Add a new automation action like: "Set current profile back to 100%" or "Reset profile multiplier to 100%"

Expected behavior:

  • The system restores the currently active profile (whichever is active in the background) to 100%, regardless of name
  • No need to select a named profile
  • Works seamlessly with automation chains and makes transitions more robust

Benefits:

  • More flexible and robust automation flows
  • Avoids fragile dependencies on profile naming
  • Easier to maintain when default profiles are renamed or adjusted
  • Clean return to standard settings after temporary reductions
  • Especially helpful for children with variable insulin sensitivity, where short-term adjustments are often used

gerison77 avatar Oct 16 '25 09:10 gerison77

Also, switching full profiles just to reset a reduced % can unintentionally reset autosens history, which further impacts system stability.

gerison77 avatar Oct 16 '25 10:10 gerison77