Control Unipi I/O directly with MQTT commands.
Project description
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:
- Unipi Neuron Kernel Module and Unipi tools (Use the officially APT mirror (https://repo.unipi.technology/debian/) from Unipi Technology)
- Python >= 3.8
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.
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
Built Distribution
File details
Details for the file unipi-control-2.1.0.tar.gz
.
File metadata
- Download URL: unipi-control-2.1.0.tar.gz
- Upload date:
- Size: 77.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0039cc15e46e026c4f77c6528a1278b9c1aa0992a0a01a858f3f64d75f4a2bdf |
|
MD5 | a8082947ac9a7ebb202e53015306c22d |
|
BLAKE2b-256 | 67c83060ef8c2e2b430ff8f43175eeb046ec6d8614c69990f493563dee63ca2a |
File details
Details for the file unipi_control-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: unipi_control-2.1.0-py3-none-any.whl
- Upload date:
- Size: 49.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f31c633812f888c23b0c13d6a0ccb9e078e08f174b28b10d0bd4efd29b31f9 |
|
MD5 | 8e8d1eed16ab8130b88bfaffd5d5dc68 |
|
BLAKE2b-256 | d1531a3f99bdffde1088d2fcc7866ae5c9a2e75af8e744be52650156cdf339be |