Turning on Bluetooth on S8 - Tasker Tips & Tricks

I've just got a S8 and tasker is working fine apart from turning Bluetooth on using date and time. The same profile and task worked great on z5 compact so not sure why the s8 is different. See images. As you can see I've even put in notifications to test but not even they are working. I have run in foreground on also. Any help to fix appreciated.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my SM-G950F using Tapatalk

Have you tried removing and then adding back the time context? I have bumped into issues where a profile didn't trigger after the update to 5 and that's what it took to get things moving again.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

I've only tried changing the time, but I'll try your suggestion. I have tried cloning but that didn't work.
Sent from my SM-G950F using Tapatalk

If it still doesn't work, I would build a test profile one step at a time. Start with a time context and a task just being to set a notification. Then rebuild the task to turn on Bluetooth after you get the profile contexts triggering correctly.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Well tried keeping it as one profile but it just doesn't work. I have found a workaround by using one profile to set a created variable for Bluetooth on at a set time. Then another profile which then turns Bluetooth on when the variable condition is met. Happy with that, even though I'm still not sure why my other didn't work [emoji106]
Sent from my SM-G950F using Tapatalk

Is Tasker excluded from battery optimisation?
Does it work with other tasks apart from the bluetooth one?
What other tasks run at the same time? Maybe too many?
Have you checked the Tasker log at all, to see if the profile conditions fire up?
Try to save the code below to an XML file, import it as a profile and see if this works:
Code:
<TaskerData sr="" dvi="1" tv="5.0u6m">
<Profile sr="prof309" ve="2">
<cdate>1508227836703</cdate>
<edate>1508227878188</edate>
<id>309</id>
<mid0>310</mid0>
<nme>Test Day And Time</nme>
<Day sr="con0">
<wday0>3</wday0>
</Day>
<Time sr="con1">
<fh>7</fh>
<fm>55</fm>
<th>7</th>
<tm>55</tm>
</Time>
</Profile>
<Task sr="task310">
<cdate>1508227848619</cdate>
<edate>1508227863115</edate>
<id>310</id>
<nme>Test Day And Time</nme>
<Action sr="act0" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Test success</Str>
<Int sr="arg1" val="1"/>
</Action>
</Task>
</TaskerData>

sumotori1 said:
Is Tasker excluded from battery optimisation?
Does it work with other tasks apart from the bluetooth one?
What other tasks run at the same time? Maybe too many?
Have you checked the Tasker log at all, to see if the profile conditions fire up?
Try to save the code below to an XML file, import it as a profile and see if this works:
Code:
<TaskerData sr="" dvi="1" tv="5.0u6m">
<Profile sr="prof309" ve="2">
<cdate>1508227836703</cdate>
<edate>1508227878188</edate>
<id>309</id>
<mid0>310</mid0>
<nme>Test Day And Time</nme>
<Day sr="con0">
<wday0>3</wday0>
</Day>
<Time sr="con1">
<fh>7</fh>
<fm>55</fm>
<th>7</th>
<tm>55</tm>
</Time>
</Profile>
<Task sr="task310">
<cdate>1508227848619</cdate>
<edate>1508227863115</edate>
<id>310</id>
<nme>Test Day And Time</nme>
<Action sr="act0" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Test success</Str>
<Int sr="arg1" val="1"/>
</Action>
</Task>
</TaskerData>
Click to expand...
Click to collapse
I think I've worked it out that it's because tasker is optimised. So looking at my battery history the phone is in doze when the profile should activate. After testing my profiles are working OK if my phone screen is on. So I'm going to exclude tasker from battery optimisation and test.
Sent from my SM-G950F using Tapatalk

Well I removed tasker from being optimised and it the profile didn't work. So to me tasker isn't able to be run when the phone is in doze. Any help to get around this would be appreciated.
Sent from my SM-G950F using Tapatalk

mgdorbit said:
Well I removed tasker from being optimised and it the profile didn't work. So to me tasker isn't able to be run when the phone is in doze. Any help to get around this would be appreciated.
Sent from my SM-G950F using Tapatalk
Click to expand...
Click to collapse
Going to experiment with reliable alarms to see if this helps.
Sent from my SM-G950F using Tapatalk

All working [emoji106]
Sent from my SM-G950F using Tapatalk

