App for Android wear automation?

Gadgetguy2005

Senior Member
May 2, 2011
220
18
0
Toronto
Hello all,

I am looking for an app to do simple automation tasks on my Zenwatch 2. For example: switch wifi off if battery below 50%. Or, dim the brightness at certain times or at certain battery levels. Or, switch the always on watchface off if battery below 20%.

Is there such an app?

Thank you for any pointers...
 

Pkt_Lnt

Recognized Contributor
Dec 26, 2011
7,895
5,802
253
SLO
Hello all,

I am looking for an app to do simple automation tasks on my Zenwatch 2. For example: switch wifi off if battery below 50%. Or, dim the brightness at certain times or at certain battery levels. Or, switch the always on watchface off if battery below 20%.

Is there such an app?

Thank you for any pointers...
There is a way, but it is not as easy as an app. It takes some inventiveness and pioneering, but hey, that is XDA! l)

You need Wear Shell. There are posts there of how to use Tasker Intentsl
http://forum.xda-developers.com/android-wear/development/app-wearshell-t2902242

And a thread on Wear Shell + Tasker recipes.
http://forum.xda-developers.com/and...asker-recipes-wearshell-t3367531/post66749469

I use it to make watch bright when I disconnect from home or work wifi, and dim when I connect.
http://forum.xda-developers.com/showpost.php?p=66484214&postcount=21

I also have it set to activate theater mode when I start my sleep tracker.
http://forum.xda-developers.com/showpost.php?p=66608625&postcount=18
 
  • Like
Reactions: Gadgetguy2005

RoyanArt

Senior Member
Dec 24, 2014
214
55
0
@Pkt_Lnt, can u show me step by step how to to activate theater mode when I start my sleep tracker ?

I've read about wear shell, but i didnt understand :( . I'm newbie here.
 

Pkt_Lnt

Recognized Contributor
Dec 26, 2011
7,895
5,802
253
SLO
@Pkt_Lnt, can u show me step by step how to to activate theater mode when I start my sleep tracker ?

I've read about wear shell, but i didnt understand :( . I'm newbie here.
It is very simple if you are basically familiar with Tasker, and your watch must be rooted and Wear Shell installed.

Event > Plugin > Sleep > Start
Task > Send Intent

Code:
Action: de.fun2code.android.wear.shell.EXEC
Extra: bsh: Runtime.getRuntime().exec("su -c settings put global theater_mode_on 1");
Here is the exported description:

Code:
Profile: Quiet Night (sleep start) (9)
	Event: Sleep [ Configuration:Sleep tracking started ]
Enter: Watch Night (19)
	A1: Send Intent [ Action:de.fun2code.android.wear.shell.EXEC Cat:None Mime Type: Data: Extra:bsh: Runtime.getRuntime().exec("su -c settings put global theater_mode_on 1"); Extra: Extra: Package: Class: Target:Broadcast Receiver ]
 
  • Like
Reactions: Gadgetguy2005

RoyanArt

Senior Member
Dec 24, 2014
214
55
0
It is very simple if you are basically familiar with Tasker, and your watch must be rooted and Wear Shell installed.

Event > Plugin > Sleep > Start
Task > Send Intent

Code:
Action: de.fun2code.android.wear.shell.EXEC
Extra: bsh: Runtime.getRuntime().exec("su -c settings put global theater_mode_on 1");
Here is the exported description:

Code:
Profile: Quiet Night (sleep start) (9)
Event: Sleep [ Configuration:Sleep tracking started ]
Enter: Watch Night (19)
A1: Send Intent [ Action:de.fun2code.android.wear.shell.EXEC Cat:None Mime Type: Data: Extra:bsh: Runtime.getRuntime().exec("su -c settings put global theater_mode_on 1"); Extra: Extra: Package: Class: Target:Broadcast Receiver ]
Error, how to fix this?





Sent from my ASUS_T00F using XDA-Developers mobile app
 

Pkt_Lnt

Recognized Contributor
Dec 26, 2011
7,895
5,802
253
SLO
Its working now, but nothing happen after starting sleep tracking.

Screenshot :




Sent from my ASUS_T00F using XDA-Developers mobile app
Your screen shot cuts off the full text of the Send Intent, so I cannot tell if that is ok or not.
Is your watch rooted and you have Wear Shell installed? Does Wear Shell show on phone? Try installing Advanced Setting to confirm watch is rooted.
 

RoyanArt

Senior Member
Dec 24, 2014
214
55
0
Your screen shot cuts off the full text of the Send Intent, so I cannot tell if that is ok or not.
Is your watch rooted and you have Wear Shell installed? Does Wear Shell show on phone? Try installing Advanced Setting to confirm watch is rooted.
My watch is rooted and wearshell installed

Now, im using "theater time for wear" app + tasker. Wearshell didnt work for me

Sent from my ASUS_T00F using XDA-Developers mobile app