bleak
raspberry-pi-home-automation
Our great sponsors
bleak | raspberry-pi-home-automation | |
---|---|---|
10 | 2 | |
1,527 | 49 | |
- | - | |
7.6 | 2.5 | |
3 days ago | 8 months ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bleak
-
bleak VS SimpleBLE - a user suggested alternative
2 projects | 3 Jul 2023
-
Sending data from Windows PC to microcontroller using BLE
I've used Bleak in Python https://github.com/hbldh/bleak to connect to BLE devices from my laptop using the built-in card. I can iterate over services/characteristics, transmit stuff, use indicates, etc.
-
Reading Data from an Arduino BLE using Raspberry Pi
On the Raspberry Pi I recommend the Python library Bleak. It has some examples, such as the sensortag.py example that shows how to read characteristics, and the enable_notifications.py example that shows how to subscribe to notifications to read data from a characteristic.
-
Automating Testing for BLE Devices
We’ve automated testing on our BLE device. Our rig is based on a Raspberry pi configured with a Gitlab-runner that runs a test suite written in Python. We use a library called Bleak: https://github.com/hbldh/bleak
-
Raspberry Pi, meet Arduino. Arduino, meet Raspberry Pi. Let’s talk Bluetooth (LE)
There are quite a few good BLE helper libraries out there that can make my job easier. But not all are created equal, some may be perfect for building peripheral BLE applications but may not be the best for central BLE applications. As I am going to make the Raspberry Pi the client, Bleak is a great one to use. Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers. It is designed to provide a asynchronous, cross-platform Python API to connect and communicate with other BLE devices e.g. sensors.
-
Bluetooth package that works with MacOS Monterey
There is a workaround in here although they claim this is fixed in most recent update: https://github.com/hbldh/bleak/issues/720
-
ESP32 Python BLE example
If your Python script on your computer should work as the GATT client and your code on the ESP32 as the GATT server, Bleak is an easy-to-use Python library. Have a look at the code examples.
- hbldh/bleak: BLE platform-Agnostic Klient (for Python)
- Bluetooth Low Energy Platform Agnostic Klient for Python
raspberry-pi-home-automation
-
A single gateway to rule them all
I have done this, and wrote a book about it: https://koen.vervloesem.eu/books/control-your-home-with-raspberry-pi/.
-
How do you manage all your software? I’m just starting out on the smart path and need your help to understand rpi setup
I'm managing all these services with Docker Compose. This means I only have to backup one directory with the configuration and data of all services, and one file, the docker-compose.yml file that defines all services. You can find all source code of the book in its repository (https://github.com/koenvervloesem/raspberry-pi-home-automation), to give you an idea about how you would manage this.
What are some alternatives?
gatt-python - Bluetooth GATT SDK for Python
Pi-Somfy - A script to open and close your Somfy (and SIMU) blinds with a Raspberry Pi and an RF emitter.
pc-ble-driver-py - Python bindings for the ble-driver library
pi-mqtt-gpio - Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
blatann - Python BLE library for using Nordic nRF52 with Connectivity firmware
mycroft-core - Mycroft Core, the Mycroft Artificial Intelligence platform.
noble - A Node.js BLE (Bluetooth Low Energy) central module : Community maintained
zigpy - Library implementing a ZigBee stack
micropython-lib - Core Python libraries ported to MicroPython
WaterrowerAntBle - All-in-one data interface for your Waterrower S4 Monitor or Smartrow
python-keyboard - A hand-wired USB & Bluetooth keyboard powered by Python and more
Digifiz-Dash - A pygame Dashboard mimicing the VW Digifiz Dash of the 80s. Powered by Raspberry pi4 and arduinos.