p1monitor
Asynchronous Python client for the P1 Monitor
What it is and what it does
p1monitor is an async Python client for querying P1 Monitor devices—hardware that reads the P1 serial port of smart meters. It wraps the P1 Monitor's HTTP API to fetch real-time meter data: smart meter readings (gas, power consumption/production, tariff info), three-phase voltage and current, and water meter consumption. The library uses aiohttp for non-blocking HTTP requests, making it suitable for integration into async applications like Home Assistant or other home automation platforms.
You instantiate a P1Monitor client with the device's IP and port, then call async methods (smartmeter(), watermeter(), settings(), phases()) to retrieve structured meter data. The library is actively maintained, supports Python 3.11–3.13, and carries no known vulnerabilities.
Use it for:
- Integrate real-time energy consumption data into Home Assistant or other home automation systems.
- Build a dashboard that displays current power draw, gas usage, and tariff information from your smart meter.
- Monitor three-phase voltage and current across your home's electrical installation.
- Track daily and total water consumption when your P1 Monitor supports the water meter API.
- Collect meter readings for billing or energy analysis scripts running on a home server.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous Python client library for reading smart meter and water meter data from P1 Monitor devices via their API.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively under MIT. Install it if you own a P1 Monitor device and need to read its data from Python—particularly for home automation or energy monitoring. The async design and modern Python support make it a straightforward choice for this use case.
Install
p1monitor on PyPI
pip
pip install p1monitoruv
uv add p1monitorpoetry
poetry add p1monitorInstalling p1monitor
Before you install
Low install friction with only two runtime dependencies (aiohttp and yarl). The package is actively maintained with recent commits and supports modern Python versions (3.11+).
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, provided you include the license notice.
Quickstart
pip install p1monitor
import asyncio
from p1monitor import P1Monitor
async def main():
async with P1Monitor(host="192.168.1.2", port=80) as client:
smartmeter = await client.smartmeter()
print(smartmeter)
asyncio.run(main())
Requires Python 3.11 or higher; P1 Monitor device must be accessible at the specified host and port.
Verify before relying
- Whether the package handles authentication or if the P1 Monitor API requires credentials.
- Timeout behavior and retry logic when the P1 Monitor device is unreachable.
- Whether watermeter() and phases() methods are available in all P1 Monitor firmware versions.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — aiohttp, yarl |
| Maintenance | actively maintained — 333 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,450/month — #14,997 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: p1monitor-3.2.0-py3-none-any.whl
Keywords: p1, monitor, power, energy, api, async, client
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
energyzeroAsynchronous Python client for retrieving…
permissive · top 15,000 on PyPI
greeneye_monitorParses and processes binary data packets from…
permissive · top 15,000 on PyPI
python-homewizard-energyAsyncio client library for communicating with…
permissive · top 15,000 on PyPI
pyTibberPython library for querying Tibber's…
copyleft · top 15,000 on PyPI
sense-energyProvides Python access to the Sense Energy…
permissive · top 15,000 on PyPI
pydiscovergyAsynchronous Python client for querying…
permissive · top 15,000 on PyPI
ppk2-apiProvides a Python API to automate power…
copyleft · top 15,000 on PyPI
ovoenergyA Python client library for querying energy…
permissive · top 15,000 on PyPI
pyemvuePyEmVue reads energy usage data from Emporia…
permissive · top 15,000 on PyPI
dlms-cosemA Python library for implementing DLMS/COSEM…
permissive · top 15,000 on PyPI