Skip to content

Bluetooth Low Energy to MQTT bridge (like zigbee2mqtt)

Notifications You must be signed in to change notification settings

liqi0816/ble2mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published