

It shall activate the hci0 port, and detect all beacons around. !!! The python script will work only if your adapter is on hci0: If not, you will have to adapt the script !!! TX bytes:2500 acl:0 sco:0 commands:133 errors:0 If this is working, run the hciconfig ~ $ hciconfigīD Address: 00:02:72:14:27:0E ACL MTU: 1021:8 SCO MTU: 64:1
#Beacon auto tags Bluetooth
With the Pluggable adapter shown above, the result will look like this:īus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.īus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubīus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.īus 001 Device 004: ID 04d8:f55e Microchip Technology, Inc.īus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) ICīus 001 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)įor me, the adapter is the one on Bus 001 Device 006, close by my audio card, RFXCOM, USB relay card. To ensure the USB Bluetooth device is being seen, run
#Beacon auto tags install
configure -disable-systemd sudo make sudo make install sudo apt-get install python-bluez python-requests Sudo tar -xJf bluez-5.9.tar.xz cd bluez-5.9 sudo. The compilation take around 20 minutes and at the end, you will need to reboot. When the version will be higher, you could do a simple : sudo apt-get install bluezīut now, the available version is under 5.3, then you must compile from the source.Ĭheck the last version here : (and change the filename below accordingly. Sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev

It stops emitting when it is disconnected from its Phone apps.įirst install Dependencies that the bluez library uses. Xiaomi Mi Band (make it discoverable via the Mi app, then it can be found) The SODIAL BLE adapter detects it to a distance of 12m (in direct view) or upstairs across 2 floors. (Thus on the contrary, the absence may be decided in less than 15 seconds when the tracker goes out of range.). Plugable USB-BT4LE adapter: (uses BCM20702 chipset) You will need a Bluetooth 4.0 compatible USB adapter to use with the Pi. Domoticz will trigger the alarm on when the last beacon leaves the home. I plan to equip all the family keys with beacon and automatically arm/disarm my Domoticz alarm system by checking the presence of a beacon. You can use this to see if a person (who always carries his/her beacon) is at home or not, and trigger events based on this.

And the absence is verified every 5 seconds by comparing the hour of the last presence with a time out for each beacon. The detection is very fast : around 4 seconds.
#Beacon auto tags update
SWITCH_MODE : For beacon in range, update only 1 time the uservariable with "HOME". REPEAT MODE : For beacon in range, update the uservariable every 3 seconds with the RSSI (strength Signal). Choose for each beacon which one you want : Required in Domoticz, a uservariable of type String for each BLE Tag 4.4.2 Method 2 for Debian jessie system (thanks to justin81)Ĭheck the presence of a list of beacons (BlueTooth Low Energy V4.0) and update uservariables in Domoticz accordingly.4.4.1 Method 1 for Debian wheezy system.4.3.1 Second Test : Run the script manually.
