skillfed

nibe

Nibe heatpump communication library

nibe v2.24.0 75.8K downloads/30d#14,675 on PyPI85
Copyleft license LGPL 3 Active released

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 nibe

uv

uv add nibe

poetry

poetry add nibe

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9

Tags

nibe heatpump communicationmodbus heatpump controlnibe heat pump libraryasync heatpump integrationnibegw python librarynibe coil readingheatpump monitoring python
heatpump-controlmodbusasync-io

More Monitoring packages