If at home do NOT lock doors


#1

Hello,

I’m posting this with hope someone can point me in the right direction how to make this as simple as possible. I have piston setup to lock doors while not at home but would like to to stop that if I’m at home. What is the easiest way to accomplish this? I’m using Android.

Thanks!


#2

How are you locking the doors when you are not home? Maybe just the inverse of that logic as a restriction on the locking piston would do the trick?


#3

Thanks for the reply!

Right now its time and I failed to mention that I’m looking for location based when I get home.


#4

What method do you have in place to determine your location?


#5

None at this point and that’s why I’m asking what would be most simple solution and at the same time be gentle on the battery :slight_smile:


#6

Since you are on Android this should work great for you --> https://community.smartthings.com/t/release-improved-mobile-presence-android-only/102492/1

I have this on mine and it changes presence status based off connections to known wifi networks. So far in my experience very little battery use, accurate and relatively fast to update. The average update time is a minute or so for me but it can depend on your phone’s wifi settings when its asleep etc.

This then also exposes here to WC and becomes very easy to write into a piston.


#7

Thank you so much!


#8

No problem, once you have that setup and need help incorporating it into your piston just revert back to here.


#9

So I have app setup and WebCoRE but I’m confused where to find IF attributes ie. currentLocation

Its not explained in the example


#10

So first you want to make sure that whatever you named your presence device shows as an item in your list of ST devices. Mine I just named myself since its me. From there you make sure that its available in WebCore through its smartapp in ST as well. For me it was listed under the sensors section.

Once that is all done now you (or whatever you named your presence sensor) are available in WebCore as a device. So when you start with your IF block you can then select you (or that sensor) from the device list and work from there.


#11

Thank you! I was missing presence device in the WebCore. Once I added it everything else made sense.