nibe
Nibe heatpump communication library
What it is and what it does
Nibe is an async Python library for reading and controlling Nibe heatpumps over three connection protocols: RS485 via a NibeGW gateway (UDP-based), TCP Modbus (for S series models), and serial Modbus (for NIBE MODBUS 40). It abstracts heatpump communication into a model-aware interface where you instantiate a HeatPump object for your specific model (F370, S320, VVM225, etc.), initialize it, subscribe to coil update events, and then read or write individual parameters called coils through a connection object.
The library handles the low-level protocol details—packet construction, Modbus framing, UDP relay through NibeGW—so you work with named coils like 'bt50-room-temp-s1-40033' rather than raw registers. It depends on construct for binary parsing, async_modbus for Modbus protocol, tenacity for retry logic, and async_timeout for timeout management. The code is production-stable, actively maintained, and carries no known vulnerabilities.
Use it for:
- Monitor heatpump operating parameters (temperatures, flow rates, power consumption) in real time via event subscription.
- Integrate Nibe heatpump control into home automation systems (e.g., OpenHab, Home Assistant) over local network.
- Read and adjust heatpump settings (setpoints, operating modes) programmatically via Modbus or NibeGW.
- Log heatpump telemetry to a database or time-series system for performance analysis and diagnostics.
- Build custom dashboards or alerting systems that react to heatpump state changes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Nibe provides async communication with Nibe heatpumps via RS485 (NibeGW), TCP Modbus, or serial Modbus, supporting multiple F, S, SMO, SMOS, VVM, and VVMS series models.
Yes, if you own a supported Nibe heatpump and need programmatic control or monitoring. The library is actively maintained, has no security vulnerabilities, installs cleanly, and supports modern Python versions (3.9–3.14). The copyleft license (LGPL 3) is standard for open-source projects and poses no barrier to personal or commercial use as long as you comply with derivative-work obligations. The main prerequisite is having the appropriate hardware gateway or Modbus interface; without it, the library cannot communicate with your heatpump.
Install
nibe on PyPI
pip
pip install nibeuv
uv add nibepoetry
poetry add nibeInstalling nibe
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release (13 days old) and active repository status. Five runtime dependencies are all well-established async/retry libraries.
License in practice
Licensed under LGPL 3 (copyleft). Derivative works and modifications must be released under the same license; proprietary applications using this library must comply with copyleft obligations.
Quickstart
import asyncio
from nibe.connection.nibegw import NibeGW
from nibe.heatpump import HeatPump, Model
async def main():
heatpump = HeatPump(Model.F1255)
await heatpump.initialize()
connection = NibeGW(heatpump=heatpump, remote_ip="192.168.1.2")
await connection.start()
asyncio.run(main())
Requires a Nibe heatpump with appropriate connection hardware (NibeGW gateway, Modbus interface, or serial adapter) and network/serial connectivity to the device.
Verify before relying
- Whether the library supports reading and writing all coil parameters for each listed heatpump model, or only a subset.
- Performance characteristics when polling many coils simultaneously or at high frequency.
- Compatibility with custom or third-party Nibe hardware variants beyond the documented models.
Package facts
| License | LGPL 3 (copyleft) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — construct, async_modbus, async_timeout, tenacity, exceptiongroup |
| Maintenance | actively maintained — 13 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,843/month — #14,675 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nibe-2.24.0-py3-none-any.whl
Keywords: nibe, modbus, library, nibegw
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
async-modbusAsync ModBus provides an asynchronous Python…
unclear · top 15,000 on PyPI
pystiebeleltronProvides a Python API to communicate with…
permissive · top 15,000 on PyPI
pymodbusPyModbus is a complete Modbus protocol…
permissive · top 5,000 on PyPI
uModbusuModbus is a pure Python implementation of the…
copyleft · top 15,000 on PyPI
goodweConnects to GoodWe solar inverters over local…
permissive · top 15,000 on PyPI
Adax-localA Python library for local communication with…
permissive · top 15,000 on PyPI
minimalmodbusMinimalmodbus provides a Python interface to…
permissive · top 15,000 on PyPI
pyModbusTCPA pure-Python Modbus/TCP client and server…
permissive · top 15,000 on PyPI
huawei-solarProvides a Python interface to read and write…
agpl · top 15,000 on PyPI
smpmgrCLI tool for managing microcontroller firmware…
permissive · top 15,000 on PyPI