Skip to content

[Feature request] Add "Restart AAPS" as an automation action #4358

@ddeityy

Description

@ddeityy

Medtronic Paradigm 715 VER 2.3A 1.1
AAPS 3.3.2.1
oRangeLink Pro
Android 16

From time to time AAPS gets stuck in timeout loops (Connection timed out or Pump unavailable) that only get fixed by fully restarting AAPS (force stop -> open).
While it's fine during the day it's very annoying during the night. While it can be detected using the Last connection to pump condition the only thing you can do is set an alarm, wake up in the middle of the night, restart AAPS and go back to sleep.

I propose to add a full app restart action as a workaround for issues like this and future bugs that require restarts.

I wanted to make a PR about a year ago but with my level of experience with the android/kotlin stack I got stuck on the mock test (not even sure how you would write a test for a restart) and eventually gave up.
If maintainers can't be bothered I can dig up my failed attempt and submit it as a PR (without the test)

Thank you.

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