Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hcalory_control-0.0.16.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

hcalory_control-0.0.16-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file hcalory_control-0.0.16.tar.gz.

File metadata

  • Download URL: hcalory_control-0.0.16.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.1

File hashes

Hashes for hcalory_control-0.0.16.tar.gz
Algorithm Hash digest
SHA256 4b63f955d7d4d566c1c0851a65a7518189a6f11c6e174697221360db7b942a36
MD5 a2d969e0a5151b86704b306bd48abaf7
BLAKE2b-256 e3ddc2f04d7e4c2be33578d63e590890d45170792a80fada95df85c1bd56d36a

See more details on using hashes here.

File details

Details for the file hcalory_control-0.0.16-py3-none-any.whl.

File metadata

File hashes

Hashes for hcalory_control-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 03acff7eeaa156432b119eb9faaff30ef18dbf01179e1929bb54823aa21ca8ec
MD5 2183b97a999195e9804753731bdee43b
BLAKE2b-256 206e42a9a29ccb9a296281e472b6ad024b30877a75c3b59826d7e61c2658c1d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page