Vibrate every 20 minutes?

22 views
Skip to first unread message

Aubrie

unread,
Dec 20, 2025, 1:16:12 AM (2 days ago) Dec 20
to Automate for Android
Hi Automate experts,

I used to use Macrodroid but discovered that Automate is much more powerful. Here's what I'd like to do:

When the phone is not plugged in:
  • Play vibration pattern A at the hour mark (:00)
  • Play vibration pattern B at the :20 minute mark
  • Play vibration pattern C at the :40 minute mark
After searching the forums, I created this flow:
  1. Flow beginning
  2. Await time
    Proceed = Exact
    Time of day = time(dateFormat(Now, "H"), dateFormat(Now, "m") - (dateFormat(Now, "m") % 20) + 20)
  3. Is power source plugged
    Proceed = Immediately
    • Y) loop back to #2
    • N) Vibrate with pattern A, then loop back to #2
Now, how do I make it with the three different vibration patterns?

Thank you!

Henrik "The Developer" Lindqvist

unread,
Dec 21, 2025, 7:56:50 PM (16 hours ago) Dec 21
to Automate for Android
  • Vibration: Pattern= { "0": 0x9, "1": 0x4, "2": 0xC }[dateFormat(Now, "m")//20]
Change the 0x9, 0x4 and 0xC to the values of the patterns you select, i.e. select one the click to fx button to see its value.
Message has been deleted

Aubrie

unread,
Dec 21, 2025, 11:03:37 PM (13 hours ago) Dec 21
to Automate for Android
Thank you—I was hoping to get a reply from "The Developer" with the monkey picture. :)

Trying to follow your advice and test it every 1 minute instead of 20 minutes to speed up testing, I set up:
  1. Flow beginning
  1. Await time
    Proceed = Exact
  1. Time of day = time(dateFormat(Now, "H"), dateFormat(Now, "m") - (dateFormat(Now, "m") % 1) + 1)
  1. Is power source plugged
    Proceed = Immediately
    • Y) loop back to #2
    • N) Vibrate
      Pattern = { "0": 0x9, "1": 0x4, "2": 0xC }[dateFormat(Now, "m")//1]

    • then loop back to #2
The result I get is the same buzz-BUZZ every minute. So two problems, (1) it doesn't seem to be cycling between patterns, and (2) that buzz-BUZZ doesn't even seem to match 0x9, 0x4, or 0xC.

Also, I should mention that I want to customize my pattern, e.g., [0, 500, 500, 1000].

I'll try switching it to 20 minutes but wanted to report back in case I'm doing anything obviously wrong.

Aubrie

unread,
Dec 21, 2025, 11:04:23 PM (13 hours ago) Dec 21
to Automate for Android
(sorry for the terrible list formatting—tried to fix it but the formatting is still broken)
Reply all
Reply to author
Forward
0 new messages