Skip to main content

Control Unipi I/O directly with MQTT commands.

Project description

coverage-badge CI Python 3.8 Python 3.9 Python 3.10 Python 3.11 Python 3.11

license-url PyPi downloads Typing: strict Code style: black Code style: Ruff

Unipi Control

Unipi Control use Modbus for fast access to the I/O and provide MQTT topics for reading and writing the circuits. Optionally you can enable the Home Assistant MQTT discovery for binary sensors, sensors, switches and covers.


For more information please read the documentation at: docs.superbox.one


Getting started

Recommended installation (only for Unipi Neuron)

We have a ready to use SD card image called Unipi Control OS.

Alternative installation with pip (Debian based systems)

Requirements:

Create a virtual environment:

python3 -m venv PATH_TO_VENV

Activate the virtual environment:

source PATH_TO_VENV/bin/activate

Install unipi-control with pip:

pip install unipi-control

Copy the config files to /etc/unipi and configurate the /etc/unipi/control.yaml.

Create the systemd service /etc/systemd/system/unipi-control.service with following content:

[Unit]
Description=Unipi Control
After=multi-user.target

[Service]
Type=simple
ExecStart=PATH_TO_VENV/bin/unipi-control --log systemd
Environment=PYTHONUNBUFFERED=1

[Install]
WantedBy=multi-user.target

Enable and start the systemd service:

systemctl --system daemon-reload
systemctl enable unipi-control.service
systemctl start unipi-control.service

Changelog

The changelog lives in the CHANGELOG.md document. The format is based on Keep a Changelog.

Contributing

We're happy about your contributions to the project!

You can get started by reading the CONTRIBUTING.md.

Donation

We put a lot of time into this project. If you like it, you can support us with a donation.

ko-fi

Extras

We have a Home Assistant blueprint automation to control covers with binary sensors. Take a look in the extras directory.

Additional information

This is a third-party software for Unipi Neuron. This software is NOT from Unipi Technology s.r.o..

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unipi-control-3.0.0.tar.gz (78.3 kB view details)

Uploaded Source

Built Distribution

unipi_control-3.0.0-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file unipi-control-3.0.0.tar.gz.

File metadata

  • Download URL: unipi-control-3.0.0.tar.gz
  • Upload date:
  • Size: 78.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for unipi-control-3.0.0.tar.gz
Algorithm Hash digest
SHA256 100638d623aae59db01326ab1680d66608b0867b7f8e9259f3a44d0944deda7b
MD5 ddbf665cbc06d90642210de487f18579
BLAKE2b-256 46b93c9af1c8337c98a3c56bad13e2cac3fdd71c21d4cdef52f7437ca3a9aa9d

See more details on using hashes here.

File details

Details for the file unipi_control-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unipi_control-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 780c3c60f8197d67f0b1306f218c93a855272e6ba1d453437c873a5f5d53d55b
MD5 64a04c96c9d44fa691f0490a753164a5
BLAKE2b-256 0a8b011857896d9836d60ed263839fb3aa864d8b463671c3775bc87112c90cfe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page