A tool to control Solis Hybrid Inverters
Project description
Solis
This is a Python module to interact with Solis Invertors connected via the Solarman v5 data loggers.
It builds on top of the pysolarmanv5 module to provide structured data output that can be consumed without needing to the know the registers and data formats of the underlying device.
CLI Usage
Usage: solis [OPTIONS] COMMAND [ARGS]...
Options:
--ip TEXT [required]
--serial INTEGER [required]
--port INTEGER
--help Show this message and exit.
Showing stats
$ solis --ip 10.42.2.145 --serial xxxx stats
Serial: xxxx
DSP: 37
Battery Level: 75%
Battery Health: 100%
DC volage 1: 4.2V
DC volage 2: 4.0V
Temperture: 38.5°C
-------
Power Generation Today: 20400Wh
Battery Charge Today: 3300Wh
Battery Discharge Today: 4400Wh
House Load Today: 10100Wh
Grid Imported Today: 4000Wh
Grid Exported Today: 15000Wh
------
Power Generation: 0W
House Load: 276W
Backup Load: 0W
Grid Usage: 3W
Battery charging: -448W
Setting charging from grid
$ solis --ip 10.42.2.145 --serial xxxxx charge
Enabling charging from grid
$ solis --ip 10.42.2.145 --serial xxxxx charge --disable
Disabling charging from grid
Module usage
Due to the overhead of the modbus protocol of reading a small number of registers each time, the module has been designed to read all registers at once using the Solis.async_update()
method, then various properties provide formatted access to relavant registers. e.g.
solis = await Solis.create(ip, serial, port)
await solis.async_update()
print(solis.bastt_change_level)
See solis.py for exposed registers.
Project details
Release history Release notifications | RSS feed
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 solis-0.1.1.tar.gz
.
File metadata
- Download URL: solis-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e096ca8bfdb6baee5c9280c2bdb5f16fc57ea880e7a9d594cf921412e7326ba |
|
MD5 | b76b7d2838930c3cf8559b2ecaa008f9 |
|
BLAKE2b-256 | 30c49b723df0f51eaa8c1f014f58d2e15c228e3aed493829c7b96befd05c0939 |
File details
Details for the file solis-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: solis-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d938c637ff8d5d6875c32ce41573f6a03ac9a8d4db64ba5d2a846ff8ac1eb9ad |
|
MD5 | dd75c011aa03d75023f70d08a8cc92ef |
|
BLAKE2b-256 | 51a6cc3d2f7b016484aca2444b843ed5aae553ac13e013ef188d1804d3aa89ee |