PING my cell phone for automatic presence.

  • 243 Views
  • Last Post 11 March 2015
pir8radio posted this 22 February 2015

I get openhab to send a get request to change the state of the virtual device in InControl when the openhab pings my phone.

Josh

Order By: Standard | Newest | Votes
monkey-magic posted this 23 February 2015

This may be something you can already do in scripting? I dont know... but it would be nice to be able to setup a virtual device that "PINGS" a network device name once ever X mins. So when i come home my phone automatically connects to my wifi, InControl will do its ping see its there and i can do scenes based on it.. as well as when i leave, i can shut my garage door automatically.. Possible? already possible?


I run Openhab as well. It can also run on windows but I have an ESXi server that I run the linux version. With it there is a network health binding that can ping an IP every x seconds.

I use it to see if I'm home or if the wife is home.

Josh

tnamey posted this 23 February 2015

If you're an android user try using Tasker. I have Tasker set to turn on a virtual device within IC when I connect to my home wifi and turn it off when I disconnect. Same goes for my wife's phone. It's actually much more reliable then I thought it would be. I've had this set up since the Tasker plugin came out and it's only failed to set things properly 4-5 times.

I would love to trust a system to close my garage automatically but setting a hard rule for something like that can be so tricky. If you don't account for every possible scenario you could have the garage closing at unfortunate times.

pir8radio posted this 27 February 2015

Both good ideas, but im looking for something built in to InControl... a way to create a device similar to a linked virtual device, but that i can set parameters for its state to be 1 or 0. One of those parameters would be to ping computer name: MYPC1 three times every 60 seconds, when all three pings fail change state to 0 if two pings are successful set state to 1

monkey-magic posted this 27 February 2015

I get openhab to send a get request to change the state of the virtual device in InControl when the openhab pings my phone.

Josh

pir8radio posted this 04 March 2015

I get openhab to send a get request to change the state of the virtual device in InControl when the openhab pings my phone.

Josh


But OpenHab is a software similar to InControl right? why would i run two home automation servers? I would rather get the feature built into InControl, or am i missing something?

monkey-magic posted this 04 March 2015


But OpenHab is a software similar to InControl right? why would i run two home automation servers? I would rather get the feature built into InControl, or am i missing something?


Yes, openhab can do what Incontrol does. If it does get built into InControl all the better but at the moment it isn't.

Why: It does somethings that InControl can't do without coding. I can't code. I use openhab to do the ping and also the XBMC controls. I also use openhab to control my TVs as they have a binding for them and hopefully if I can get it sorted the biding for the energy monitoring/solar panels.

I also run eventghost on there as it's an easy way for me to get pushbullet running and also serial control of my projector.

Josh

danno97 posted this 11 March 2015

I have done this using a .vbs (vbscript) on my windows xp computer. I have the scheduled task run the .vbs script every 15 min to ping our cell phones to see if we are at the house. If the .vbs script does not find any of our cell phones it tries again in 15 min and then will turn off all of the lights.

It calls a curl command to run the scene to turn off all of the lights.

You also need to create a windows user variable to make it work.

Close