Read Solax X3 inverter registers via modbus interface (RS-485)
Project description
solax-x3
Read in real-time all parameters provided by Solax X3 solar inverter via its Modbus S-485 serial interface.
Prerequisites
- Solax X3 inverter
- Modbus RS-485 serial adapter/interface
- Modbus cable
- python version >= 3.8
- This python module
Installation
pip install solaxx3
Usage
from solaxx3.solaxx3 import SolaxX3
# adjust the serial port and baud rate as necessary
s = SolaxX3(port="/dev/ttyUSB0", baudrate=115200)
if s.connect():
s.read_all_registers()
available_stats = s.list_register_names()
for stat in available_stats:
print(stat)
battery_temperature = s.read("temperature_battery")
print(f"\n\nBattery temperature: {s.read('temperature_battery')}")
else:
print("Cannot connect to the Modbus Server/Slave")
exit()
Project Link: https://github.com/mkfam7/solaxx3
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
solaxx3-1.0.5.tar.gz
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
solaxx3-1.0.5-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file solaxx3-1.0.5.tar.gz.
File metadata
- Download URL: solaxx3-1.0.5.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
639848070c8b000762b8edf0d208d500bcedc711ac48e9b94225c5bbedeb8748
|
|
| MD5 |
0f1c7ef07cc8e0864a4ac5159f592e24
|
|
| BLAKE2b-256 |
6bf8427a6e1e60074d6bf017092bb4e5c8cdb3458c068c25a7051c326f848df4
|
File details
Details for the file solaxx3-1.0.5-py3-none-any.whl.
File metadata
- Download URL: solaxx3-1.0.5-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23df7180e766f513c37b13d8a88178127afe946c879100c08a8f882c477f8d88
|
|
| MD5 |
6ee8511ab4b7ad891712ad996e8e6892
|
|
| BLAKE2b-256 |
0302e384b0d59791091762223538415936e9f314ce2aea5ba653975b7af5789e
|