Automate Restart when in Bedtime mode

Nassah

New member
I'm new to Macrodroid and I don't know how to do this. I want my phone to reboot when bedtime mode from digital wellbeing is triggered. How do I do it?
 

Florian

New member
Hey, you can use the notifications trigger for that. You'll need to select the app "Digital Wellbeing". Then add the text that pops up in that notification (when you enable bedtime mode [can be enabled manually in the settings]). Add the steps for a restart (if your phone isn't rooted) as the action. You'll need to add each step with a delay with the click action.

Hope that's understandable.

Florian
 

Nassah

New member
Hey, you can use the notifications trigger for that. You'll need to select the app "Digital Wellbeing". Then add the text that pops up in that notification (when you enable bedtime mode [can be enabled manually in the settings]). Add the steps for a restart (if your phone isn't rooted) as the action. You'll need to add each step with a delay with the click action.

Hope that's understandable.

Florian
That greatly helped :) How would I add steps for restart? I saw in Macrodroid that it requires root to select reboot action. I don't have my phone rooted. Is there any other way I can make my phone reboot? I have a miui setting called Schedule power on and off with custom time frame. Maybe i can do something with that? Or is there a simpler way?

Thank you for helping.
 

Attachments

  • IMG_20231130_040054_669.jpg
    IMG_20231130_040054_669.jpg
    92 KB · Views: 5

hsurB

Well-known member
I don't have miui device but on samsung phones there is icon on top of the notification panel (look screenshot). So I can use expand notification panel action, and then follow up with ui interaction (swipe) to see this icon, and then 2x ui interaction to click buttons and reboot the device
I am not sure if you can go directly to the screen with buttons to reboot, turn off the device etc. but maybe there is some intent for it or something
 

Attachments

  • Screenshot_20231129_235104_Opera.png
    Screenshot_20231129_235104_Opera.png
    226.4 KB · Views: 1

Qarboz

Well-known member
You can use "Android Shortcut" -> "Power Options" action, then with UI interaction click restart (need to find XY coordinates); screen must be on. I point out that restarting requires entering the SIM card PIN and password/fingerprint/etc. if set
 

Florian

New member
You can use "Android Shortcut" -> "Power Options" action, then with UI interaction click restart (need to find XY coordinates); screen must be on. I point out that restarting requires entering the SIM card PIN and password/fingerprint/etc. if set
Exactly that. You'll need to do it step by step with screen interactions.
 

MacroDroidDev

Administrator
Staff member
Just to confirm that on a non-rooted device you will have to use the UI Interaction action to interact with the device and make it power off.
 
Top