teqqy
(Christian)
April 8, 2018, 2:06pm
1
Hello,
my home assistant installation runs on a server in my basement. My Livingroom is so far away to be connect with some bluetooth devices directly to the server.
So, are there any sort of gateway possible that I can connect f. e. Xiaomi Mi Floora to my home assistant installation?
Thx.
I see this issue a bit, here’s how I solved it. Should give you some ideas at least:
I went a different route to solve this, and put hassbian on a Pi Zero.
I didn’t run any special code versions, just checked that the MiFlora mac addresses were detected with
sudo hcitool lescan
Which they were without any extra settings on my part.
Setup the miflora as normal on the pi zero hassbian:
- platform: miflora
mac: 'c4:7c:8a:6c:3b:69'
force_update: true
cache_value: 600
name: miflora_1
Then in my main hassio install, I used the rest sensor to get the data via th…
I use a Pi Zero (running Hassbian, can be raspbian) to do the job, it has built-in Bluetooth.
I run a little python rest api script to listen out for any BluetoothLE devices, in my case Tile keyrings.
It’s basic - just checks if the device is detectable or not. Might be of use:
Some things you might need to install
sudo apt-get install python3-pip libglib2.0-dev python-flask
sudo pip3 install bluepy
And the python script:
from flask import Flask
from bluepy.btle import Scanner, DefaultDel…
1 Like
benji
May 10, 2018, 9:51am
3
There is a great BT to MQTT gateway which I just recently added support for the MiFlora sensor.
Check it out here: https://github.com/zewelor/bt-mqtt-gateway/
1 Like