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?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
Exactly that. You'll need to do it step by step with screen interactions.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