Related

[MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE

Found This Lying in Note 2 Forums . Thought it might help some Happy Students​Source monx® --> http://forum.xda-developers.com/showthread.php?t=2063195
monx® said:
BASIC INFO
Tablet vs Phone
Tablet has no Phone nor Messaging function so in this case, switching to other than primary user may cause Phone app (com.android.phone) force close. This is normal & make sense bcos we dont share phone to others. Whenever there is incoming call in other(s)user account, phone will ring as usual + LED notification but u need to switch to primary account immediately to pick up or will see miss called notification in primary account. Any activity related to Phone will force close in others account (outgoing call, ussd dialing, etc)
SMS messaging can be sent thru other(s) account but any received sms only viewable in primary account.
*Above info is correct when posted until other dev(s) make it work other way round.
MODDING
framework-res.apk >
\res\values\integers.xml (change to max users limit. 2 is enough IMHO, but i made it 3 just for fun)
\res\values\bools.xml (basically Tablet is in landscape thus user switching only visible in landscape in LockScreen. at least in current CM10.1 rom to date)
To make user switching visible in portrait LockScreen mode, manual layout modding is needed.
\res\layout-port\keyguard_host_view.xml (add this line before second </FrameLayout> to make more layout customization possible)
ADD \res\layout-port\keyguard_multi_user_selector.xml manually to customize the user switch location in portrait LockScreen.
Here is mine as example :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/keyguard_user_selector" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:contentDescription="@string/keyguard_accessibility_user_selector" android:layout_childType="userSwitcher"
xmlns:androidprv="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.policy.impl.keyguard.KeyguardLinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:id="@id/keyguard_users_grid" android:layout_width="wrap_content" android:layout_height="@dimen/keyguard_avatar_size" android:layout_marginBottom="400.0dip" />
</com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView>
Click to expand...
Click to collapse
Can you make it in a better way ? Like, what should I do to prevent apps from Crashing ??
Sv: [MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE
How do i fix this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Cheers
Daniel
RomWiz said:
How do i fix this?
View attachment 1759905
Cheers
Daniel
Click to expand...
Click to collapse
Edit the layout. For your phone
Sent from my GT-P7300 using xda app-developers app
Sv: [MOD][GUIDE] ENABLE MULTI-USER ON ANDROID 4.2.x - PHONE MODE
mithun46 said:
Edit the layout. For your phone
Sent from my GT-P7300 using xda app-developers app
Click to expand...
Click to collapse
That is the problem, i don't know how
Cheers
Daniel
RomWiz said:
That is the problem, i don't know how
Cheers
Daniel
Click to expand...
Click to collapse
Do slight editing and find out
Sent from my GT-P7300 using xda app-developers app

How To Use Profiles In Tasker

Tasker Profiles
What is a Tasker profile?
A profile is simply a group of tasks that will be run when the profile is activated. Instead of running multiple tasks individually, a profile allows you to group the various tasks together and run them all at once. With a combination of events (such as when the phone rings), the profile can be set to run automatically when the conditions are met. Some examples include starting up a Captain Panaka slideshow as soon as you get home, or playing sad music every time you get a text.
What does a Tasker profile look like??
A Tasker profile can come in the form of a .xml file that you can download and then import into the app.
Example:
Code:
<class cl="TaskerData" sr="">
<class cl="Task" sr="task16">
<id ty="int">16</id>
<class cl="Action" sr="act0">
<class cl="StringArg" sr="arg4">
<val ty="str"></val>
</class>
<class cl="IntArg" sr="arg3">
<val ty="int">1</val>
</class>
<class cl="IntArg" sr="arg2">
</class>
<class cl="IntArg" sr="arg1">
<val ty="int">1</val>
</class>
<class cl="StringArg" sr="arg0">
<val ty="str">Penb0qNVCA7phKMtjsL5ww==</val>
</class>
<code ty="int">15</code>
</class>
</class>
<class cl="Profile" sr="prof15">
<nme ty="str">BrowserLock</nme>
<id ty="int">15</id>
<class cl="AppContext" sr="con0">
<pkg ty="str">com.android.browser</pkg>
<label ty="str">Browser</label>
<cls ty="str">com.android.browser.BrowserActivity</cls>
</class>
<mid0 ty="int">16</mid0>
</class>
<nid ty="int">0</nid>
</class>
A Tasker profile might also come in the form of instructions on how to create it yourself using everyday tools that you'd find at Home Depot.
Example:
Click New and select Application
Select the app you want to lock.
Click + in the bottom left to add an action
Select category Display and action Lock
Have a look at the help text (click ?)
Enter a passcode
Press Done
Press Save at the Profile List screen
How to import a profile
To import a profile save the code as a .xml file to your Android device. You'll want to save this file to the Tasker/projects app folder using a file explorer. Launch the Tasker app and go to the Profiles option on the menu. Select Import and navigate to the saved .xml file.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can find all kinds of Tasker profiles at your local library. Just kidding I mean on the internet. Feel free to post your favorite Tasker profiles in this thread.

Set Bluetooth off if no device connected (after an interval)

This would seem to have been an extremely simple thing and i've even found a place on the wiki where it had a downloadable profile that would do this. The newer versions of Tasker don't allow for import of those profiles it doesn't seem, if it doesn't I am not doing it right. I've made some profiles and tasks to this point, simple stuff, like turn wifi on at home or work, and set display to auto rotate (orientation) for certain apps. I'm still way n00b with tasker. I would like to use tasker to turn off my bluetooth if it goes a period of time without a device connected. Can someone do a noob walk through of how to do this?
Thanks in advance.
Create a profile -> State -> BT Connected (leave everything alone except tic invert)
Create enter task
Task -> Wait (set the delay you want)
Net -> Bluetooth -> Set [Off]
------ edit --------
The above is literally what you asked for. However, assuming the delay is to ensure nothing has connected to BT before shutting it off, you might want to add an IF statement to the final action. Such as:
"%PACTIVE ~ *[Profile name]*
[Profile name] should be replaced with the actual name of this profile. Leave the * in place though.
A final thought is by adding a second context to the profile:
State -> net -> BT status (on)
This profile will be active only when BT is on.
Hi, I think I did the same thing but it didn't work. The Bluetooth just stays On and doesn't disconnect after 20 seconds. The profile in the Tasker app shows green color after turning on the Blutooth.
Pasting the profile from xml. Can you please check if there's any error?
PHP:
<TaskerData sr="" dvi="1" tv="5.0u5m">
<Profile sr="prof41" ve="2">
<cdate>1504900913492</cdate>
<edate>1504902100965</edate>
<id>41</id>
<mid0>42</mid0>
<nme>Bluetooth Auto Off</nme>
<State sr="con0" ve="2">
<code>3</code>
<pin>true</pin>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3"/>
</State>
<State sr="con1" ve="2">
<code>2</code>
<Int sr="arg0" val="1"/>
</State>
</Profile>
<Task sr="task42">
<cdate>1504900934895</cdate>
<edate>1504902039267</edate>
<id>42</id>
<nme>BT Disconnected</nme>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="20"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>294</code>
<Int sr="arg0" val="0"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%PACTIVE</lhs>
<op>2</op>
<rhs>Bluetooth Auto Off</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
</TaskerData>
How about selecting the profile with a long press, "exporting -> description to clipboard" then pasting that here.
ktmom said:
Create a profile -> State -> BT Connected (leave everything alone except tic invert)
Create enter task
Task -> Wait (set the delay you want)
Net -> Bluetooth -> Set [Off]
------ edit --------
The above is literally what you asked for. However, assuming the delay is to ensure nothing has connected to BT before shutting it off, you might want to add an IF statement to the final action. Such as:
"%PACTIVE ~ *[Profile name]*
[Profile name] should be replaced with the actual name of this profile. Leave the * in place though.
A final thought is by adding a second context to the profile:
State -> net -> BT status (on)
This profile will be active only when BT is on.
Click to expand...
Click to collapse
Awesome, I'll give this a shot in just a bit thank you
ktmom said:
How about selecting the profile with a long press, "exporting -> description to clipboard" then pasting that here.
Click to expand...
Click to collapse
Profile: Bluetooth Auto Off (41)
State: Not BT Connected [ Name:* Address:* ]
State: BT Status [ Statusn ]
Enter: BT Disconnected (42)
A1: Wait [ MS:0 Seconds:20 Minutes:0 Hours:0 Days:0 ]
A2: Bluetooth [ Setff ] If [ %PACTIVE ~ Bluetooth Auto Off ]
Oops, sorry, some texts are converted to emojis.
-----Edit------
Something more; if I manually 'turn off' the Bluetooth, the Tasker automatically 'turns on' it.
ktmom said:
Create a profile -> State -> BT Connected (leave everything alone except tic invert)
Create enter task
Task -> Wait (set the delay you want)
Net -> Bluetooth -> Set [Off]
------ edit --------
The above is literally what you asked for. However, assuming the delay is to ensure nothing has connected to BT before shutting it off, you might want to add an IF statement to the final action. Such as:
"%PACTIVE ~ *[Profile name]*
[Profile name] should be replaced with the actual name of this profile. Leave the * in place though.
A final thought is by adding a second context to the profile:
State -> net -> BT status (on)
This profile will be active only when BT is on.
Click to expand...
Click to collapse
Without the added contexts you mentioned it just turned the Bluetooth off on a timer, even while it was connected and I was talking on the phone. With the two added contexts it seems to work perfect
Correction, it doesn't work at all now it would seem. Hmm. I'll try to make it again tomorrow.
Edit; yeah I've went through it and tried over and over neither seems to work. Even having ticed invert, it basically just turns it off on a timer. No matter what else. Hmm so close. I can post screen shots of how I've done it if you want to see
I agree for some reason this seems to have stopped working.
Had this simple profile that would turn off after a few minutes of disconnecting from my car blue tooth.
Was using a variable once connected to specific bt
Perhaps after the update something changed? Weird
From what I can tell, it is the check for the variable %BLUE ~ "on" is what is causing bluetooth to turn back on. FWIW, I tried making a similar profile that would do the same with WiFi, and that's how I discovered the bug. I'm trying to find a way to trigger a different profile based on an event of bluetooth turning on, and then that would turn on the "Main" profile we had before. I'll update if I figure it out.
Long press on the profile name then hit the gear icon then deselect "restore settings"
ktmom said:
Long press on the profile name then hit the gear icon then deselect "restore settings"
Click to expand...
Click to collapse
This worked like a charm!
ktmom said:
Long press on the profile name then hit the gear icon then deselect "restore settings"
Click to expand...
Click to collapse
I'm here after a google search, thank you! I also had do delete the profile and create it again.
I use this to cycle Bluetooth...XML is:
<TaskerData sr="" dvi="1" tv="5.6">
<Profile sr="prof2" ve="2">
<cdate>1542882243077</cdate>
<edate>1554470940795</edate>
<flags>16</flags>
<id>2</id>
<mid0>3</mid0>
<nme>Cycle Bluetooth</nme>
<Share sr="Share">
<d>Cycle Bluetooth</d>
<t></t>
</Share>
<State sr="con0" ve="2">
<cname>BT On</cname>
<code>3</code>
<pin>true</pin>
<Str sr="arg0" ve="3">Cycle Bluetooth</Str>
<Str sr="arg1" ve="3"/>
</State>
</Profile>
<Task sr="task3">
<cdate>1542882243062</cdate>
<edate>1554470940795</edate>
<id>3</id>
<rty>1</rty>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%BLUE</lhs>
<op>2</op>
<rhs>Off</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="5"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>294</code>
<Int sr="arg0" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="10"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>294</code>
<Int sr="arg0" val="0"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%PACTIVE</lhs>
<op>2</op>
<rhs>*Auto Off Unpaired Bluetooth*</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
</TaskerData>
Sent from my Pixel
I really appreciate all your helpful responses to this question but unfortunately it seems not to be working with the current Tasker version. Does anyone have an updated tip to make this work? Forgetting to disable Bluetooth is the bane of my battery
Shezkah said:
I really appreciate all your helpful responses to this question but unfortunately it seems not to be working with the current Tasker version. Does anyone have an updated tip to make this work? Forgetting to disable Bluetooth is the bane of my battery
Click to expand...
Click to collapse
It would be easier to help you troubleshoot your current profile. Please post the description and what tasker version and device/OS. All of these can affect how a task performs.
The problem I was facing is the "check" to see if bluetooth was connected, in which case it is undesirable to disconnect obviously.
For instance I disconnect from car bluetooth and within the wait time I reconnect to it (or another bluetooth device for that matter).
The previous solutions would turn off bluetooth after the timer has finished, regardless if you are connected or not.
EDIT: Here is my new, more elegant solution.
The solution I had before is at the bottom of this post.
Summary
Create a profile that's activated when bluetooth is connected and on.
This triggers a wait time, after which it turns off bluetooth.
It only does this when this profile is active, thus only when nothing is connected to bluetooth.
Detailed steps
Create a profile and call it "BT Disconnected"
Then choose context: State, Net, BT Connected
Leave name and address blank, but check invert
Confirm by using the back button (top left)​You're now prompted to select a task, create a new one
Call it "BT Auto Off"
Press the + to add an action
Select action category: Task, Wait
Now fill it with the delay you want
(Note: do not set too short, this will turn bluetooth off before it can connect to anything. I suggest at least a minute or so.)
Confirm by using the back button (top left)​Add another task with the plus icon (bottom right)
Select action category: Net, Bluetooth
Leave set to "off" and add an If argument
For the variable, fill in %PACTIVE
Leave operator as Match (~)
As value, type: *,BT Disconnected,*
(Note: use the profile name you chose at the start, between commas and asterisks)
Optionally label the task something like "BT off if not connected"
Confirm by using the back button​Go back to the tasker main screen, let's add another context.
Click the profile to unfold it and long press the state "Not BT Connected"
Choose add for our second context: State, Net, BT Status
Change status to "on"
Confirm by using the back button (top left)​Don't forget to press the check mark at the top of the main screen to confirm the changes and activate them.
Hope this helps someone!
-----------------------------------------------------------------------------------
My previous solution is behind the button below.
I set up a profile which is active when bluetooth is connected and used the exit task to turn off bluetooth.
The steps below walk you through the setup of this profile
Create a profile
Call it "BT Connected"
Then chose: State, Net, BT Connected
Leave everything blank (we want this profile to be active during all bluetooth connections)
Confirm by using the back button.​You're now prompted to select a task, create a new one
Call it "Do Nothing"
Press the + to add an action
Select action category: Task, Wait
Then set it to 1 second.
Confirm the action and then the task by using the back button twice.​Now you're back at the main screen, long press the "-> Do Nothing" and add an exit task.
Call it "BT Auto Off"
Press the + to add an action
Select action category: Task, Wait
Now fill it with the delay you want
I suggest at least a minute or so to allow a lost connection to reconnect. Can also be much more, I have mine set to 10min.​Confirm the wait time and add another action.
Select action category: Net, Bluetooth
Set "off" and add an If argument.
For the variable, fill in %PACTIVE
For operator choose Doesn't match (!~)
For argument use *,BT Connected,*
Note: use the profile we are creating, between asterisks and commas.​Confirm by using the back button.​Now all you need to do is press the check mark at the top of the main screen to confirm the changes and activate them.
What it does, explained
The new profile (BT Connected) is activated when you connect to any BT device.
Once activated it runs the entry task which is "Do Nothing". That is because we don't want it to do anything but we do need this profile to be active while connected.
When the bluetooth connection is lost, the exit task runs. That is waiting for the delay time you set and after that turning off bluetooth.
The if-statement is to ensure we don't turn off bluetooth if it is connected to anything after the delay has passed. Since the profile will be activated once again when bluetooth is connected again.
I found this way the easiest since there is no variable to test if bluetooth is connected directly.
markvvaals said:
Hope this helps someone!
Click to expand...
Click to collapse
It most certainly did. Thanks so much. Though, it only seemed to work for me when I removed the asterisks and commas from BT Connected.
biscuitroller said:
It most certainly did. Thanks so much. Though, it only seemed to work for me when I removed the asterisks and commas from BT Connected.
Click to expand...
Click to collapse
From my understanding PACTIVE checks a comma separated list of profile names. In my testing it does not work when only the profile name is entered, thus without asterisks and comma's. The comma's are there to make sure you check the full name of the profile, preventing a false positive.
Note that it's the comma's surround the profile name, and starting and ending with an asterisk.
Here is what I am using
Code:
<TaskerData sr="" dvi="1" tv="5.10">
<Profile sr="prof2" ve="2">
<cdate>1602032723274</cdate>
<clp>true</clp>
<edate>1602033015010</edate>
<flags>8</flags>
<id>2</id>
<mid0>3</mid0>
<nme>Turn Off BT</nme>
<State sr="con0" ve="2">
<code>3</code>
<pin>true</pin>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3"/>
</State>
<State sr="con1" ve="2">
<code>2</code>
<Int sr="arg0" val="1"/>
</State>
</Profile>
<Task sr="task3">
<cdate>1602032744159</cdate>
<edate>1602032794555</edate>
<id>3</id>
<nme>Turn Off BT</nme>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="5"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>294</code>
<Int sr="arg0" val="0"/>
</Action>
</Task>
</TaskerData>
markvvaals said:
...
The steps below walk you through the setup of this profile
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

[Tasker Help] - Call Forwarding Profile

Hi
I was hoping i could get some help from someone with a profile i'd like to setup to forward my calls when conntected to my home wifi
This i can setup, but i also need to make sure tasker only runs the call forward dial code **21*+44.... after 5 minutes of connecting to the wifi and doesn't run the cancel code ##21# unless the wifi has been disconnected for more than 5 mins.
If call forwading was active and the wifi was disconnected i want to make sure the cancel option is stopped if wifi is restored within the 5 mins and vice versa.
Has anyone setup something like this before that i could replicate?
The basic idea would be a profile context, WiFi connected.
Enter task has a 5 minute wait action then the call action with the forward code and then a variable set %Forward to true. The call action should have an if statement set such; %Forward does not match true. This will prevent a second forward code being sent if the cancel code has not been sent.
Exit task has a 5 minute wait action then a call action with the cancel code and finally a clear variable for %FORWARD. In the call action, use an if statement; %WIFII does not match *CONNECTION*xxxxx* (where xxxxx is the SSID of the WiFi network that is in the profile context) around the final 2 actions so they don't run if the WiFi is reconnected.
If you flash the %WIFII variable, when connected you see information stating that WiFi is connected (CONNECTION) and what network it's connected to. If WiFi is not connected the %WIFII variable will return SCAN and all of the networks available. So the exit task will only run if the WiFi had not reconnected.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Wifi Call Forwarding
Hi,
Thanks for your help, based on your instructions i created the following profile but i may have made a mistake because even if the wifi is reconnected (i set it to 20 secs for testing) before 20 seconds the erasure code for call forwarding still runs and then the call forward code runs along with it if the wifi was restored.
Can you please have a look and let me know what i did wrong.
<TaskerData sr="" dvi="1" tv="5.2.bf1">
<Profile sr="prof29" ve="2">
<cdate>1531430225115</cdate>
<edate>1532630932692</edate>
<flags>16</flags>
<id>29</id>
<limit>true</limit>
<mid0>27</mid0>
<mid1>28</mid1>
<nme>Call Forward</nme>
<State sr="con0" ve="2">
<code>160</code>
<Str sr="arg0" ve="3">wg-OFFICE</Str>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3"/>
<Int sr="arg3" val="0"/>
</State>
</Profile>
<Task sr="task27">
<cdate>1531429517251</cdate>
<edate>1532623660702</edate>
<id>27</id>
<nme>1</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="20"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>90</code>
<Str sr="arg0" ve="3">**21*+447953222222#</Str>
<Int sr="arg1" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%Forward</lhs>
<op>3</op>
<rhs>%TRUE</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%Forward</Str>
<Str sr="arg1" ve="3">%TRUE</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
</Task>
<Task sr="task28">
<cdate>1531429582522</cdate>
<edate>1532623613278</edate>
<id>28</id>
<nme>2</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="20"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>90</code>
<Str sr="arg0" ve="3">##21#</Str>
<Int sr="arg1" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%WIFII</lhs>
<op>3</op>
<rhs>wg-OFFICE</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act2" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%Forward</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
ktmom said:
The basic idea would be a profile context, WiFi connected.
Enter task has a 5 minute wait action then the call action with the forward code and then a variable set %Forward to true. The call lactose should have an if statement set such; %Forward does not match true. This will prevent a second forward code being sent if the cancel code has not been sent.
Exit task has a 5 minute wait action then a call action with the cancel code and finally a clear variable for %FORWARD. In the call action, use an if statement; %WIFII does not match *CONNECTION*xxxxx* (where xxxxx is the SSID of the WiFi network that is in the profile context) around the final 2 actions so they don't run if the WiFi is reconnected.
If you flash the %WIFII variable, when connected you see information stating that WiFi is connected (CONNECTION) and what network it's connected to. If WiFi is not connected the %WIFII variable will return SCAN and all of the networks available. So the exit task will only run if the WiFi had not reconnected.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Go to the 3-dot menu and select export -> Description to Clipboard (not XML). Then you'll be able to paste it.
Be aware, it easier to use pastebin then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off" to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Wifi Call Forwarding
Sure, please see below. Since I havn't posted 10 times yet i can't post urls
pastebin/p4Ne08bu
Thanks!
ktmom said:
Go to the 3-dot menu and select export -> Description to Clipboard (not XML). Then you'll be able to paste it.
Be aware, it easier to use pastebin then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off" to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
There are three things that need to be addressed.
Long press the profile name so it’s highlighted, then tap the gear icon at the top. Check the box for “enforce order”. That is checked by default so somewhere along the line it was toggled off. The “i” next to the box will explain what it does.
In the entry task, action 3 sets the variable “%Forward” to another variable “%TRUE” (which is probably uninitialized e.g. not set) . Remove the % from the “TRUE” so “%Forward” is set to a value. Then fix the same problem in action 2.
In the exit task, action 2 the If statement for dialing the cancel code you have as “%WIFII !~ wg-OFFICE”. If you look at %WIFII when connected and disconnected but proximate to the AP, you’ll see that the SSID “wg-OFFICE” is present in both cases. To view the value of %WIFII, in a blank task, create an alert->flash with %WIFII as the text. Then just play the task when connected to the wifi network and again when disconnected.
There is also other text in the variable “%WIFII” in both cases. Since matches (~) or does not match (! ~) is not the same as contains, you have to allow for the additional text plus, ensure that it matches only when actually connected. That’s why my original post recommended the comparison be to “*CONNECTION*xxxxx* (where xxxxx is the SSID of the WiFi network”. So, in your case, this should be “*CONNECTION*wg-OFFICE*”. The asterisks are wildcards so this pattern ensures the match occurs only when there is a connection to the wg-Office AP.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Thanks! I'll give this a try.

Help! Clock App notification settings bugged? "Alarm and timer alerts" grayed out an

Help! Clock App notification settings bugged? "Alarm and timer alerts" grayed out an
Anyone else have this problem? My alarm stopped sounding off one morning. What happened was the alarm went off, silently. There is a notification that I "missed" my alarm. This continued to happen for 2-3 days. So I looked into Settings > Apps > Clock > Notifications. And under "Alarm and timer alerts" it is set to "Silent". This is also grayed out so that I cannot change it! Please see the screenshot I have uploaded.
I do not know if the setting was like this from the beginning, but the Alarm was operating fine every day before this. The sound was going off fine before.
Now after extensive checking I still cannot identify the problem. But I have managed to at least get alarms ringing now. All new alarms I add seem to ring fine. HOWEVER, the settings page (screenshot) still shows "Silent" and it is still grayed out. What is going on??
I want to use the stock Alarm but I cannot rely on it until I figure out why it is grayed out on silent. What if I oversleep for something important because suddenly the Alarm does not sound?
Can other anyone please check if their notification settings show up like this? If not, I would like to find out why my phone is like this. I did debloat some apps with adb but that was weeks before the Alarm problem. Maybe removing Bixby affected it somehow?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Mines greyed out, that's for notifications, for example you will get a notification 5 minutes before your set alarm so you can just dismiss it, it's not for the actual alarm.
Sent from my SM-G973F using Tapatalk
AdiHotdog said:
Mines greyed out, that's for notifications, for example you will get a notification 5 minutes before your set alarm so you can just dismiss it, it's not for the actual alarm.
Sent from my SM-G973F using Tapatalk
Click to expand...
Click to collapse
Weird, what would be the purpose of this kind of notification? Like the notification 5 minute before the alarm you mentioned... I have never seen that happen. What is it for?
It's so you can dismiss the alarm before it goes off, for example your alarm is set at 6:30 a.m. and you're already up you can dismiss it.
Sent from my SM-G973F using Tapatalk

Categories

Resources