Installation
This guide covers how to install the alpha-hwr library and its dependencies.
Prerequisites
- Python 3.13 or higher.
- A supported Bluetooth Low Energy (BLE) adapter (internal or USB dongle).
- Operating System:
- Linux: Recommended for full feature support (especially Schedule downloading).
- macOS: Supported for Control and Telemetry (Schedule download is currently restricted by the OS).
- Windows: Supported for Control and Telemetry.
Pairing / Bonding: The pump usually needs to be paired with the host before telemetry is reliable. If the OS or Grundfos app prompts you to pair on first connection, complete that step before testing the library.
Installing via pip
Note: The package is not yet on PyPI. Installation is currently from source.
Installing from Source
To use the latest development version or contribute to the project:
-
Clone the repository:
-
Create a virtual environment (recommended):
-
Install dependencies:
If
requirements.txtis not present, install the core dependencies: -
Install the package in editable mode:
Platform-Specific Notes
Linux (Raspberry Pi / Debian / Ubuntu)
Bleak (the underlying BLE library) uses BlueZ on Linux. You might need to install development headers:
Permissions:
By default, accessing the Bluetooth adapter requires root privileges. To run scripts without sudo, you can grant the Python interpreter the necessary capabilities:
macOS
On macOS, you must grant Bluetooth Permission to your terminal application (e.g., iTerm2, Terminal.app, VS Code) in System Settings -> Privacy & Security -> Bluetooth.
The first time you run a script, macOS usually prompts you to allow access.