/pyunifi

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Python Unifi API wrapper (pyunifi)

What

A python wrapper for the unifi controller API

More complete alternatives for php: https://github.com/Art-of-WiFi/UniFi-API-client/

Why

Because it makes it much easier to write automations (e.g. do backups , add/delete/enable/disable FW/traffic rules). This can be used to better interface with e.g. home automation.

How

Requirements

  1. Unifi controller
  2. local admin user account on controller
  3. python
  4. poetry

How to install

From source

git clone <repourl> destdir
cd destdir
poetry install
UNIFI_USER=<user> UNIFI_PASSWORD=<unifipwd> UNIFI_PASSWORD=<ip/host of controller> poetry run python controller-cli.py

pip wheel

TODO