I'm new to Hubitat and would like to see Hubitat support the use of Locative for presence until the mobile app with presence is available or as another option. I'm using Life360 right now but don't find it ideal and have privacy concerns with giving yet another 3rd party access to my location 24/7. Locative uses HTTP(S)-URL (either via GET or POST requests) and I believe it would be a better fit in keeping with Hubitat's local control philosophy.
It appears that Locative has shut down. I don't feel it makes a lot of sense to add support for a now dead platform.
From the iOS App Store
PLEASE NOTE: As announced in https://blog.locative.io/bye-everyone-df01871fe949 I've shut down my.locative.io effectively 14th of May 2017. This app will remain in the App Store for reference reasons but won't ben further supported. Please look at https://github.com/LocativeHQ for its Source Code.
Ok that's understandable. Source code is on GitHub so I'm hoping the presence functionality in the upcoming mobile app will follow a similar approach.
I looked over the design a little, and it does seem to be a nice, simple, private solution. It's a shame it is no longer supported. I would worry most about an iOS or Android update that might break it.
If you're a developer, you should be able to fairly easily create an OAUTH endpoint Hubitat App that would allow the simple HTTP calls to change a virtual Presence Sensor from 'not present' to 'present' depending on the call.
I'm now using a combination of Apple Location services (via Homebridge, a Hubitat virtual switch and a Hubitat Rule Machine rule), together with a TP-Link Deco M5. I bought the TP-Link for several reasons, but the ability to trigger an IFTTT applet when our phones connect and disconnect from the network was a big part of my purchase decision. Google WiFi, Almond and Asus also support this. Although, for some reason the Asus router does not support disconnect as an IFTTT trigger.
I have a rule that flips a virtual switch when Location services finds us in range, then when we are in range of our WiFi, a second virtual switch if flipped for 1 second and then automaticly resets to off. When both of the those virtual switches are "ON", the rule becomes true, and that then turns off the Location services switch and unlocks our front door.
Any presence triggers possible through the Location, Maker/Webhooks Channel and/or Hubitat IFTTT services?
I am not sure whether or not Hubitat's IFTTT support includes the ability to change a virtual presence device's status or not. If not, you may still be able to achieve the same result by creating a Virtual Presence Device that also includes the "Switch" capability. This can easily be changed by IFTTT. When the on() function is called, it would simply update the presence attritbute to 'present'. When the off() function is called, it would update the presence attribute to 'not present'.
Are you familiar with developing Drivers for Hubitat and/or SmartThings? If so, then what I typed above would make sense. If not, I am sure we (the community) can assist you as needed. It should only take a few minutes to create such a driver.
I’m using the webCoRE Presense app. It’s been working great for me and RM.
I just wanted to let you know that I have Locative on iOS running and keeping a Virtual Presence Sensor up to date on my Hubitat Elevation Hub. I am using the Hubitat Maker API App to expose the Virtual Presence Sensor via the Hubitat Cloud Endpoint. It works really well so far.
Just thought that you might be intrested still. I wish the developers were still maintaining Locative. At least the source code is available. Unfortunately, it is no longer available from the Google Play Store.
Thanks for the info! I'll see if I can get it working.
Anyway you can help with the setup. I can’t seem to get it working. I created a virtual presence sensor and and used the maker api send device command cloud link to the assigned device ID and populated arrived and departed in separate links. Added them to locative. But isn’t working.
In the Locative App, under SETTINGS, make sure you have Global Http Settings configured for "GET", not "POST"
You can easily test by pasting in the following two URL's on that same page and clicking "Send Test-Request"
Your URL format posted above is a little bit off...
Go back to your MAKER API App on your hub, and scroll to the bottom where you should find the following section:
Send Device Command (replace [Device ID] with actual subscribed device id and [Command] with a supported command. Supports optional [Secondary value]
https://cloud.hubitat.com/api/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/apps/294/devices/[Device ID]/[Command]/[Secondary value]?access_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
In the above two URL's, you will need to replace the entire "[Device ID]" with the 3 digit numeric device ID of your virtual presence device. (Be sure to remove the brackets!)
The easiest way to figure out that numeric ID is to simply click the "Get All Devices" link on the Maker API App page. This will return the list of devices that you have exposed via the Maker API and will show you their 3 digit numeric device IDs.
Hopefully this gets things working for you. I am pretty impressed with how little battery Locative uses. It has triggered the presence sensor changes 4 out of 4 times so far. Not a huge data set, but definitely looking good so far.
Thanks Ogiewan. So far working great.
I wish I could use this app as well but I use android.
I've been trying tasker with GPS location as @ogiewon recommended but it seems to a just a bit too delayed. I'm considering adding wifi connectivity to my tasker profile but have a feeling the battery hit would be too much.
I wish there was someone out there who knew how to compile the android code in the github into a useable apk.
I am currently testing an app on my Windows Phone that lets me set up a geofence and then enter webhooks on entrance and exit of the geofence. I used the cloud Maker URL to set my virtual presence sensor to arrived or departed. I set all this up last night so need to check the logs when I get home to make sure it worked, though it did set the virtual presence sensor to arrived when I first set up the geofence.
Perhaps a similar set-up would work on Android...this looks very similar to the Windows Phone app I installed:
Edit: Happy to report that the geofence on my Windows Phone worked perfectly, and it reports me arrived before I am out of the car! I set the geofence up to be 200 meters from my house.
Windows phone? Wow didn't know people were still using them let alone apps being made for them.
You might be surprised...only Microsoft has given up on them!
I've used an Android phone and seen other people's iPhones, and IMHO the Windows Phone is superior, plus seamless integration with my Windows desktop.
@homeauto2112 Did you have to change anything in the Webcore Presense app to use in HE?
I did not. I just loaded WebCoRE and then setup the Presence app.
I ended up moving my WebCoRE back to my Smartthings Hub as there were reports earlier that it might slow the hub down. I then used the HE Hublink to create a Virtual Presence Sensor.
I don't think I'm answering the question though.
Did you have to load the WebCore Presence Sensor DH?