At home or away

Posted on
Mon Dec 01, 2014 6:04 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

At home or away

Hey!

It would be great (presumably using GPS) to be able for Indigo to know via the presence of my phone whether I am at home or away.
The main usage would be to have it automatically enable or disable an alarm.

Cheers

Posted on
Mon Dec 01, 2014 6:11 am
Vangelis offline
Posts: 167
Joined: Mar 18, 2014
Location: Southampton (UK)

Re: At home or away

Done....Use Bluetooth, either via BlueTooth proximity (single phone) or Eventscript Bluetooth (do-hickey) for multiple phones - each can run AppleScript

Vangelis

Posted on
Mon Dec 01, 2014 6:18 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: At home or away

Oh!

Forgive my newbie'ness can you elaborate??
I'm confused how the limited bluetooth range of my phone will find the indigo server when at home???

thanks

Posted on
Mon Dec 01, 2014 6:28 am
Vangelis offline
Posts: 167
Joined: Mar 18, 2014
Location: Southampton (UK)

Re: At home or away

It is this very limitation that is able to identify your location.

Assumption is that your Indigo Server is at home - with BT range approx 15-10m it can detect when you are in your house and trigger actions. So if you position the BT USB centrally, unless you live in a mahoosive mansion, you should be good.
As soon as it does not detect you anymore i.e you have left the house, it can trigger another action.

Bluetooth is good as it is always on (as opposed to WiFi due to battery usage)

If you are wanting something a little different then GPS via GeoFencing might be your thing, however say bye bye to the battery life of your phone!

Vangelis
Last edited by Vangelis on Mon Dec 01, 2014 6:30 am, edited 1 time in total.

Posted on
Mon Dec 01, 2014 6:29 am
wiery offline
Posts: 288
Joined: Jun 02, 2008
Location: Ireland

Re: At home or away

Use the fingscan plugin to detect your phone on the wifi network. It scans the network and marks you phone home or away after X minutes. Also saves on hammering the battery on your phone for GPS tracking.

http://www.indigodomo.com/library/251/

Posted on
Mon Dec 01, 2014 6:39 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: At home or away

Ah!

No fingscan sounds the ticket!

Thanks guys!; great help much appreciated!

Posted on
Mon Dec 01, 2014 6:48 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: At home or away

Please be aware: wifi on a phone is likely not active when you are in front of your house. You have to click it on ie make the screen light up. Then it will be looking for known wifi = register on your router. When I come home I switch phone on ~ 10 meters away from the house. Then fingscan will recognize it ~ 5 meters before I reach the door and unlock the door just in time. You need to play with the fingscan parameters a bit and tune them for your home.


Sent from my iPhone using Tapatalk

Posted on
Mon Dec 01, 2014 9:21 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: At home or away

Hey!

Why would wifi on my phone not be active?
I appreciate going from Edge/GPRS (when I'm out an about) and then entering my home it may take sometime to connect to my wifi. But shouldn't that be ok? (I can allow for a delay).

Cheers

Posted on
Mon Dec 01, 2014 10:05 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

At home or away

most of the time wifi is asleep to save energy, especially when the screen is off.
by tapping on the screen or using the on button you wake it up.
While asleep it is not looking for any (new) wifi connection.

while at home and wifi is connected it goes into a special sleep mode for ~ 1 millisecond wakes up for 0.1 millisecond if there is no data waiting for it and goes back to "Power Save Mode)
The wrouter nows that mode and does not disassociate the phone. There is a special mode for it in the wifi protocol (PSM)
Pings do not go through to the phone. That is why FINGSCAN does not recognize it as up sometimes and you have to set the "timeouts" to ~ 15 minutes to put it into "away" mode"
(FINGSCAN has several ways to find out if a device is connected (1) FING info (2) active pinging and (3)information from the router (currently only ASUS >=56xx to get the power save mode info)


Karl
Last edited by kw123 on Mon Dec 01, 2014 10:47 am, edited 2 times in total.

Posted on
Mon Dec 01, 2014 10:09 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: At home or away

Hi Karl,

Thanks for that.
I guess I was hoping there was some solution like HC2 uses; based on GPS (appreciate the battery drain).
Hmmmm, what about if Indigo touch sent out notifications? i.e. if it gets no replay via wifi to the indigo server then it knows the phone cannot be 'local'.
Just trying to think of a 100% (or near!) solution! :P

Cheers

p.s. Actually perhaps have indigo touch send it's 'ping' when the accelerometer detects movement to conserve power. After-all you (and the phone) must be moving if you are approaching home....

Posted on
Mon Dec 01, 2014 10:28 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: At home or away

I guess it is all a question on battery drain. The best one would ble


Sent from my iPhone using Tapatalk

Posted on
Mon Dec 01, 2014 10:30 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: At home or away

With Asus router the detection is very good. About 1-2 seconds.


Sent from my iPhone using Tapatalk

Posted on
Mon Dec 01, 2014 2:16 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: At home or away

On the GPS/Geohopper method I'm not personally seeing any significant battery
drain. I've tested it a couple times by not using my phone all day for anything, calls surfing etc.,
and I typically have about 95% battery left.

There can be a minute or two delay entering/exiting fences though.
The real upside for me on this method is the adjustability of the fence size.
Using other wifi etc. methods just stepping out into my yard would false trigger it.

Carl

Posted on
Mon Dec 01, 2014 2:23 pm
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: At home or away

Great !
So what gps plugin are you using ??

Cheers

Posted on
Mon Dec 01, 2014 7:11 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: At home or away

It's called Beacon.

Carl

Who is online

Users browsing this forum: No registered users and 6 guests