I am setting up Tasker and Sharptools and want to subscribe to our Mobile Presence devices and basically have my wall mounted (battery powered only) tablet turn on (to SmartTiles) when someone arrives home.
I believe I set it up right and just need to test it but my question is will this eat up my battery alot? Is it constantly checking the state? Tagging @joshua_lyon in this
Scott-
Thanks for the great question! SharpTools will not eat your battery when you subscribe to an attribute. The attribute subscription feature leverages the SmartThings cloud for detecting state changes and sends push events to your phone when the state of a subscribed attribute changes. As such, SharpTools is very easy on the battery!
I probably have 5-10 attributes subscribed and SharpTools doesnāt even show up in the list of apps impacting the battery. (eg. itās using less than 1% of the battery).
Edit:
For those who arenāt familar with SharpTools, itās a set of Widgets and Tasker Plugins for Android. You can do some cool things like subscribe to attributes of your Things and react in Tasker. For example, you could subscribe to a motion sensor on your front porch and have it trigger a notification on your Android phone prompting you if you want to unlock the front door.
Thanks. Right now we just push the button but I would like it to turn on when someone arrives home letting whoever is already home know that someone has arrived
Ok @joshua_lyon I might need a little help. So basically as I said I want to turn on my tablet when any of the 3 of our phones switches to āpresentā.
I tested this on my wifes phone but it did not work, I may know why but just want to verify I set it up right.
I went into SharpTools and āsubscribedā to her Phone. I then went into Tasker and under Profiles I added a new Event>Plugin>SharpTools>ThingState. The Thing name I set to her phone and (I think this is where I messed up) Attribute I set to her phone. Should this be set to āpresenceā as the attribute?
I then add a new action Plugin>SecureSettings and choose āWake Deviceā, then choose āIFā %st_attrib_value ~ present
Does that seem right? I have to wait until she leaves and comes back again to see if changing the attribute to āpresenceā was the problem.
I am duplicating this on my phone so I can check when I get home too.
Yes, this seems right. You can leave either (or both) of the fields in the Thing State event blank and it will treat that like a wildcard. You can also use a partial name in the Thing Name field. For example, if you put āPresenceā in for the Thing Name then it would match things named āWifeās Presenceā, āMy Presenceā, āPresence of Daughterā, etc for the things.
You can either leave the attribute field blank or you can use āpresenceā since thatās what you subscribed to. Since you would already be filtered down to only events generated by your wifeās phone and there is only the one presence attribute, itās probably easiest just to leave the attribute field blank. But if you did want to put a filter in, you would want to make sure it was the āpresenceā attribute.
And it sounds like you got the second part right as well except for a typoā¦ the action in the profile would be the actual action you want to take and you can use the IF section of the action to make it conditional upon the %st_attr_value ~ present (note the use of attr instead of attrib).
Hereās an article on some common things to check for when setting up conditional actions:
Thanks, I typed it wrong here but had it right in Tasker.
So If I āsubscribeā to all 3 phones and in the Thing State section just leave both fields blank it will trigger with any phone, right? This would be idea so I donāt have to setup 3 different tasks
Then I would still only need one Action with the IF ā%st_attr_value ~ presentā right? That would get triggered with any phone changing to present, right?
I have a similar setup with Sharptools and Tasker waking up my tablet. However, I have it set so that the tablet turns on and off based on the state of a z-wave light switch. This switch is turned on and off via a motion detector. Therefore, the tablet is only on when someone is in that particular room and for a short time after motion stops. Works great. By the way, while it is sleeping the tablet still responds to other sharptools/tasker profiles. I use mine for my doorbell sound.
I am guessing I could also setup a Virtual Switch that is triggered by a motion detector to do the same thing, right? I was using the motion detector app on the tablet but as Navat604 says it kills the battery fast, this method would take the battery use off the tablet. This is a fantastic idea!!
I bought 2 PEQ motion detectors during the Best Buy sale and wasnāt sure what I was using them for yet.
I have 2 tablets to setup so there is a use for 2 of the motion detectors
EDIT: DOORBELL! There goes my 3rd motion sensorā¦lol
Yes, but keep in mind that this will match attribute changes from ALL things and attributes you are subscribed to. For testing, this is usually OK, but as you get into using SharpTools you will probably find other fun and interesting uses and will probably subscribe to more attributes.
I would recommend at least setting one of the fieldsā¦ for example, you might set the attribute field to āpresenceā so the profile would only trigger when presence attributes change.
I put together a really quick video which Iāve included below. I went through everything pretty quickly, but hopefully itās helpful.
FYI the only way I could get tasker to wake up the tablet was to have it trigger a popup alert. But, I am a novice with tasker and somebody with more experience may have a better way.
@ErnieG thanks. I am trying with Secure Settings and 'Wake Device" but if that doesnt work at least I have another option. @joshua_lyon AHHHH, that makes perfect sense as soon as you said it. As I was reading I was thinking I could set the Attribute to presence and the Name blankā¦so I am learning and we are on the same page.
I am a visual kind of person so thanks so much for the video. I now have alot of work ahead of meā¦but it will be fun. All kinds of ideas are popping thru my head. I originally bought the 2 android tablets for SmartTiles but now can think of a few other additions.
Looks like I got it working. As @ErnieG said I had to use a popup alert as Secure Settings āWake Deviceā did not work. I even got it to beep twice to audibly notify us of someone arriving home. I could have it speak too but that may freak my wife out so I will just stick with the beep for now.
Glad to hear you got it working (Secure Settings didnāt work for me either). My wife and I had some fun with presence alerts and picked out theme music for each of us to play once we are within the geofence. I also have the tablet speak alerts if doors are left open for a period of time or if water sensors are triggered. I also use the popups for these alerts for visual notification. Although I find Tasker a little tough to setup the results are great. My next Tasker/Sharptools project will be to trigger alerts and view ip camera through PIP on tv.
Thanks. My wife is still getting use to it so I am trying not to change things around much at first. This wasnāt her idea and to be blunt, I am trying not to piss her offā¦lol
Iāve seen some really cool Chromecast dashboards put together with Tasker and AutoCast. While it wouldnāt be PIP, it would be really cool to setup a Chromecast dashboard that displayed some key information from your smart home and maybe even some camera video feeds.
Very cool. That is way beyond my capabilities. I was happy just being able to see Smarttiles on the Xbox for my device status. My issue is that my ideas exceed my abilities, especially if any programming is involved. So I have to look for solutions that I am capable of implementing. For the PIP alerts I mentioned above, I will be relying on the Kickstarter project Anymote. Anymote already has a Tasker plugin. With Anymote, Tasker and Sharptools I should be able to have ST and my AV equipment communicate. I am also toying with the idea of using Eventghost (which I have never used) to capture ir codes from my older harmony remote to toggle lights and trigger scenes. Thus, I can achieve what the more expensive Harmony Home Control is supposed to do.