control android wear (watch) settings?

363 views
Skip to first unread message

aweber1nj

unread,
Dec 8, 2015, 4:33:58 PM12/8/15
to Tasker
I noticed that I could grant Tasker access to my android wear app.  I also see there's a third-party AutoWear app/plug-in from a developer (would purchase this if needed), and there are already other, third-party plug-ins for Wear.

I'm wondering if anyone has come-up with a profile and action to change the "Wrist Gestures" config setting?

Reason:  When I'm driving my car, the watch's screen activates a lot.  Presumably this is just because of the motion of my wrist while driving the car.  It's a little annoying in general.  It burns battery life unnecessarily.  And at night, the light-up of the watch directly in my line-of-sight is borderline-distracting.

So I figured if I could setup a profile to activate when my phone connects to my car's BT, and that would trigger the action to set "Wrist Gestures" to OFF (I think this will deactivate the watch except for when I push the crown to manually enable it - what I want) all would be good.  Obviously, when I disconnect from the car's BT, I would set the "Wrist Gestures" back to ON.

Thanks for any help/insight in how to do this.  I love Tasker, and I only scratch the surface using it!

-AJ

Adam Lopresto

unread,
Dec 9, 2015, 2:03:38 PM12/9/15
to Tasker
What you're talking about sounds to me like the "Tilt to wake screen" setting, not "Wrist Gestures" (the latter is what lets you flip among your cards when the screen is already on). The reason the difference is important is that, as far as I know, Wrist Gestures can only be turned on and off from the watch, so I don't know of any way to change that from Tasker. But the Tilt to Wake setting is in the Android Wear app on the phone, too.

I've created a task that toggles Tilt to Wake automatically, for exactly the same reasons you stated. It relies on the AutoInput plugin (https://play.google.com/store/apps/details?id=com.joaomgcd.autoinput). It also uses Secure Settings (https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin) to turn on the screen if it's off, but you could skip that step if you know the screen is already going to be on.You'll probably need to mess around with it if you don't have a Moto 360 (since the watch name is some of the text it looks for to see where in the Android Wear app you are).

Basically, first turn on the screen, then open Android Wear. Then, if we're not already on the right settings screen, hit "back" until we get to the main screen. Tap the right buttons to get into the settings screen we want, and change "Tilt to wake". The next to the last action is disabled right now, but you can use it to turn off ambient mode, too.

Wear Toggle Tilt To Wake (162)
A1: Secure Settings [ Configuration:Screen & Keyboard Lights On
1 Second Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Launch App [ App:Android Wear Data: Exclude From Recent Apps:Off Always Start New Copy:On ]
<query>
A3: AutoInput UI Query [ Configuration:App Package: com.google.android.wearable.app
Unlock Screen: true
Check Screen State: true Package:com.joaomgcd.autoinput Name:AutoInput UI Query Timeout (Seconds):20 Continue Task After Error:On ]
A4: Flash [ Text:%aitext(1) %aitext(3) Long:On ]
A5: If [ %aitext(3) neq Ambient screen ]
A6: If [ %aitext(1) !~ Watch faces/Moto 360 ]
A7: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ]
A8: Goto [ Type:Action Label Number:1 Label:query ]
A9: End If
A10: AutoInput Action [ Configuration:Type: Id
Value: com.google.android.wearable.app:id/action_settings
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
A11: Wait [ MS:200 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A12: AutoInput Action [ Configuration:Type: Text
Value: Moto 360
Action : Click
Is Tasker Action: false
Check Screen State: false Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
A13: End If
A14: [X] AutoInput Action [ Configuration:Type: Text
Value: Ambient screen
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
A15: AutoInput Action [ Configuration:Type: Text
Value: Tilt to wake screen
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
Reply all
Reply to author
Forward
0 new messages