pyotgw
A library to interface with the opentherm gateway through serial or network connection.
Decision gist · record as of 2026-08-14
Yes. pyotgw is actively maintained, has no known vulnerabilities, low install friction, and is marked Production/Stable. Install it if you own an OpenTherm Gateway and need to control or monitor a compatible heating system from Python. The copyleft license is standard for this project type and poses no barrier for most users. The single dependency (pyserial-asyncio-fast) is lightweight and well-established.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a physical OpenTherm Gateway device connected via serial port or network.
- Python 3.8 or later.
- Low install friction with a single runtime dependency (pyserial-asyncio-fast).
License · maintenance · safety
GPLv3+ (copyleft) — Licensed under GPLv3+, a copyleft license. Any derivative work or modification must be released under the same license terms, and source code must remain available.
last release 2026-01-30 (196 days) · last repo commit 2026-04-10 · 28 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 73,585 downloads/mo, #14,970 on PyPI
Alternatives
Verify before relying
import asyncio
from pyotgw import OpenThermGateway
async def main():
gateway = OpenThermGateway()
status = await gateway.connect('/dev/ttyUSB0', timeout=5)
print(status)
await gateway.disconnect()
asyncio.run(main())- Whether the library fully supports all OpenTherm features or only those tested by the maintainer's hardware
- Performance characteristics under high-frequency polling or many concurrent subscriptions
What it is and what it does
pyotgw is an async Python library that bridges your code to an OpenTherm Gateway device, a hardware interface for reading and controlling modern heating systems. It maintains a persistent connection to the gateway over serial or network, caches status information, and allows you to query boiler parameters, set control setpoints, and manage alternative data-IDs for unsupported features. The library was originally written for Home Assistant but works as a standalone tool for any heating system automation.
The core workflow is straightforward: instantiate an OpenThermGateway object, call connect() with your device port and optional timeout, then read cached status via methods like get_status() or subscribe to changes via callbacks. The library handles reconnection automatically if the gateway becomes unresponsive, and exposes methods to manipulate central heating enable bits and manage unsupported data-IDs. All operations are coroutines, so you integrate it into an async event loop.
Use it for
- Integrate a heating system into a Home Assistant smart home setup for remote temperature control and monitoring
- Build a standalone daemon to log boiler parameters (flow temperature, pressure, flame status) to a database
- Automate heating schedules based on occupancy or weather data by setting control setpoints programmatically
- Monitor and alert on boiler faults or unusual operating conditions via the gateway's status reports
- Develop a custom thermostat UI that reads live heating data and sends commands to the boiler through the gateway
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pyotgw is actively maintained, has no known vulnerabilities, low install friction, and is marked Production/Stable. Install it if you own an OpenTherm Gateway and need to control or monitor a compatible heating system from Python. The copyleft license is standard for this project type and poses no barrier for most users. The single dependency (pyserial-asyncio-fast) is lightweight and well-established.
Install
pyotgw on PyPI
Before you install
Low install friction with a single runtime dependency (pyserial-asyncio-fast). The package is actively maintained with recent commits and marked as Production/Stable. No known vulnerabilities.
Requires a physical OpenTherm Gateway device connected via serial port or network. Python 3.8 or later.
License in practice
Licensed under GPLv3+, a copyleft license. Any derivative work or modification must be released under the same license terms, and source code must remain available.
Quickstart
import asyncio
from pyotgw import OpenThermGateway
async def main():
gateway = OpenThermGateway()
status = await gateway.connect('/dev/ttyUSB0', timeout=5)
print(status)
await gateway.disconnect()
asyncio.run(main())
Verify before relying
- Whether the library fully supports all OpenTherm features or only those tested by the maintainer's hardware
- Performance characteristics under high-frequency polling or many concurrent subscriptions
Package facts
| License | GPLv3+ copyleft |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepyserial-asyncio-fast |
| Maintenance | Actively maintained 196 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,585 / month, #14,970 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Topic :: Software Development :: Libraries |
Evidence: pyotgw-2.2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentherm gateway python”
- pyotgwpyotgw is a Python library that communicates with an OpenTherm…
- grpc-gateway-protoc-gen-openapiv2Generates Python support code for gRPC Gateway protoc annotations,…
- aioruuvigatewayAn asyncio-native library for fetching data from Ruuvi Gateway…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also pyatag · python-tado · simple-pid · python-bsblan · pymysensors · nexia · pypck · myPyllant · pyswitchbee · millheater