pyintellicenter
Python library for communicating with Pentair IntelliCenter pool control systems over a local network.
What It Does
pyintellicenter is an async Python library for communicating directly with Pentair
IntelliCenter pool control systems (i5P, i8P, i10P, and similar) over your local network.
It supports both TCP and WebSocket transports, provides real-time push-based equipment
state updates, and is the underlying library powering the
Pentair IntelliCenter Home Assistant integration.
Features
- Dual Transport Support: TCP (port 6681) and WebSocket (port 6680) connections
- Local Communication: Direct connection to IntelliCenter — no cloud required
- Real-time Updates: Push-based notifications via the NotifyList protocol
- Per-object Subscriptions:
subscribe(objnam, callback)on the model controller (and forwarded by the connection handler) registers any number of per-object or all-object listeners with an unsubscribe remover — see docs/API.md - mDNS Discovery: Automatically find IntelliCenter units on your network
- Async/Await: Built on Python asyncio for efficient I/O
- Type Annotations: Full type hints for IDE support and static analysis
- Robust Connection Handling: Automatic reconnection with exponential backoff
- Circuit Breaker Pattern: Prevents connection storms during outages
- Home Assistant Ready: Convenience helpers for integration development, including read-only accessors for temperature, chemistry, sensors, heaters, and schedules
Firmware Update Observations
The typed firmware status and watcher APIs preserve raw progress values and separate availability, acknowledgement, reconnecting, and verified versions. Installation remains disabled for all panels pending validated device support. See firmware observations and installation gates for usage, lifecycle semantics, and remaining device-evidence requirements.
Installation
See INSTALL.md for the complete guide.
pip install pyintellicenter
# or
uv add pyintellicenter
Requires Python 3.13+.
Quick Start
Basic Connection (TCP)
import asyncio
from pyintellicenter import ICModelController, PoolModel, ICConnectionHandler
async def main():
model = PoolModel()
controller = ICModelController("192.168.1.100", model)
handler = ICConnectionHandler(controller)
await handler.start()
print(f"Connected to: {controller.system_info.prop_name}")
print(f"Software version: {controller.system_info.sw_version}")
for obj in model:
print(f"{obj.sname} ({obj.objtype}): {obj.status}")
await controller.set_circuit_state("POOL", True)
await handler.astop()
asyncio.run(main())
await handler.astop() waits for the connection teardown to complete. The
synchronous handler.stop() is the best-effort form: it schedules the teardown
in the background and is safe to call from callbacks.
WebSocket Connection
from pyintellicenter import ICConnection
async def main():
async with ICConnection("192.168.1.100", transport="websocket") as conn:
response = await conn.send_request(
"GetParamList", condition="", objectList=[{"objnam": "INCR", "keys": ["VER", "SNAME"]}]
)
print(response)
Auto-Discovery
from pyintellicenter import discover_intellicenter_units
async def main():
units = await discover_intellicenter_units(discovery_timeout=5.0)
for unit in units:
print(f"Found: {unit.name} at {unit.host}:{unit.port}")
print(f" Model: {unit.model}")
print(f" WebSocket port: {unit.ws_port}")
Usage
See docs/USAGE.md for full usage patterns. The sections below cover the main concepts.
Connection Behavior
Connection Flow:
- Connect — establishes TCP or WebSocket connection
- Initialize — fetches system info and all equipment objects
- Monitor — receives real-time NotifyList push updates
- Keepalive — sends queries every 90 seconds (configurable)
Reconnection Strategy:
- Debounce: 15-second grace period before marking disconnected
- Exponential Backoff: starts at 30 s, increases 1.5x each attempt (max 10 min)
- Circuit Breaker: after 5 consecutive failures, pauses for 5 minutes
- Reset: successful connection resets failure counters
- Reconcile: every (re)connect prunes equipment deleted at the panel from the
model and reports the removals through the update callback as
{objnam: None}entries
Handler Lifecycle:
await handler.start()— connect and wait for the first successful attempt; reconnection then continues in the backgroundhandler.connected—Truewhile the connection is established and the handler has not been stopped (the handler flag or-ed with the live transport, so it is alreadyTrueduring a reconnect's in-start()backfill dispatch)handler.stop()— synchronous best-effort stop (teardown runs in the background; safe from callbacks)await handler.astop()— stop and wait for the full connection teardown
Notification Processing:
- Push notifications are queued (default: 100 items max)
- Queue prevents slow callbacks from blocking I/O
- When full, oldest notifications are dropped (prefers fresh state)
- Both sync and async callbacks are supported
Error Handling
from pyintellicenter import (
ICError, # Base exception
ICConnectionError, # Connection failures
ICResponseError, # Bad response from IntelliCenter
ICCommandError, # Command execution error
ICTimeoutError, # Request timeout
)
try:
await controller.start()
except ICConnectionError as e:
print(f"Connection failed: {e}")
except ICTimeoutError as e:
print(f"Request timed out: {e}")
Equipment Types
| Type | Constant | Description | Common Subtypes |
|---|---|---|---|
| Body | BODY_TYPE |
Body of water | POOL, SPA |
| Pump | PUMP_TYPE |
Variable speed pump | SPEED, FLOW, VSF |
| Circuit | CIRCUIT_TYPE |
Circuit/Feature | GENERIC, LIGHT, INTELLI, GLOW, DIMMER |
| Circuit Group | CIRCGRP_TYPE |
Group of circuits | — |
| Heater | HEATER_TYPE |
Heater | GENERIC, SOLAR, ULTRA, HYBRID |
| Chem | CHEM_TYPE |
Chemistry controller | ICHLOR, ICHEM |
| Sensor | SENSE_TYPE |
Temperature sensor | POOL, AIR, SOLAR |
| Schedule | SCHED_TYPE |
Schedule | — |
| Valve | VALVE_TYPE |
Valve | LEGACY |
Heater Modes
from pyintellicenter import HeaterType
HeaterType.OFF # Heater off
HeaterType.HEATER # Gas/electric heater only
HeaterType.SOLAR_PREFERRED # Solar preferred, heater backup
HeaterType.SOLAR_ONLY # Solar only
HeaterType.ULTRA_TEMP # UltraTemp heat pump only
HeaterType.ULTRA_TEMP_PREFERRED # UltraTemp preferred
HeaterType.HYBRID_GAS # Hybrid heater, gas mode
HeaterType.HYBRID_ULTRA_TEMP # Hybrid heater, heat pump mode
HeaterType.HYBRID_HYBRID # Hybrid heater, hybrid mode
HeaterType.HYBRID_DUAL # Hybrid heater, dual mode
# ... and more
Light Effects
from pyintellicenter import LIGHT_EFFECTS
# Available effects for IntelliBrite/MagicStream lights
# PARTY, ROMAN, CARIB, AMERCA, SSET, ROYAL, BLUER, GREENR, REDR, WHITER, MAGNTAR
await controller.set_light_effect("C0003", "PARTY")
API Reference
Full API reference lives in docs/. Key entry points:
| Class / Function | Purpose |
|---|---|
ICConnectionHandler |
Auto-reconnection wrapper with lifecycle callbacks |
ICModelController |
State management and all convenience helpers |
ICBaseController |
Basic command handling and metrics |
ICConnection |
Low-level transport (TCP or WebSocket) |
PoolModel |
Collection of all pool equipment objects |
PoolObject |
Individual equipment item |
discover_intellicenter_units() |
mDNS discovery of IntelliCenter units on LAN |
See docs/API.md for the detailed per-class reference.
Architecture
+----------------------------------------------------------+
| ICConnectionHandler |
| (Auto-reconnection, callbacks) |
+----------------------------------------------------------+
| ICModelController |
| (State management, helper methods) |
+----------------------------------------------------------+
| ICBaseController |
| (Command handling, metrics) |
+----------------------------------------------------------+
| ICConnection |
| (Transport selection, flow control) |
+----------------------+-----------------------------------+
| ICProtocol | ICWebSocketTransport |
| (TCP transport) | (WebSocket transport) |
+----------------------+-----------------------------------+
| Layer | Class | Purpose |
|---|---|---|
| Handler | ICConnectionHandler |
Auto-reconnection, lifecycle callbacks |
| Controller | ICModelController |
State management, convenience methods |
| Controller | ICBaseController |
Basic command handling, metrics |
| Connection | ICConnection |
Transport selection, request flow control |
| Transport | ICProtocol |
TCP communication (port 6681) |
| Transport | ICWebSocketTransport |
WebSocket communication (port 6680) |
| Model | PoolModel |
Equipment collection |
| Model | PoolObject |
Individual equipment item |
Development
See docs/DEVELOPMENT.md. In short:
git clone https://github.com/joyfulhouse/pyintellicenter.git
cd pyintellicenter
uv sync --extra dev
uv run pytest
uv run ruff check
uv run mypy src/pyintellicenter
Support
- Join the JoyfulHouse Discord for support and discussion across all JoyfulHouse Home Assistant integrations and libraries.
- Issues: https://github.com/joyfulhouse/pyintellicenter/issues
- PyPI: https://pypi.org/project/pyintellicenter/
Support Development
This library powers the Pentair IntelliCenter Home Assistant integration and is maintained in spare time with real hardware and tooling costs behind every release. If it is useful to you, please consider supporting its development:
License
This project is licensed under the MIT License — see LICENSE for details.
Related Projects
- Pentair IntelliCenter — the Home Assistant integration built on this library.
- node-intellicenter — Node.js library (protocol reference).
Built with Omnigent — the open-source AI agent framework and meta-harness.
Metadata
Release files for pyintellicenter 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyintellicenter-0.3.0.tar.gz | 100.4 kB | With provenance | Details for pyintellicenter-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyintellicenter-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pyintellicenter-0.3.0-py3-none-any.whl |
Total release size: 218.1 kB
Release files / pyintellicenter-0.3.0.tar.gz
| Download URL | pyintellicenter-0.3.0.tar.gz |
|---|---|
| Size | 100.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13f96a1b9028f53980b566db10fdcb36487ee154a099987067a62d958740f026
|
|
BLAKE2b-256 checksum How to use checksums |
4331c536f6f0683b8a0a112691dcd1822a9fc54f8a7da46b2e3142d1d172ebb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 22, 2026.
Transparency logRelease files / pyintellicenter-0.3.0-py3-none-any.whl
| Download URL | pyintellicenter-0.3.0-py3-none-any.whl |
|---|---|
| Size | 117.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebff3b3138429fcd56b0dfe83506648a58014211e0bd9da57f3d84979aa9f239
|
|
BLAKE2b-256 checksum How to use checksums |
2cd5ff05941815b6aedeefee8cb7551d4826d68f3f4564792fcf57f8bfd7097c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 22, 2026.
Transparency logSecurity for pyintellicenter 0.3.0
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.
Attestation for pyintellicenter-0.3.0.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 22, 2026.
Transparency logA 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.