Author Topic: Trigger a scene when a phone connects to home wifi?  (Read 307 times)

Offline kevmeister

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Trigger a scene when a phone connects to home wifi?
« on: February 24, 2018, 11:17:33 am »
I'm finding the Geo location features on Vera very hit and miss.  Especially trying to get it to recognize two phones and act when the last one leaves and the first one arrives.  Sometimes it works fine but all too often all the lights go out when my wife is still at home, and even worse the alarm gets activated and she has to suffer the sound of the siren going off.
 
I'm thinking it might be more reliable to trigger scenes when either phone joins or leaves the home network.  I have good range on the wifi so the phone should join the network as I walk up the drive.
 
Is there a way to trigger a scene based on an iPhone joining or leaving the network?
 

Offline HSD99

  • Sr. Member
  • ****
  • Posts: 282
  • Karma: +11/-0
Re: Trigger a scene when a phone connects to home wifi?
« Reply #1 on: February 24, 2018, 01:06:58 pm »
There's nothing that will do this directly, but there are options. This thread: http://forum.micasaverde.com/index.php/topic,37448.0.html discusses using the Unifi controller (Java software)  to what you want. The plug-in might provide some insight for you to roll your own if you don't have a Unifi set-up. This plug-in, Site Sensor, might also be useful: http://forum.micasaverde.com/index.php/topic,50440.0.html

It's good that you've verified that your phones will connect to your Wi-Fi before you enter the house. In case this is an issue, you might also check when they drop Wi-Fi as you leave. 

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1217
  • Karma: +28/-13
Re: Trigger a scene when a phone connects to home wifi?
« Reply #2 on: February 24, 2018, 01:13:46 pm »
The most simple way would be to give the phone a DHCP reservation for a IP address in your static range.  Then use the PING sensor plug-in to detect it is responding at that address...  I am not sure I would want the alarm based on this.  I prefer to use a z-wave deadbolt...
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)