aiounifi
Python library for communicating with UniFi Network Controller API
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and has no known vulnerabilities. It is well-suited for anyone building Python applications that need to communicate with UniFi controllers. The requirement for Python 3.13.0 or later is a constraint to verify against your environment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.13.0 or later; aiohttp, orjson, pyotp, and segno must be installed.
- Low install friction with a pure-Python wheel distribution.
- Active maintenance with a recent release 39 days ago and ongoing commits; the project is not archived and has modest community engagement at 89 stars.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you retain the license notice.
last release 2026-07-06 (39 days) · last repo commit 2026-08-14 · 89 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,666 downloads/mo, #12,239 on PyPI
Alternatives
Verify before relying
pip install aiounifi
import aiounifi
# Requires aiohttp, orjson, pyotp, segno as runtime dependencies
await aiounifi.Controller(host, username, password).login()- Whether the library supports all current UniFi Controller versions or has known compatibility gaps.
- Whether aiohttp, orjson, pyotp, and segno are all required at runtime or if some are optional.
- Performance characteristics and typical response times for common operations.
What it is and what it does
aiounifi is an asynchronous Python client for the UniFi Network Controller API. It wraps HTTP communication with the controller using aiohttp, allowing non-blocking queries and updates to UniFi network devices and settings. The library is designed for integration into home automation systems and other applications that need to monitor or control UniFi networks without blocking the event loop.
The package depends on aiohttp for async HTTP transport, orjson for fast JSON parsing, pyotp for OTP-based authentication support, and segno for QR code generation. It targets Python 3.13 and later, reflecting a focus on modern async patterns. The library is actively maintained and classified as production-stable, making it suitable for production deployments in home automation contexts.
Use it for
- Integrate UniFi network monitoring into home automation platforms.
- Build custom dashboards or management tools that query UniFi controller state asynchronously.
- Automate network device management tasks via Python scripts without blocking.
- Monitor UniFi network metrics and device status in real-time.
- Develop applications that interact with UniFi networks for device discovery or control.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive MIT license, and has no known vulnerabilities. It is well-suited for anyone building Python applications that need to communicate with UniFi controllers. The requirement for Python 3.13.0 or later is a constraint to verify against your environment.
Install
aiounifi on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release 39 days ago and ongoing commits; the project is not archived and has modest community engagement at 89 stars.
Requires Python 3.13.0 or later; aiohttp, orjson, pyotp, and segno must be installed.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you retain the license notice.
Quickstart
pip install aiounifi
import aiounifi
# Requires aiohttp, orjson, pyotp, segno as runtime dependencies
await aiounifi.Controller(host, username, password).login()
Verify before relying
- Whether the library supports all current UniFi Controller versions or has known compatibility gaps.
- Whether aiohttp, orjson, pyotp, and segno are all required at runtime or if some are optional.
- Performance characteristics and typical response times for common operations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.13.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesaiohttporjsonpyotpsegno |
| Maintenance | Actively maintained 39 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,666 / month, #12,239 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/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.13Topic :: Home Automation |
Evidence: aiounifi-92-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 › “unifi controller api client”
- aiounifiAsynchronous Python library for communicating with UniFi Network…
- py-unifi-accessAsync Python client for UniFi Access local API with WebSocket event…
- uiprotectProvides an async Python API and CLI for interacting with UniFi…
Give your agent the search over MCP, or paste the wish link into any chat.
More Home Automation packages
Represents and manipulates IPv4, IPv6, MAC addresses and related network objects; supports CIDR notation, subnetting, set operations, IANA lookups, and DNS reverse generation.
Home Assistant is an open-source home automation platform that centralizes control of smart home devices and automations on a local server or Raspberry Pi, prioritizing local control and privacy over cloud dependency.
Defines finite state machines and statecharts with a declarative Python API, supporting flat states, compound hierarchies, parallel regions, history states, guards, and both sync and async callbacks.
Install it if you need to model workflows, control logic, or any system with discrete states and event-driven transitions — from simple state machines to complex…
A Python library for controlling BlueZ Bluetooth adapters on Linux via the Management API, supporting both synchronous and event-driven command patterns.
An async Python library for controlling and monitoring Homematic and HomematicIP devices through multiple backend systems (CCU3, OpenCCU, Homegear, CUxD, CCU-Jack) using XML-RPC and JSON-RPC protocols.
Install it if you need to control Homematic devices from Python; the only constraint is a requirement for Python 3.14 or later and network access to a compatible…
Provides base classes and utilities for Home Assistant integrations to proxy HTTP and WebSocket traffic through Home Assistant's web server.
Install only if you are building a custom Home Assistant integration; it is not useful as a standalone package.
See also aiohue · aioautomower · uiprotect · py-unifi-access · aiohasupervisor · unifi-discovery · zwave-js-server-python · python-homewizard-energy · python-openevse-http · pyisy