All Projects → PatrickE94 → pycalima

PatrickE94 / pycalima

Licence: Apache-2.0 license
Python interface for Pax Calima Fan via Bluetooth LE

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pycalima

home assistant-ble
Companion application for home-assistant, sending bluetooth low energy detection
Stars: ✭ 21 (-38.24%)
Mutual labels:  home-automation, bluetooth, bluetooth-low-energy
SwiftyTeeth
A simple, lightweight library intended to take away some of the cruft and tediousness of using CoreBluetooth
Stars: ✭ 21 (-38.24%)
Mutual labels:  bluetooth, bluetooth-low-energy
daydream-node
Quick Node.js module to connect to the Daydream controller and receive all the data
Stars: ✭ 17 (-50%)
Mutual labels:  bluetooth, bluetooth-low-energy
theheraldproject.github.io
Herald - Proximity Detection Protocol and research documentation, including the Fair Efficacy Formula
Stars: ✭ 17 (-50%)
Mutual labels:  bluetooth, bluetooth-low-energy
ble-serial
"RFCOMM for BLE" a UART over Bluetooth low energy (4.0+) bridge for Linux, Mac and Windows
Stars: ✭ 134 (+294.12%)
Mutual labels:  bluetooth, bluetooth-low-energy
DroneJS
A Node.js based library for controlling a Parrot minidrone. This library also provides the feature to take pictures from the drone, download them all at a time and delete them whenever required.
Stars: ✭ 19 (-44.12%)
Mutual labels:  bluetooth, bluetooth-low-energy
SmartSpin2k
Transform your spin bike into a Smart Trainer!
Stars: ✭ 88 (+158.82%)
Mutual labels:  bluetooth, bluetooth-low-energy
ble
Bluetooth Low Energy for Linux / macOS
Stars: ✭ 264 (+676.47%)
Mutual labels:  bluetooth, bluetooth-low-energy
ESP32BleAdvertise
Simple library for BLE advertise using ESP32 in Arduino
Stars: ✭ 39 (+14.71%)
Mutual labels:  bluetooth, bluetooth-low-energy
H.E.L.P.
Home Environment Locating People 🍍
Stars: ✭ 19 (-44.12%)
Mutual labels:  bluetooth, bluetooth-low-energy
PiBeacon
Low-cost iBeacon using Raspberry Pi
Stars: ✭ 41 (+20.59%)
Mutual labels:  bluetooth, bluetooth-low-energy
BLELib
This library contains many of the features you need to interact with BLE peripherals
Stars: ✭ 21 (-38.24%)
Mutual labels:  bluetooth, bluetooth-low-energy
angular-web-bluetooth-starter
A Starter for the Angular Web Bluetooth module
Stars: ✭ 15 (-55.88%)
Mutual labels:  bluetooth, bluetooth-low-energy
BLE
No description or website provided.
Stars: ✭ 25 (-26.47%)
Mutual labels:  bluetooth, bluetooth-low-energy
ESP32 Thing Plus
ESP32 Thing-compatible board using the WROOM module and a QWIIC connector.
Stars: ✭ 18 (-47.06%)
Mutual labels:  bluetooth, bluetooth-low-energy
react-native-easybluetooth-classic
⚛ A Library for easy implementation of Serial Bluetooth Classic on React Native (Android Only).
Stars: ✭ 44 (+29.41%)
Mutual labels:  bluetooth, bluetooth-low-energy
bluetooth-terminal
ES6 class for serial communication with your own Bluetooth Low Energy (Smart) devices
Stars: ✭ 43 (+26.47%)
Mutual labels:  bluetooth, bluetooth-low-energy
py-bluetooth-utils
Python module containing bluetooth utility functions, in particular for easy BLE scanning and advertising
Stars: ✭ 60 (+76.47%)
Mutual labels:  bluetooth, bluetooth-low-energy
redux-bluetooth
Redux middleware to dispatch actions via bluetooth to a peripheral store
Stars: ✭ 17 (-50%)
Mutual labels:  bluetooth, bluetooth-low-energy
ruuvidriver
Serves your Ruuvitag Weather Station data over HTTP.
Stars: ✭ 13 (-61.76%)
Mutual labels:  home-automation, bluetooth

PyCalima

Simple python interface against the Pax Calima® bathroom fan created and sold by Pax®

This module provides a very simple interface against the various GATT characteristics of the Calima fan, most importantly it handles the authentication so values are actually persisted within the fan.

Uses BluePy

Installation

I did this on Raspberry Pi Zero W but it can be done on any computer which support BluePy (and has a bluetooth dongle).

You will need to install python3 which is Python v 3.4 if you install it from apt-get repos.
$apt install python3 python3-pip libglib2.0-dev
Then install BluePy
$sudo pip3 install bluepy

Clone this repo and then user run.py script to set the basic settings for your Calima. They will be applied if Calima was power cycled. Afterwards it will just poll Calima and output the data. You can pipe it to your home autmation scripts or or cronjob it to a file.

Demo usage

from Calima import Calima

fan = Calima("MA:CC:AD:DR:ES:SS", "012345")
print(fan.getAlias())

Command line tool

Pretty useful command line tool which among other things can print all the characteristics of a fan. It can also search for available fans if you don't know the MAC address.

For more on using the tool, just run calima -h.

Debugging

Set this to True in pycalima/Calima.py file if want to see more verbose output.

self._debug = False

Documentation

A good readup introductory readup on BLE reverse engineering can be found here.

Some badly structured details about the protocol can be found in the Characteristics file.

There is currently no documentation on the module yet, check the Calima.py file to see available functions.

License

See LICENSE file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].