Improved Mobile Presence
This project is a mobile presence system with additional features and improved speed / reliability. I started working on this after having many frustrations with the built in mobile presence system and battery issues with the arrival sensor. I am open to any ideas or suggestions and check this thread often so let me know what you think.
Changes currently in beta
- Locations now have Wifi and Bluetooth triggers (Geofencing option coming soon)
- Triggers have the following options:
a. Negative: Inverts the trigger (Ex. Wifi is not HomeWifi or Bluetooth device is not connected.)
b. Requirement: If requirement is checked, the trigger is required for location to be active but does not place you in that location by its self. - Power source changes now update in real time (patch update required).
A few examples:
Wifi is HomeWifi
Wifi is HomeWifi5
Bluetooth is SmartWatch (requirement)
Scenario 1 (At home):
Wifi is HomeWifi - false / ignored
Wifi is HomeWifi5 - true
Bluetooth is SmartWatch (requirement) - true / ignored
Result : Present
Scenario 2 (Out running, left phone at home and wearing watch):
Wifi is HomeWifi - false / ignored
Wifi is HomeWifi5 - true
Bluetooth is SmartWatch (requirement) - false
Result : Not Present
Setup Instructions
This process has been changed to make it easier to add new devices and eliminate confusion in the setup process. Feedback is welcome.
If you need to add pair an additional device after already completing these instructions, see Step 6
Step 1: Install Presence Sensor app
Accept any prompts to ignore optimizations (If you do not do this the app will be blocked from communicating with the server so it will not work)
If you are using Android 8.1 or above you need to install the patch AND the app from Google Play
Patch
Make sure you open the patch or it will not work
Step 2: Copy SmartApp from GitHub
SmartThings IDE can be accessed at https://account.smartthings.com
- Log into the SmartThings IDE
- Click My SmartApps
- Click New SmartApp
- Click From Code
- Paste the SmartApp code from GitHub and click create
- Click Publish then for me.
Step 3: Enable OAuth
- Click My SmartApps
- Click the edit icon next to Presence Sensor
- Click on the OAuth Section
- Make sure OAuth is enabled and you have a Client ID and Client Secret
Step 4: Copy Device Handler from GitHub
SmartThings IDE can be accessed at https://account.smartthings.com
- Click My SmartApps
- Click New Device Handler
- Click From Code
- Paste the Device Handler code from GitHub and click create
- Click Publish then for me.
Step 5: Install SmartApp
If you are updating and already have the SmartApp installed, skip this step. Do NOT install multiple copies of the SmartApp as it can cause problems when syncing data.
- Open the SmartThings app and go to the Automations tab at the bottom of the screen.
- Select Add SmartApp
- Select Presence Sensor and click Done
Step 6: Pair devices
- Select Automations from the SmartThings app
- Select Presence Sensor
- Select New Device or Existing Device
- Choose a pairing option based on the following options
a. Pair this device: Pair the device you are currently using. This option only works in the SmartThings Classic app.
b. Pair another device: Displays a QR code to be scanned by the Presence Sensor app on another device
Step 7: Create Locations in Presence Sensor app
- Open Presence Sensor app
- Click on a location to edit or click the add button to create a new one
a. Name: Location name
b. Home location: If checked, you will show as present when at this location
c. Networks: Connecting to any of the checked networks will cause you to show that you are at this location
If you are setting up additional devices, repeat steps 6 and 7 until you have setup all of your devices.
Everything should be working now
If you have any questions about this process or any other issues let me know.
WebCore
_More information about WebCore can be found at https://community.webcore.co/_
This project works with WebCore and has the following attributes
a. currentLocation: The location where you currently are
b. previousLocation: The last location you were
c. presence: present if at a home location or not present if anywhere else
d. battery: Battery percentage of phone
e. powerSource: battery if not charging or dc if charging
For example, To set the thermostat to 70 degrees when you leave work you could do this:
Download Links
Must have app from Google Play and device handler installed
If you are using Android 8.1 or above, you need to install the Presence Sensor app and the Patch
Donate
Donations are not required but are greatly appreciated. If you would like to donate, click the link below.
Donate