Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for solem-blip-ble 0.3.2b12

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.2b12
File Size Uploaded Provenance Actions
solem_blip_ble-0.3.2b12.tar.gz 108.9 kB With provenance Details for solem_blip_ble-0.3.2b12.tar.gz

Built distribution (wheel)

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

Total release size: 179.5 kB

Release files / solem_blip_ble-0.3.2b12.tar.gz

Download URL solem_blip_ble-0.3.2b12.tar.gz
Size 108.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b92595e85d940501f9fc4fd835d23553d0757764f48f1a756ff0db86e28f3da4
BLAKE2b-256 checksum
How to use checksums
68b8350b602584fa84b668c1d368fcfc6afb4d4a0c878eee68321dfb505b118c
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 Oct 1, 2026.

Transparency log

Release files / solem_blip_ble-0.3.2b12-py3-none-any.whl

Download URL solem_blip_ble-0.3.2b12-py3-none-any.whl
Size 70.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2555ff3cb4d6dae1b2e1f19786d52697cbcb2d89f131ca2b34e752af4975c588
BLAKE2b-256 checksum
How to use checksums
1c48e6ae7c2a7e01a282b9478bc4591d7217679fba3e6a72212e1c86e78748cb
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 Oct 1, 2026.

Transparency log

Security for solem-blip-ble 0.3.2b12

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for solem_blip_ble-0.3.2b12.tar.gz

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 Oct 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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