JohanElmis / pycalima

Pytrhon interface for Pax Calima Fan via Bluetooth LE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Demo usage

from Calima import Calima

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

Command line tool

The module includes a very simple commandline tool which prints all the characteristics of a fan and then the State every two seonds. It can also search for available fans if you don't the MAC address.

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

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

About

Pytrhon interface for Pax Calima Fan via Bluetooth LE

License:Apache License 2.0


Languages

Language:Python 100.0%