Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Geo Fence with 2 devices

Featured Replies

Posted

So I want to use geofencing to turn off the lights when we leave.

The problem i'm trying to solve is this.  If the wife and I both leave then lights should go off.

If I just leave and she is home lights stay on.

If she leaves and i'm already gone then lights should shut off.

I'm just not rue how to handle the code on this

Thanks
Mike

You need to set up some logic to determine if both phones are gone. Personally, I use a home state variable that is 1 when everyone is home, 2 when only some are home, and 3 when everyone is away. Then I have a few programs based on each phone status to set those variables.

 

I'm headed down the same ibeacon road Teken just pointed you towards for my own presence detection too. I have tried other methods, including wifi and geofencing, but this seems to have the most promise of responsiveness and accuracy that I've seen so far.

 

 

Sent from my iPad using Tapatalk

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.