Samsung routine to call Macrodroid macro

vdb86

New member
Solution at the bottom of this post!

Hello,

I'm trying to figure out how to use Samsung's built in routines to run a Macrodroid macros I have.

Samsung routines have full control over all buttons, but their routine (or macro) builder is very simple.

It has an option to open an app or do an app action, and that's the only way as far as I see.

But Macrodroid doesn't list macros as app actions, on my end there is only;

- Open Macrodroid

- All Macros

- Add Macro

If my macros were listed here I could call them from Samsung routine app.

What I'm trying to achieve is:

Press and hold recents button - this expands notifications

Press and hold power button - this toggles vibration mode on/off

Macos were easy, but getting them to fire is complicated and I need help

Please and thank you

Solution:

This will require Routines+ from GoodLock and Macrodroid.

With Routines+ you can use buttons as triggers.

My 2 Samsung routines are:

Expand Notifications:

If
Touch and hold Recents button
Then
Show custom notification
Expand

Sound toggle

If
Press and hold Side key
Then
Show custom notification
Sound toggle

Macrodroid macros:

Expand Notifications:

Triggers
- Notification Received
Matches: Expand (Modes and Routines)
Actions
- Clear Notifications
Matches: Expand (Modes and Routines)
- Expand Status Bar

Sound Toggle:

Triggers
- Notification Received
Matches: Sound toggle (Modes and Routines)
Actions
- Clear Notifications
Matches: Sound toggle (Modes and Routines)
- If
Ringer Volume (Volume On)
Vibrate Enable/Disable
Silent (Vibrate On)
- Else If
Ringer Volume (Vibrate or Silent)
Vibrate Enable/Disable
Silent (Vibrate Off)
- End If

You can also disable notifications for Modes and Routines, that way you won't have any sounds, pop ups or lighting effects.
 

Attachments

  • Sound_toggle.macro
    2.4 KB · Views: 6
  • Notifications.macro
    1.5 KB · Views: 5
Last edited:

NekoZ410

New member
You can try a "bridge" like this
Set Bixby Routines shows a custom notification with [your text] and set a trigger in MD as Notification/Received/from Bixby Routines/Include/Text content contain [your text]
 

vdb86

New member
I've already set it up with notifications, but that's a poor implementation as it uses the notification and that triggers the notification sound and light.
 

NekoZ410

New member
I've already set it up with notifications, but that's a poor implementation as it uses the notification and that triggers the notification sound and light.
Hold your Routine "bridge" notification, choose settings, choose the blink option, set it to Silent
 

Dimlos

Well-known member
It was possible with logcat triggers, but it may not work.
 

Attachments

  • long_press_recent_.macro
    1.3 KB · Views: 4
  • long_press_power.macro
    2 KB · Views: 2

vdb86

New member
Hold your Routine "bridge" notification, choose settings, choose the blink option, set it to Silent
Thank you for this suggestion, completely forgot that I can control notifications, I disabled them completely and it still works.
I've updated my initial post with the solution.
 
Top