AutoAlarm Tasker plugin gives you a straight forward way to find the next alarm in Tasker

autoalarm - for some reason we don't have an alt tag hereDisplaying the next alarm is a very common thing for Android apps, and you can often find widgets, lock screen replacements, and clock apps that do this with no problem. That’s because it’s not that hard to get the next alarm time from the system, assuming that you’re an app.

If you’re not an app, it’s slightly harder. Scratch that: it’s a nightmare. Tasker users have been using an awkward work around for this issue for years, involving running sqlite3 code via a Tasker plugin. That plugin is no longer being updated, and doesn’t work on a lot of newer devices. I spent ages trying to find a work around, eventually giving up and doing something different. Instead of being able to trigger a task before the alarm goes off automatically, I had to set when that was going to be as well as the alarm. Not ideal.

Luckily, the solution to the problem is now available in Google Play. João Dias, known for apps like AutoRemote and AutoShortcut, now has an app available called AutoAlarm, which fixes this problem. Once installed, you’ll have a new action and a new context in Tasker. The action simply sends off a message to the system, asking for the next alarm. The reply triggers the context (meaning you need to set up a profile using it), and you then have a ton of local variables to choose from that give you the next alarm in different forms, such as %minutes, %year, %hour, and so on (listed in the Google Play description).

This plug-in is now a vital part of my sleep mode. At 5:50 every morning, a profile triggers that runs the AutoAlarm action. The reply from the system triggers a second profile, which initiates what I call “sunrise mode.” Starting 25 minutes before the alarm, it gradually raises the light in the room by about 20% every 5 minutes, simulating a sunrise. Before the plug-in was available, I had to set sunrise mode manually, because the old method for getting the alarm time doesn’t work on my device.

It’s a very simple plug-in, but it’s also invaluable if you need to know when the next alarm is.

autoalarm qr - for some reason we don't have an alt tag here

Download: Google Play


Edit: How-to video

Pocketables does not accept targeted advertising, phony guest posts, paid reviews, etc. Help us keep this way with support on Patreon!
Become a patron at Patreon!

Andreas Ødegård

Andreas Ødegård is more interested in aftermarket (and user created) software and hardware than chasing the latest gadgets. His day job as a teacher keeps him interested in education tech and takes up most of his time.

Avatar of Andreas Ødegård

10 thoughts on “AutoAlarm Tasker plugin gives you a straight forward way to find the next alarm in Tasker

  • Avatar of Dan Davis

    This is awesome. Although I am sorry to hear that you have to wake up at the crack of dawn. Thanks for the tip.

  • Avatar of Hussain

    Hey mate, I m having trouble making sense of this plugin :/

    Can you share a basic profile you’ve made so I can play with it? :D

    • Avatar of Andreas Ødegård

      Added a tutorial video to the article

  • Avatar of Moritz

    Hey love your Tasker articles.
    I did exactly what you showed in the Video but when I run the Task nothing happens. Sometimes I get a Msg that AutoAlarm chrashed. Any ideas?

  • Avatar of Peter Östlund

    Can AutoAlarm check other Alarms then the Android O/S alarms?
    For instance if I set an alarm in the software Gentle Alarm, AutoAlarm doesn’t seems to handle those “3rd part app alarms”…

    • Avatar of Andreas Ødegård

      I use alarm clock plus, which I find to be better for my use than gentle alarm, and it works with that. Ive had questions regarding gentle alarm on other alalarm centric articles, and it frankly sounds like that app doesnt support any standard android feature

  • how do you start that 25 minutes before the alarm? because a time profile can be set only manually, not with a variable like %hour.%minute

  • Had some issues with this working out how to get a profile to activate just prior to my alarm time – solution is to set up as above then in the “response” task to set a global variable eg “%Nextalarm = %hour.%minute” (minimum one capital letter in the name for it to be a global). Then create a profile that compares that with the %TIME variable and when matches run your pre-alarm tasks. I actually have some If statements in my response task to set my %Nextalarm to 5 mins before the alarm time.
    Hope that helps someone :)

    BTW Works with Kaloer clock fine (the one with the biggest snooze button available)


Leave a Reply

Your email address will not be published. Required fields are marked *