Bluetooth Proximity Setup

From LinuxMCE
Jump to: navigation, search
Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Unknown N/A N/A
1004 Unknown N/A N/A
1204 Unknown N/A N/A
Usage Information

I will clean this up and make it a full how-to later, just wanted to get this out there for now, feel free to beat me to the clean-up

  • Using the bluetooth signal from a phone or some other device that you routinely carry in your pocket, the computer can automatically detect when you enter and leave the room (or at least the general vicinity)
  • This method isn't so good when multiple Media Directors are being used, because bluetooth can only connect and monitor signal strength between one pair at a time
  1. Upon insertion of the bluetooth dongle, MCE should automatically recognize it and set bluetooth up for you
  2. After this, it may ask to reload, regen, etc
  3. If any bluetooth devices are in the area and visible, MCE will ask you if you want to use them, etc
  4. My phone is not supported as a mobile orbiter, so I clicked "do not use"
  5. Once all that is done and the dongle is setup, go to the KDE desktop
  6. Web Admin > Wizard > Devices > Security
  7. Click "Add Device"
  8. Under Device Template, select "Generic Sensor" and click "Pick Device Template"
  9. Select "Bedroom(Master)" from the drop down menu on the left
  10. Click Update at the bottom
  11. Make note of the device number at the top left corner
  12. In terminal run 'sudo apt-get install blueproximity'
  13. Run BlueProximity by going to K menu > Applications > Utilities > BlueProximity
  14. Right click the BlueProximity icon (bluetooth icon with key) and click preferences
  15. Put your bluetooth phone or device in discoverable/visible mode (See device's documentation)
  16. Click on "Scan for Devices"
  17. When it has finished scanning, click the desired device and then "Use Selected Device"
  18. A pairing request should then appear on the phone, accept it and enter a passkey
  19. Enter that same pass key on the computer when it asks
  20. If your phone gives the option, choose "Always Connect" (This will automatically connect the phone and media center when they are in range of each other)
  21. The sliders in the "Proximity Details" tab can be adjusted to the proper settings for being outside the room (Locking) and inside the room (Unlocking)...this takes some trial and error to get the right setting, but be patient and it will work
  22. In the "Locking" tab, replace the "Locking command" with "/usr/pluto/bin/MessageSend localhost 62 -1000 2 9 25 0" replacing 62 with the device code of the generic sensor you created
  23. Replace the "Unlocking command" with "/usr/pluto/bin/MessageSend localhost 62 -1000 2 9 25 1" again replacing 62 with the device code of the generic sensor
  24. Erase the "Proximity Command"
  25. The generic sensor will now be tripped when the phone is in range, and untripped when it is out of range
  26. Web Admin > Events Handler > Respond to Events
  27. Set the description to "Bluetooth enters room"
  28. Choose "A sensor is Tripped" in the drop down menu
  29. Click Add
  30. Set what device to "= Generic Sensor"
  31. Set trigger state to "tripped = 1"
  32. Click update
  33. Choose "Lighting Wizard" from the drop down and select the lights you would like to turn on/off/set level/leave unchanged when you enter the room
  34. Repeat the last 8 steps, with the description "Bluetooth leaves room" and the trigger state "tripped = 0" for the lights you want to turn on/off, etc when you leave the room
  35. After a reload router/orbiter regen...and possibly a full reboot...you should have proximity set up for you to leave the room and come back in
  36. Fine tune the sliders in BlueProximity to avoid lights turning off unintentionally


Apparently, blueproximity is not supported by developer since 2008, and in (K)Ubuntu 10.04 has lost the basis for it's capabilities. Lucid is not able to determine signal strength for bluetooth, by way of past or presently known methods, unfortunately. With 10.04, unfortunately, you're either connected or not, by all available info. --tekoholic, November 04, 2011