[![Typing Status][typing-shield]][typing-url]
Asynchronous Python client for the Omnik Inverter.
About
A python package with which you can read the data from your Omnik Inverter. Keep in mind that this repository uses webscraping, this is not a neat way of data processing but due to the lack of a local API this is the only option.
NOTE: In mid-2021, manufacturer Omnik was declared bankrupt. You can find more information about what your alternatives are here.
Supported models
| Brand | Model | Datasource |
|---|---|---|
| Omnik | Omniksol 1000TL | JS |
| Omnik | Omniksol 1500TL | JS |
| Omnik | Omniksol 2000TL | JS |
| Omnik | Omniksol 2000TL2 | JSON |
| Omnik | Omniksol 2500TL | HTML |
| Omnik | Omniksol 3000TL | TCP |
| Omnik | Omniksol 4000TL2 | JS |
| Ginlong | Solis-DLS-WiFi | JSON/HTML |
| Hosola | 1500TL | JS |
| Hosala | Bright 2500MTL-S | JS |
| Bosswerk | BW-MI300 | HTML |
| Bosswerk | BW-MI600 | HTML |
| Sofar | 3600TLM | HTML |
| Sofar | 2200TL | JS |
| Huayu | HY-600-Pro | HTML |
Installation
pip install omnikinverter
Usage
import asyncio
from omnikinverter import OmnikInverter
async def main():
"""Show example on getting Omnik Inverter data."""
async with OmnikInverter(
host="example_host",
source_type="javascript",
username="omnik",
password="inverter",
) as client:
# Fetch both the inverter and device data with a single request
data = await client.data()
print(data.inverter)
print(data.device)
# Or fetch them separately (one request each)
inverter = await client.inverter()
device = await client.device()
if __name__ == "__main__":
asyncio.run(main())
For the source type you can choose between: javascript (default), json, html and tcp.
Data
You can read the following data with this package:
Inverter
- Serial Number
- Inverter Model
- Firmware Version - Main
- Firmware Version - Slave
- Alarm Code
- Rated Power (W)
- Current Power Production (W)
- Day Energy Production (kWh)
- Total Energy Production (kWh)
On the tcp source type you can also find:
- Inverter temperature;
- Voltage and current for the DC input strings (up to 3)
- Voltage, current, frequency and power for all AC outputs (also up to 3)
- Total number of runtime hours.
Device
- Signal Quality (only with JS)
- Firmware Version
- IP Address
Use cases
This python package is used in the following projects, among others:
- home-assistant-omnik-inverter by Robbin Janssen
Contributing
This is an active open-source project. We are always open to people who want to use the code or contribute to it.
We've set up a separate document for our contribution guidelines.
Thank you for being involved! 😍
Setting up development environment
The simplest way to begin is by utilizing the Dev Container feature of Visual Studio Code or by opening a CodeSpace directly on GitHub. By clicking the button below you immediately start a Dev Container in Visual Studio Code.
This Python project relies on uv as its dependency manager, providing comprehensive management and control over project dependencies.
You need at least:
- Python 3.12+
- uv
Installation
Install all packages, including all development requirements:
uv sync --locked
uv creates a project virtual environment in .venv and installs the locked dependencies.
Prek
This repository uses the prek framework, all changes are linted and tested with each commit. To setup the prek check, run:
uv run prek install
And to run all checks and tests manually, use the following command:
uv run prek run --all-files
Testing
It uses pytest as the test framework. To run the tests:
uv run pytest
To update the syrupy snapshot tests:
uv run pytest --snapshot-update
License
MIT License
Copyright (c) 2021-2026 Klaas Schoute
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Metadata
Release files for omnikinverter 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| omnikinverter-2.0.0.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omnikinverter-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.6 kB
Release files / omnikinverter-2.0.0.tar.gz
| Download URL | omnikinverter-2.0.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4305e259c6fd1e9d894761f1fa37b26790a528d19e1f3a3b1fe010b78d5349bc
|
|
BLAKE2b-256 checksum How to use checksums |
e4999de7428cdadc2707f31e1838f8b1ef5ddc8c8be6d0ddc5646e8195dd4a1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / omnikinverter-2.0.0-py3-none-any.whl
| Download URL | omnikinverter-2.0.0-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfbf7a125b8fc058b15d9bd858b9f784d36b77a1340ee5608aeb7df76064124e
|
|
BLAKE2b-256 checksum How to use checksums |
84ec00da8a6aeb5cd55c61086b4168f63e692d77ff120d62f7f5e81ee492a0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency log