Author Topic: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)  (Read 5101 times)

0 Members and 1 Guest are viewing this topic.

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
Okay first i made this tutorial for reddit initially to gain a little bit of popularity for 2 great products voxcommando and happy bubbles BLE detectors. This may seem kinda meh to some of you that have used vox for a while but here it is.

Hello this is a review I'm doing about presence detection using bluetooth low energy devices that I received from a company called https://www.happybubbles.tech/ for the past 2 weeks I've been working heavily with these devices to understand the ins and outs and test different home automation using them.

My current home automation devices are zwave, x10, and phillips hue. I currently use software such as home assistant, voxcommando, eventghost, and tasker to run my home automation devices. This device isn't really limited to any 1 software and works through MQTT so pretty much anything that can receive messages through MQTT will work with them.

This is going to be a tutorial of the setup on a windows operating system along with a review of how my system is currently implementing the BLE devices.

First off you need to choose an MQTT service to use. I chose to run mosquitto MQTT server locally on my windows 10 PC. A tutorial on setting up mosquitto MQTT can be found here.

https://sivatechworld.wordpress.com/2015/06/11/step-by-step-installing-and-configuring-mosquitto-with-windows-7/

Next you need to setup the happy-bubbles BLE detectors which is pretty simple.

1.) Plug in the BLE detector

2.) At first start the BLE detector will boot into config mode and broadcast as an access point. At this point you simply connect to the happy-bubbles wifi access point using a phone or laptop.

3.) After you have connected to the happy-bubbles access point just point your browser to http://192.168.4.1/ This will bring you to the config page to begin setup.


4.) On the left side of the page click "wifi setup" wait until your router populates in the list and select your router and plugin your password then click save.



5.) Next go to the "MQTT setup" on the left side panel and here you will enter your local ip address of the computer that is running mosquitto. Next enter the port which be default is "1883". Choose whether you want the lights on the device to blink when a beacon is detected. Click save and then return to the "Home" tab on the left panel.



6.) Choose a name for your device and you are finished with the BLE detectors initial setup. You should see that the Happy-Bubbles detector is now connected to the MQTT server. Hold the "config" button on the BLE detector for 5 seconds and then release it to exit config mode and begin intercepting beacon transmissions.



7.)Next comes the setup in your home automation software i personally use VoxCommando much more than any others so i will be running through quickly how i have my office setup to work with VoxCommando and the BLE detectors.


VoxCommando is a voice automation system that is so much more than just voice automation software. I've been using it for close to 3 years now and it is constantly receiving updates. As a matter of fact its most recent update was adding a plugin to work specifically with the happy-bubbles BLE detectors. The creator of the software "JitterJames" did an excellent job creating this plugin within only 2 days of my requesting it if that tells you anything.

1.) Download the latest version of VoxCommando. There is a free version that allows up to so many commands before a restart is needed. This limitation is removed with the paid version but for those that want to test it out first this will suffice.

http://voxcommando.com/home/

2.) Use the documentation included in VoxCommando's installation to ensure you setup VoxCommando correctly. But for the most part its just download and install like anything else.

3.) After VoxCommando is installed and open click on the plugin tab at the top. http://imgur.com/P689YhJ then click enable/disable plugins. Click the checkbox next to MQTT then click save.

http://imgur.com/Zevzwpq

4.) Click plugins tab again and now you should see MQTT in the list. Click it to enter the MQTT setup page.

http://imgur.com/etBAovd

5.) Enter the ip address of the computer running mosquitto into the host section and make sure the port is set to 1883 as long as you didn't change the default port.

6.) Click the happy bubbles tab and you should be able to see any nearby beacons. Make sure to click and give each beacon a unique name and click save options and your done with this part. My beacons are named for example James Slippers, James Shoes because i implanted a beacon in my slippers and in the tongue of my shoe. I also did the same with the kids and wifes shoes as well. Now we all have smart shoes (Patent Pending) LOL Hopefully apple doesn't steal this.

7.) Now click the "edit" button at the top and the command section will open. Here is where you will start to build the commands you want to make the magic happen.

http://imgur.com/liGUMSS

8.) Create a new group and name it something like "BLE DETECTION" after that i created folders for each room through my house. Office, living room, dining room, front porch, etc.

http://imgur.com/W8D7qYF

