Phone Idle/Offhook

2,170 views
Skip to first unread message

Jinson

unread,
Feb 20, 2012, 7:26:02 AM2/20/12
to Tasker
Trying to set up a variable that is used to start other profiles when
I am not on the phone.

i.e. When on phone set var then clear when off

Seems simple but I have to use it in conjunction with phone idle as no
exit task on offhook which is not very consistent.

Pent

unread,
Feb 20, 2012, 8:13:13 AM2/20/12
to Tasker
> Seems simple but I have to use it in conjunction with phone idle as no
> exit task on offhook which is not very consistent.

There's no exit task on any event, which is very consistent:

http://tasker.dinglisch.net/faq-why.html#i

Pent

Jinson

unread,
Feb 20, 2012, 9:04:49 AM2/20/12
to Tasker
Thanks for the reply
Yeah I know that is why I use the following work around which seems
inconsistent - is there a problem with the following?

Set a variable when the phone is off hook and then clear it when the
phone is idle

Pent

unread,
Feb 20, 2012, 10:20:00 AM2/20/12
to Tasker
> Set a variable when the phone is off hook and then clear it when the
> phone is idle

For incoming calls, that will only work once the phone has been picked
up (if it is picked up). To catch the start of the ring for an
incoming
call, see event Phone Ringing.

Pent

Jinson

unread,
Feb 20, 2012, 10:28:23 AM2/20/12
to Tasker
I think that is what I want. The task switches to airplane mode but I
don't want it to do it whilst I am on the phone.
Message has been deleted

UncleMike

unread,
Feb 20, 2012, 5:09:33 PM2/20/12
to tas...@googlegroups.com
I have 3 profiles that handle this:

Context: Phone Ringing
Task:
Variable Set %myPHONE ringing

Context: Phone Offhook
Task:
Variable Set %myPHONE offhook

Context: Phone Idle
Task:
Variable Set %myPHONE idle

For your purposes you could then add the following context to your existing profile:

Context: Variable Value %myPHONE ~ idle

Jinson

unread,
Feb 21, 2012, 8:44:34 AM2/21/12
to Tasker
Thanks that did it :D

On Feb 20, 10:09 pm, UncleMike <mquin...@metroconnectonline.com>
wrote:

BossMan

unread,
Aug 6, 2012, 3:53:00 PM8/6/12
to tas...@googlegroups.com
For example like this:
1) rework UncleMike's profiles a bit and instead strings, use numeric values when setting %myPHONE, i.e.
when idle, set to 0,
when ringing, set to = 1,
when offhook, set to  = 2

2) create a second profile like this:
Context: Bluetooth Connected (select your device)
enter Task:
Variable Set %noBT = 0
exit Task: 
Variable Set %noBT = 1

Then, your announcemt profile could be like this:
Context: every hour
Context: Variable Value %noBT + %myPHONE > 0

Profile will not become active if your phone is idle and you are connected to your bluetooth headset (0 + 0 is not > 0), but will become active in all other situations.

BR,
A.

On Monday, August 6, 2012 6:24:09 PM UTC+2, Mike wrote:
I have this in use but I'd like to be able to process both phone state as this does and bluetooth connection before carrying out an action. For example, if I do an hourly announcement, I don't want it to announce over bluetooth unless I'm on the phone as it cuts off the beginning of the announcement. Not sure how to nest decisions in tasker as I'm new to the program.
Reply all
Reply to author
Forward
0 new messages