Python library for interacting with the Eurotronic Comet Blue thermostatic radiator valve based on bleak using asyncio.
Project description
cometblue-asyncio
This is a Python library for interacting with the Eurotronic Comet Blue thermostatic radiator valves and their clones (see below).
It is a refactored fork of https://github.com/zero-udo/eurotronic-cometblue with additional credits to https://github.com/rikroe and Thorsten Tränker.
What sets it aside from other Comet Blue libraries?
-
It is built on https://github.com/hbldh/bleak, which is well-designed, up-to-date and functional. Do you know that e.g. pygatt will only work under root, because it will fully restart your system BlueZ service upon every connection? I had serious issues with that until I switched to bleak.
-
It is simple, minimalistic and does only what you ask for. The bluetooth communication is minimal, it only sends the commands that you explicitly request. Some other libs try to e.g. download everything on first/each connection, which takes forever.
-
Partially refactored towards being Pythonic with no scaffolding code with hidden typos. API expects sane programmers, no babysitting through excess sanitization of unthinkable input combinations.
Compatible devices
I have tested it on Silvercrest RT2000BT. The original library was tested on Eurotronic Comet Blue and Sygonix HT100 BT. It should also work on Xavax Hama (untested).
My own Silvercrest RT2000BT has the issue that it sometimes randomly messes up its programmed weekly schedule. The frequency with which it happens is correlated with the the frequency of bluetooth communication, however it is not caused by this library specifically, because it happens even if I only use the original Eurotronic Android app (any of the 2 versions). The solution for me is to check the schedule every few connections and correct it programatically.
Installation
pip install cometblue-asyncio
Usage
Sorry, so far no more documenation than:
from cometblue_asyncio import CometBlue
help(CometBlue)
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
Hashes for cometblue_asyncio-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f57f011dcb87973d8310917fb0b0b74471f5f7b28e3d4ca451711de40dac5fb |
|
MD5 | c69a073587bee7a727b6ca169441098f |
|
BLAKE2b-256 | d0b0146d4ba01f7c1ac1dde0cf85fb78bba3317ab75ebad6f34066548d849eb4 |