I have created an app that uses several tools to determine overall and precise locations within the house using beacons. This uses very little power and should be relatively simple to setup. The files are located here: https://github.com/mlebaugh/TaskerBeacons
if you have the following apps.
How this works, uses Autolocation and wifi connected to determine if you are home. Basically the same as this post This will then set a smartthings presence sensor “User Home” to present. Once the user is home the app will wait for you to walk, once you start walking it will scan for beacons. The beacon radar app reports every ping back to tasker. Tasker will not scan continuously while walking, but every few seconds. Auto tools will then average all of the pings to determine the average RSSI (recieved signal strength indicator). Whichever Beacon’s avg rssi is closest and with the most number of pings is the location. Once you stop moving this will continue to scan for several seconds. when a new beacon is selected as the Location the presence sensor for “User BeaconName” will be set to present and all others will be not present.
BeaconRadar used to scan for beacons
Tasker XML / Beacons.apk
AutoTools used to make easy dialogs/average large numbers
AutoLocation used for geofencing
SharpTools used to update presence
- Check the permissions for this app… it seems the developer did not check permissions for Location. Android Settings >Apps >Permissions, enable Locations.
- Do a scan to find your Beacon, press the play button, you’ll want to stop this after your beacons are seen.
- At this point you may want to also block notifications from this app.
- Tap the beacon that was found and name it to the Room or Location you plan to use. Example: Basement, Bedroom, etc
- Scroll to the bottom and enable broadcast intent on visible only.
- Go to the settings
- Set all three (foreground, background, device locked) cycle timing to
- Interval: 24h
- Duration: 10000ms
- The other settings don’t matter in this use case. These settings are because we will not be using Beacon radar’s scanning/scheduling services and use one that we can control within tasker.
- Open Autolocation and create two geo-fences
I use a radius of 200 meters
I use a radius of 1500 meters
- Only install no config needed
- Login to the ide
- Devices, new devices
- Name: Use the format User Location, for example Matt Basement
- Device network id: some value i use mattbase
- Type: simulated presence sensor
- Create Presence devices for each user and room
- Create an overall Presence sensor for the user this must be User Home, ex: Matt Home
you must have a device for each user that is User Home and a device for each user and room.
- Two user, two room setup would look like
- Authorize all of the devices you created
- Using the Tasker xml
- Load the project, run the Beacons task.
- Follow steps for the APK
- Using the Beacons.apk **turns out i can’t upload the apk to this
- Install the app.
- Enter the user for the app
- Enter the wifi for your home
- Enter the Locations - this must match exactly the name of the beacons you setup in beacon radar, if you have multiple separate by comma.
- Thats it - you may want to scan now to set your current room, or get up and walk and few steps…
The end result should look like this:
I have no idea if this will work for you, I did my best to make it as easy as can be…
If your beacons are configurable, like rad beacons, you can set the uuid major/minor to the same as another beacon. In my living room and basement I use 2 beacons in each room because they sit on top of each other.
I use this within tasker and my wife uses the apk so either should work. The reason I stay in tasker is because I use %Location for other phone automation. Like if I’m in the Bedroom after x time silence phone. [details=Summary]This text will be hidden[/details]