NguyenMinhTri / ble2mqtt

Bluetooth Low Energy to MQTT bridge (like zigbee2mqtt)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yet another Bluetooth Low Energy to MQTT bridge (like zigbee2mqtt).

Supported devices:

user: config readme

developer: device readme

Try it out!

Prerequisite

ble2mqtt is tested with Python 3.9 and 3.10. You will also need git.

Install dependencies

pip install --upgrade bleak==0.20.1 PyYAML==6.0 'amqtt>=0.11.0b1' furl==2.1.3 pyee==9.0.4 pycryptodome==3.17

Clone the repository

git clone https://github.com/liqi0816/ble2mqtt

Write config

homeassistant: true
mqtt:
  base_topic: homeassistant
  server: mqtt://127.0.1.1:1883
controller:
  address: null
  capacity: 6
devices:
  '01:02:03:04:05:06':
    type: am43
  '01:02:03:04:05:07':
    type: am43
  '01:02:03:04:05:08':
    type: tuya.fingerbot
    device_id: abc123456
    uuid: tuya1234567890
    local_key: abc123456
    down_percent: 80

Run the program

cd ble2mqtt
python3 main.py --config [path-to-config.yaml]

About

Bluetooth Low Energy to MQTT bridge (like zigbee2mqtt)


Languages

Language:Python 96.3%Language:Shell 3.7%