Python interface for Pax Calima Fan
Project description
# 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 Bleak
## Installation
- Install calima
$sudo python3 -m pip install calima
## Demo usage
from Calima import Calima
fan = Calima("MA:CC:AD:DR:ES:SS", "012345")
print(fan.getAlias())
## Find MAC address
$sudo python3 cmdline.py -l
## Home Assistant integration
Please visit ‘<https://github.com/timutta/homeassistant-paxcalima>’_.
## 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file CalimaPython-2.2.0.tar.gz
.
File metadata
- Download URL: CalimaPython-2.2.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b72a2ba866dea6e2cf4d02bcb264a265934a0d15a30fbfd933f1d4e99f98778 |
|
MD5 | 50573d9a22a07e2b0824c7438df0da94 |
|
BLAKE2b-256 | df24a5a7833141e00895ee2d1d2c5aa3b98a9914d0cb8c70b7ddaac770a71cf0 |
File details
Details for the file CalimaPython-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: CalimaPython-2.2.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343a9c6300e2d89b76d463a6c9b10dbf4934ee056e6f2a1a9a467919104effcd |
|
MD5 | d02216f57e0059d6ac5d6eaa10c2a7ce |
|
BLAKE2b-256 | ccbc3dfd2cf9f1664ce3a7def2451b64fac0dcfcf74309d8950b8c7b00aa1ce7 |