Skip to content

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

@gerison77

Description

@gerison77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions