Raspberry Pi Ubuntu Linux 增加藍牙服務 Bluetooht HCI
HL-MD09P-C1-HCI 內建藍牙HCI Command, 經由BlueZ設定. 讓Ubuntu使用Bluetooth profile.
HL-MD09P-HCI 系列提供10/100/500公尺傳輸距離商品請參考
1. 驅動: 新版樹莓OS已經內建HL-MD09P-HCI USB 驅動程式, 所以免安裝即可驅動.
但需要安裝藍牙套件下達安裝指令:
$ sudo apt-get update
$ sudo apt-get install -y libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev
2. 查詢本機藍牙位址: 下達查詢指令: $ sudo hcitool dev
如下圖所示目前HL-MD09P-HCI是使用 hci0

3. 檢查藍牙裝置狀態: 下達查詢指令: $ sudo hciconfig
必須為UP RUNNING

4. 使用藍牙掃描功能,搜尋藍牙設備: 下達查詢指令: $ sudo hcitool scan

5. 在configuration.yaml文件中添加以下內容:
- platform: bluetooth_tracker
interval_seconds: 30
consider_home: 180
6. HL-MD09P-HCI藍牙收到的訊息, 在Home Assistant接收測試:
