After creating the simulated presence sensor, did you go back to SharpTools and authorize the new device before opening Tasker?
The Simulated Presence Sensor does not show up in either Tasker or Sharp Tools, although it is pesent in the IDE and Smart Things App.
So, did you do as Joshua just suggested?
The problem is that, you need to āredoā the device authorization process every time you add new devices that you want to have working with SharpTools.
So, after adding the new simulated presence sensor to your SmartThings, it will NOT show up in SharpTools until you go back through that process within the SharpTools app.
i.e. in SharpTools on the Android device,
-click the menu button in the top left,
-go to Settings,
-click āAuthorize Thingsā,
-log in on the SmartThings webpage that opens,
-look through the list to locate your new simulated presence device,
-check the checkbox for your new simulated device,
-click the green āAuthorizeā button at bottom left
That new simulated presence sensor should now show up in and be usable by SharpTools.
The last step is to make sure to go to the list of the devices that you have authorized in SharpTools app and āSubscribeā to it.
Iām loving this. The downside is that I am en route to being addicted to Tasker. Iāve got the retry logic working, too.
Still pondering Autolocation, but first Iām trying the accelerometer trigger. It makes sense to me to use a low power sensor to prevent Wi-Fi scanning until needed. My phone is much more often at rest than it is moving. Does anyone here have any observation/experience with how this works? Is it right that this option prevents Wi-Fi scanning until motion is detected? Then, does that introduce any lag that noticeably slows detection of arrival/departure?
This is awesome! I havenāt tried it, but after your question, I LOVE the idea. Man, if it works like youād like it to work, Iāll be trying it too.
[quote=ājoshua_lyon, post:19, topic:43163ā]Also note this portion from the Tasker guide linked above about improving battery life by adding a second, lower power context along side your Wifi Near context[/quote]I think Iām losing my mind. Please help.
Iām sure I set my profile to use a low-power context, i.e. the accelerometer, to prevent Wi-Fi scanning unless motion is detected. But now, I canāt find where that is. (Iāve gone through the links above, but Iāve so immersed myself in Tasker and Tasker tutorials that Iām lost.) Could I get a pointer/link?
How is this working for you after a week?
Can you share exactly what you did? Did you use the sharptools and tasker setup?
Yes, I just followed the recipes here, using Tasker, Sharp Tools and SmartThings.
As a complete newbie, I ran into some challenges where the obvious was not so.
As I documented a few posts back, I misunderstood the entry/exit conditions for āWi-Fi Nearā. I thought disconnecting from the SSID would trigger departure, but -thankfully - it doesnāt work that way.
One stupidity was totally misreading the !~ operator. I thought the ! was appended to the variable name, as opposed to bring prepended to the ~ character. Dumb!
Another was not understanding that the NOTIFY CANCEL command needed to refer back to the prior notification. I used random labels until I found out that I had to cancel by title. Dumb!
Iāve used the FLASH command to debug. But I wonder if there is a way to view variables as I step through the command sequence? This seems like a pretty basic programming capability, but I donāt see it documented anywhere.
As documented above, Iāve shortened up my Wi-Fi scanning (in Tasker preferences for display on and for display off) to 90 seconds. No idea if thatās the right intervalā¦
If anyoneās interested, I can post screen shots of the profile and tasks, but itās pretty much whatās documented here. I could also provide my XML exports, but it only takes a couple of minutes to enter.
A couple weeks in, and itās working fine for me. Autoloction made the difference.
But I found out that the front door lock is fickle. It works so much better if a repeater is in close proximity. Consequently Iāll be ordering a smart plug/outlet of some sort, to replace the one I took from its location close to the lock to use elsewhere.
Iām curious about Autolocation. What are its advantages over āWi-Fi Nearā? Was it reliability or the ability to have a more flexible perimeter? I ask because Iām very happy with the reliability of āWi-Fi Nearā and my with-no-actual-experience opinion is that Autolocation is good for expanding the perimeter (and I like a tighter perimeter).
One thing Iām learning with ST: if something works, donāt mess with it! Lol
If your wifi near is working for you, thereās no need to change. Mine was not working that well. So I tried a few different things, including bluetooth near. Nothing worked consistently until I went with a virtual presence using AutoLocation. I set up three geofences: home, neighborhood, town. Since I did that, ST opens my front door and turns on the light consistently when I pull into my driveway. I donāt know what if any effect the outer geofences are having, but the thing is working.
[quote=ājoshua_lyon, post:19, topic:43163ā]
Also note this portion from the Tasker guide linked above about improving battery life by adding a second, lower power context along side your Wifi Near context.
[/quote]Josh, a couple of questions, please. Iāve had some issues with what I call āfalse negativesā on presence⦠The phone will drop the Wi-Fi connection for 1-2 minutes, then reconnect, usually while stationary.
I never got around to implementing the lower power context, mostly because I couldnāt figure it out. Might I ask you for a little hand-holding on some steps to perform?
Your opinion on autolocation. Looking back at this thread, I didnāt use it because I thought it would be best for setting wider geofences. But for my current issues of going ānot presentā for short periods, do you think autolocation would address that?
Despite the above observation, Tasker plus Sharp Tools is still the best Android presence solution.
Iāll leave it open for others to respond first as I donāt personally use the Wifi Context + Low Power Context. When I had location profiles, I primarily used AutoLocation and it worked well for me. Iāve seen some people complain about location providers using too much battery, so I try to use the minimal features and pare things back if I get a bit wild testing. Alternatively, you could use some sort of exit delay if it is the exit condition that is causing you trouble.
When I saw your suggestion, I thought I had done that - by having my SmartApp delay in response to a presence departure and cancel its actions if presence returned in a defined period, e.g. 90 seconds. However, thinking it over, I think you might have been refering to implementing the delay in Tasker, which would be more elegant. Can you be more specific?
FYI⦠Iām using the resiliency loop, from Hellfire51, that you referenced, .
is there a way to post the whole setup? (code / profile and task for tasker)
For anyone following this thread, if you hadnāt seen this, take a look. Itās complicated but the instructions are precise, so pretty easy.
https://community.smartthings.com/t/how-to-smartthings-presence-reporting-using-tasker-sharptools-autolocation/70564