How to silence phone during calendar entries with mode "busy" only?

632 views
Skip to first unread message

mmo

unread,
Jan 12, 2020, 3:32:05 PM1/12/20
to Tasker
I am trying to achieve one of the seemingly simplest task: silence my phone during calendar entries that are set to mode "busy".

At first this seemed like a trivial job for Tasker but not so! It seems to offer only the possibility to trigger on "[not] available" but that doesn't cover the other entry-types: "busy", "tentative" and "out-of-office" (new since outlook 2016 - I think). I don't want my phone silence for the latter two!

Is there any possibility to silence the phone ONLY during Calendar entries marked as "busy" (i.e. NOT during entries with a mode of "available", "tentative" or "out-of-office") using Tasker?

Clem

unread,
Jan 12, 2020, 6:03:16 PM1/12/20
to Tasker
Hi mmo!

Maybe there is a reserved Tasker variable that contains the mode you are currently in. This would certainly be the easiest and fastest approach.

But you can also check out the Tasker plug-in CalendarTask. While it doesn't seem to offer what you need out of the box (maybe the ctavailable variable it provides will work though), it is a very useful plug-in and you can query all or a specific calendar and get a bunch of variables returned.

You could then add a unique identifier to the event title, description or any other field you can query. For example, when creating an event instead of selecting the busy option, you could write "Busy" in the description field or simply "0" or whatever else you like.

Then create a profile that triggers when an event starts and link it to a task querying the description field of that event to determine if you would like to put your phone into silence mode and take it from there.

Clem

Clem

unread,
Jan 12, 2020, 6:15:08 PM1/12/20
to Tasker
Here is the link to the built-in Tasker variables:

https://tasker.joaoapps.com/userguide/en/variables.html

Check out the "Tip" in this section - this might contain the info you are looking for:

"""
Calendar Event Title / Descr / Location
%CALTITLE / %CALDESCR / %CALLOC

The title, description and location of the current calendar event, if there is one. If there are multiple current calendar events the variables refer to the shortest.

Tip: find other details about the current event(s) using the Misc / Test action, specifying %TIMES for the data.
"""

Clem

Rich B

unread,
Jan 12, 2020, 7:44:01 PM1/12/20
to Tasker
Check out the code in this old thread. I still use it today. It skips all day events and only triggers in busy events (I can't recall, but you might have to add this requirement to the code). https://groups.google.com/forum/m/#!starred/tasker/rx9DG2wzk8M. If the link doesn't work, let me know and I'll see if I can't copy the URL a different way.

mmo

unread,
Apr 5, 2020, 6:00:07 AM4/5/20
to Tasker
Hi - I found the thread and the tips section - as you pasted:
---------
...

Calendar Event Title / Descr / Location %CALTITLE / %CALDESCR / %CALLOC
The title, description and location of the current calendar event, if there is one. If there are multiple current calendar events the variables refer to the shortest.
Tip: find other details about the current event(s) using the Misc / Test action, specifying %TIMES for the data.
---------

I can vaguely relate the above to Tasker's "State Entry" dialog for Calendar Events:
There I see fields "Title", "Location", "Description", "Available" the first three of which - I guess - correspond to %CALTITLE, %CALLOC and %CALDESCR above. It is unclear to me to what value the "Available" field refers to.

And - pardon my ignorance - I don't understand what is meant here by "find other details using the Misc / Test action ...".
Could you elaborate? I am an IT guy but definitely not a Tasker Guru...

Reply all
Reply to author
Forward
0 new messages