9.) Go to the room you will be working with first and click "create new command" name the command however you wish i named mine "Name1 BLE Detected" "Name2 BLE Detected" "Name3 BLE Detected" and so on for each person that will have a beacon on them.

10.)On the main VoxCommando window at the bottom click "history" and this will open up a log of all the events that are taking place. If you bring your beacon into range of the BLE detector you will see an event pop up for it. Drag this event "Beacon detected" event and drop it in the VoxCommando editor on your new command. This will make it so that anytime the Beacon is detected in VoxCommando it will trigger whatever is in the command.

http://imgur.com/lEOVNlJ

11.) This pretty much sums up how to use the beacons with VoxCommando but you will need to setup your commands to do as you wish yourself depending on what home automation needs you want it to run. There are plenty of different plugins available in VoxCommando to choose from and a great community of people always willing to help.

The way my office currently works is when i walk into the office wearing a beacon my tv turns on (USB-UIRT), hue lights turn on to certain colors/brightness depending on what time of day it is (Phillips Hue), stereo receiver turns on (X10 appliance module), desk fan turns on (X10 appliance module), and my computer greets me through text to speech in a random way every time I enter. My next project will be adding another BLE detector to my front porch to control my front door lock (Cause who has time to fumble around looking for keys)

NOTICE: For those of you using home assistant you can use the MQTT plugin to get messages from the BLE detectors to home assistant to perform different commands as well. The creator of the BLE detectors has also informed that the he is currently working on a home assistant component to make this a little bit easier as well.

I've been looking for something that works well for presence detection for quite some time now and everything up until now has been a failure. PIR Motion detectors, IR tripwires, beacons with my phone, etc. have always given false positives, turn lights off while I'm still int he room, and have no way of telling who is in the room but only that someone or something might be there. With these devices presence detection truly is smart and can detect who is in the room and can also use logic to avoid turning devices off when one person leaves and others stay in. To me personally this is revolutionary in the home automation scene and i will be ordering many more of these devices.

I received no kickbacks or payments for making this tutorial/review but I did receive a couple of the BLE detectors to review for you guys. This is one of the first reviews that I've ever done so I hope it was up to standards. I will be making a short video of my setup working with the detectors very soon so stay tuned.
« Last Edit: August 13, 2016, 11:02:33 AM by jitterjames »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)
« Reply #1 on: August 13, 2016, 04:52:53 AM »
Hi IKROWNI,


good job - I will give it a try next time.


Kalle
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)
« Reply #2 on: August 13, 2016, 08:24:08 AM »
Good stuff.

Small thing I noticed: after step B. 5 you need to

Enable the happy bubbles check box on the happy bubbles tab.
Click save.
Click connect.

Otherwise no beacons will appear in step 6.
« Last Edit: August 13, 2016, 08:33:40 AM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)
« Reply #3 on: August 13, 2016, 12:07:50 PM »
Here is the discussion that IKROWNI started on Reddit

https://www.reddit.com/r/homeautomation/comments/4xhmzm/the_ultimate_smart_presence_detection_system/

Might be good upvote and comment there to get some buzz going there to ensure the success of both the HappyBubbles devices and the plugin.  The more people use it, the better maintained it will be.  Also Nemik deserves some free exposure for setting us up with free samples.

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
Re: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)
« Reply #4 on: August 13, 2016, 02:22:07 PM »
Just created a video demonstration of the product in action for those of you interested. This is pretty much my first video ive created for others so don't mind the lack of video editing skills.



And here is another thread i created for the video demonstration on reddit. You guys can upvote for more visibility if you choose but i currently have 2 separate threads discussing the beacon detectors and i'm hoping that i don't get in trouble for posting pretty much the same type of topic 2 times promoting a product. I just didn't know if the video should be added separately or not.

https://www.reddit.com/r/homeautomation/comments/4xjy91/demonstration_of_bluetooth_detectors_for_presence/
« Last Edit: August 13, 2016, 02:45:15 PM by jitterjames »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)
« Reply #5 on: August 13, 2016, 05:53:31 PM »
Thanks for the demo video, cool stuff.
***********  get excited and make things  **********

keithj69

  • $upporter
  • Sr. Member
  • *****
  • Posts: 113
  • Karma: 7
    • View Profile
Re: The ultimate "SMART" Presence detection system! (REVIEW/TUTORIAL)
« Reply #6 on: August 19, 2016, 11:09:55 AM »
thanks for this.  It has been something i have been wanting to do for sometime.  you have made it easier.