Can't add more than 2 "State" contexts to a profile

1,219 views
Skip to first unread message

WPWoodJr

unread,
Oct 8, 2010, 11:25:11 AM10/8/10
to Tasker
On my Droid X, if I have two state contexts then try to add another,
the State option does not appear in the "Add Context" menu.

Is this by design?

BossMan

unread,
Oct 8, 2010, 11:26:28 AM10/8/10
to Tasker
Yes.

You can have up to 4 contexts in total, but only 2 of them can be
state contexts.

BR,
A.

WPWoodJr

unread,
Oct 8, 2010, 11:35:52 AM10/8/10
to Tasker
Why the limit of 2?

BossMan

unread,
Oct 8, 2010, 11:41:47 AM10/8/10
to Tasker
A guess: software complexity. Pent said sometime ago (can't find the
post though) that adding logic for more states is quite a PITA.

Still, 3-state support is on the todo list: http://tasker.dinglisch.net/todo.html

BR,
A.

Pent

unread,
Oct 8, 2010, 11:42:30 AM10/8/10
to Tasker
> Why the limit of 2?

History. There were no states a year ago, and I saw no need for more
than 1 each
of location, event, time, day, app since they are ANDed (you can be in
more than
one location at once etc).

There's a todo list item to add another, and 2->3 should be easier
than 1->2.

Pent

Mark Otway

unread,
Oct 8, 2010, 12:59:35 PM10/8/10
to tas...@googlegroups.com

Would be good. I can't do my "if I'm outside and it's very bright then increase screen brightness, but don't do it the exit task if my thumb is on the keyboard (and thus shadowing the device)" profile so easily. ;-) 

UncleMike

unread,
Oct 8, 2010, 4:27:36 PM10/8/10
to Tasker
There are ways around this limitation. Without knowing specifically
what contexts you're using, I can't say exactly how to work around it,
but as an example, if you need to do this:

Context: Power Any
Context: Docked Car
Context: Bluetooth Connected
<task>

You could do this instead:

Context: Power Any
Context: Docked Car
Enter Task:
Variable Set %POWERDOCK = 1
Exit Task:
Variable Clear %POWERDOCK

Context: Variable Value %POWERDOCK = 1
Context: Bluetooth Connected
<task>

Basically, take any two contexts, and when they are both true, set a
variable. When either one (or both) are no longer true, clear the
variable. You can then use the variable as a single context.

WPWoodJr

unread,
Oct 8, 2010, 11:57:37 PM10/8/10
to Tasker
Yeah, you're kiting the results of a previous profile along to the
next one. A bit clumsy, will be good to have 3 or more state
contexts.

UncleMike

unread,
Oct 9, 2010, 10:32:46 AM10/9/10
to Tasker
Clumsy? Yes. Better to have 3 or more states? Yes. I'll take a
clumsy solution over no solution any day.

WPWoodJr

unread,
Oct 9, 2010, 1:57:25 PM10/9/10
to Tasker
Agreed :-)

dbs

unread,
Oct 9, 2010, 7:55:43 PM10/9/10
to Tasker
Aha! Maybe now I'm beginning to understand how I can use
variables....thanks!

On Oct 8, 4:27 pm, UncleMike <njcable...@gmail.com> wrote:

Pent

unread,
Oct 10, 2010, 5:01:20 AM10/10/10
to Tasker
> Aha! Maybe now I'm beginning to understand how I can use
> variables....thanks!

Variables make great glue once you get comfortable with them.

Pent
Reply all
Reply to author
Forward
0 new messages