Can Automate start Daydream?

320 views
Skip to first unread message

jason...@gmail.com

unread,
Jun 15, 2016, 9:37:38 AM6/15/16
to Automate
I am trying to use Automate to control when Daydream turns on on my phone.  Since the phone stops charging and registers as "unplugged" once it reaches 100% (Nexus 6P), daydream tends to be disabled sometime after I go to sleep.  I want it to stay on so I am trying to get it to trigger during certain times if certain criteria are met.  That logic I have no issue with.

But what I cannot figure out is how to start Daydream.  Is there a way to start just an app, and not an app activity?  I can only find the settings activity for daydream, which just opens the settings page.  I used to use Tasker, and I was just able to select Daydream as an app.  But that app does not appear in the list when I try to select an activity in the Automate block "start an app activity".  I also looked for it in services, but I could not find it there either.  Does anyone have any ideas?

Henrik "The Developer" Lindqvist

unread,
Jun 15, 2016, 2:31:20 PM6/15/16
to Automate, jason...@gmail.com
Try the App start block with...
Package: com.android.systemui
Activity class: com.android.systemui.Somnambulator
Action: Main

See: http://stackoverflow.com/a/21485967/445360

Jason Toms

unread,
Jun 15, 2016, 3:04:51 PM6/15/16
to Henrik "The Developer" Lindqvist, Automate

That is it! Thanks so much. Why didn't I think of Sonambulator, of course! It's so obvious and intuitive and totally a real word.

Reply all
Reply to author
Forward
0 new messages