Skip to main content

solem-blip-ble

Python library for the Solem BL-IP Bluetooth irrigation controller.

Protocol sources

Layer Source
Commands (turn on/off, sprinkle, stop, commit) pcman75/solem-blip-reverse-engineering — GATT write 108b0002-..., frame 3105 … + 3b00
Status polling (notify, seq 0x02, active station, remaining time, battery) Live BL-IP V5 hardware validation and capture-backed regression tests; see docs/ble_protocol.md

Turn-off-for-N-days is capped at 15 days per the pcman75 documentation.

Install

pip install solem-blip-ble
# or from GitHub:
pip install "solem-blip-ble @ git+https://github.com/beelzetron/solem-blip-ble.git@main"
# or editable for development (prefer uv; deps are hash-locked via uv.lock):
uv sync --frozen

CI/CD

  • CI: GitHub Actions runs tests (Python 3.11–3.13) and verifies the package builds on every push/PR to main.
  • CD: Creating a GitHub Release publishes the package to PyPI via trusted publishing.

Configure PyPI trusted publishing for this repository: PyPI project → Publishing → Add GitHub Actions publisher (beelzetron/solem-blip-ble, workflow publish.yml, environment pypi).

Usage

from solem_blip_ble import SolemClient, SolemConnectionError

client = SolemClient("AA:BB:CC:DD:EE:FF", bluetooth_timeout=30)
await client.connect()
status = await client.get_status()
await client.sprinkle_station_x_for_y_minutes(1, 5)
await client.stop_manual_sprinkle()
await client.disconnect()

Documentation

Full BLE protocol notes: docs/ble_protocol.md

Validation CLI

The packaged debug tool is the single supported raw capture path:

validate-solem-blip AA:BB:CC:DD:EE:FF --capture --verbose
validate-solem-blip AA:BB:CC:DD:EE:FF --capture --only status
validate-solem-blip AA:BB:CC:DD:EE:FF --capture-off-days 3 --verbose
validate-solem-blip AA:BB:CC:DD:EE:FF --replay btsnoop/captures/capture.jsonl

Regression tests also replay public capture-backed fixtures for V5 firmware, station names, status, and persisted irrigation schedule parsing.

Home Assistant

Used by the Solem BL-IP for Home Assistant integration (HACS).

Credits

Thanks to pcman75 for the original Solem BL-IP command reverse engineering.

Firmware 5 program snapshots and transactional restore

Firmware-5 BL-IP program configuration is represented as a complete raw snapshot of 12 program slots / 84 frames. The public snapshot helpers preserve the raw frames and expose a revision fingerprint so callers can detect stale state before a mutation. Home Assistant currently edits/restores A/B/C while preserving the nine additional slots byte-for-byte.

write_program_frames() is deliberately conservative:

  1. It performs a retry-safe fresh snapshot preflight and checks the caller's expected pre-write revision.
  2. It then opens the non-retryable mutation transaction, enables notifications, writes the requested program blocks and waits for their acknowledgements.
  3. After mutation starts, transport failures are reported as UncertainWrite; the library does not automatically replay writes.
  4. A complete program readback is performed on the mutation connection and must match the caller-provided expected snapshot before the operation is confirmed.

The existing single-program write path (write_irrigation_program(), used by set_irrigation_program()) now sends each of the seven V5 frames in its own fresh BLE session, without a notification subscription. This deliberately keeps that low-level path minimal for Bluetooth-proxy links, but it changes its transport profile from the previous one-session frame sequence and can therefore be slower on a single-connection controller.

An explicit controller rejection is reported as ProgramWriteRejected, a subclass of UncertainWrite. Callers can distinguish the rejection from an unknown transport outcome and refresh/reconcile accordingly; the subtype remains conservative because earlier blocks in a multi-block transaction may already have been acknowledged.

The revision preflight currently occurs on a separate BLE connection before the mutation transaction. It is therefore a stale-state guard, not an atomic same-connection compare-and-swap; callers should keep their own durable journal when they need crash/transport recovery semantics.

The original BL-IP firmware may normalize controller-owned date metadata while programs are written. Applications that build an expected snapshot should avoid replaying stale controller-owned date values and should reconcile only explicitly understood normalization differences.

These write APIs target the original BL-IP running firmware 5.x. BL-IP V2 / firmware 6.x is not supported by this protocol implementation.

Release files for solem-blip-ble 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solem-blip-ble 0.3.1
File Size Uploaded
solem_blip_ble-0.3.1.tar.gz 73.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solem-blip-ble 0.3.1
File Interpreter ABI Platform
solem_blip_ble-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 129.2 kB

Release files / solem_blip_ble-0.3.1.tar.gz

Download URL solem_blip_ble-0.3.1.tar.gz
Size 73.9 kB
Tags Source
SHA-256 checksum
How to use checksums
39f9948c7508cdd8e83044bec469b3376a49fc613e4807d65ef81b9ad3a1d9d6
BLAKE2b-256 checksum
How to use checksums
2c4c18318a79980b54a04094cada207b2eaa1d7fe452268369d6192c17339007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / solem_blip_ble-0.3.1-py3-none-any.whl

Download URL solem_blip_ble-0.3.1-py3-none-any.whl
Size 55.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d3f82050c4f093ec0a880fc43c4d68ab93fdc6b47d96ea7f608faba6802db4b
BLAKE2b-256 checksum
How to use checksums
b10d0fbce6ac0fa9ac3ea528ab8a3f4b2219b89c7a7a9d2e08cf1b32753ef47a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.1.38

2 release files

0.1.36

2 release files

0.1.35

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page