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.3.tar.gz
(17.4 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.3-py3-none-any.whl
(14.5 kB
view details)
File details
Details for the file solaxx3-1.0.3.tar.gz.
File metadata
- Download URL: solaxx3-1.0.3.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70803bb3ba28faba63e14484078f1455ab9e1d32e9691ade85f41458d9f14e43
|
|
| MD5 |
efae9410cd1ff8895dbb9a0de5c2c23d
|
|
| BLAKE2b-256 |
382f1cd96c9f61037562010a583663f2962769412ba5bd1f47513bb720aed628
|
File details
Details for the file solaxx3-1.0.3-py3-none-any.whl.
File metadata
- Download URL: solaxx3-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b77babe40be4f080d9ab2bd97d096e60f1411338565ea5fd42c64d15c4b13d4e
|
|
| MD5 |
7474497b517e7aff671c77af5cd237a4
|
|
| BLAKE2b-256 |
2e8b5c6c6f42de6e69b5f4d789439ca83884a291a66f21623d343d8259576f31
|