Has anyone ever created an alarm that is triggered once a sleep goal/duration has been achieved in realtime?

Hi all

So racking my head currently using ChatGPT, Sleep as Android, Tasker, MacroDroid and my new TicWatch 5.

In short, I want an alarm that goes off each morning once I achieve my desired sleep goal (7hrs). Alongside this, I will have a static (safety) alarm that goes off at a specific set time each day (e.g. 8am) no matter what.

The ideal is that I will only wake up once I have had the right length of sleep, unless I absolutely have to get up for work.

I thought Sleep as Android had this feature built in, but apparently not. Does anyone know of any apps or means by which feature can be attained? Even if it means changing devices.

If there was an exercise watch that exports and stores its sleep data in realtime to e.g. OneDrive, Google Drive or your phones local drive, I could use scripting in Tasker or another automation app to detect the creation of a specific type of log, upon which that triggers an alarm?

Both my TicWatch and Versa 4 however only upload sleep data once sleep has ended and the time that takes can be a bit dubious (5 to 30 minutes).

Appreciate any ideas.
Best, T

Hi @Trooper149,
You can use the longest smart period, and enable not before ideal feature - which will postpone the alarm within the smart period until you reach the sleep goal.
So if you must get up at last at 8:00, you can have 2 hours smart period and the app will wake up you between 6 and 8 when you reach the goal, but never later.

Real-time data from the wearables are available only via Sensor API, so it requires an addon on the watch, that collects the data and exchange them with the phone (the data queue is not long enough to save all the data on the addon). The cloud services like Fit, or Drive won’t be able to do this.