A tool for controlling Hcalory diesel heaters over Bluetooth.
Project description
hcalory-control
A little tool to control BLE-capable Hcalory heaters. This has only been tested on the Hcalory W1 model.
CLI Usage
❯ hcalory-control --help
usage: hcalory-control [-h] --address ADDRESS {start_heat,stop_heat,up,down,gear,thermostat,pump_data}
positional arguments:
{start_heat,stop_heat,up,down,gear,thermostat,pump_data}
options:
-h, --help show this help message and exit
--address ADDRESS Bluetooth MAC address of heater
To get the current state of the heater, use pump_data
:
❯ hcalory-control --address ec:b1:c3:00:4d:61 pump_data
{
"ambient_temperature": 87,
"body_temperature": 226,
"heater_mode": "thermostat",
"heater_setting": 74,
"heater_state": "running",
"voltage": 13
}
Temperature/"gear" mode changes are done by incrementing/decrementing, not by setting the absolute value you want:
❯ hcalory-control --address ec:b1:c3:00:4d:61 up
Before command:
{
"ambient_temperature": 86,
"body_temperature": 219,
"heater_mode": "thermostat",
"heater_setting": 74,
"heater_state": "running",
"voltage": 13
}
After command:
{
"ambient_temperature": 86,
"body_temperature": 219,
"heater_mode": "thermostat",
"heater_setting": 75,
"heater_state": "running",
"voltage": 13
}
Usage as a library
The main
and run_command
functions should serve as a decent example. Getting the current running state out of these heaters is weird. In order to get your notification on the read characteristic to give you anything, you have to ask the heater to send something by writing to the write characteristic. The official app does this once a second, which seems wildly inefficient to me. I've no idea why they didn't just make the heater push data out on its own when things changed.
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 hcalory_control-0.0.3.tar.gz
.
File metadata
- Download URL: hcalory_control-0.0.3.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099349b1b98b68ccc75c8cfabc715f9618049d08637b3ce55aadb83eae6880e2 |
|
MD5 | 8aebdb1bbfcf56d4d4ce6937ac9f5071 |
|
BLAKE2b-256 | b88ec366947a5713bcf17a592f9489481dd4a8ee176bb41b7208fcabcefb235e |
File details
Details for the file hcalory_control-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: hcalory_control-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f0aa67d45b63c7802554dc5da36758d80144dbc7515bc416eb4afc943b7ac8 |
|
MD5 | 9d467b43674dd738f195af75fa1ee359 |
|
BLAKE2b-256 | f5f4e986745cabdbffa64bc2c3b70c6cf40c4a41701bc28fc75c185e77738e0a |