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.4.tar.gz
(16.7 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.4-py3-none-any.whl
(13.9 kB
view details)
File details
Details for the file solaxx3-1.0.4.tar.gz.
File metadata
- Download URL: solaxx3-1.0.4.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4527f8614091e0f75734654c4ee1ef91c7534550dd8936c46b0eac14574f45f1
|
|
| MD5 |
d953f56bf1885d10be30e24f5a831e38
|
|
| BLAKE2b-256 |
d8625bede2f4f5cc6e0b61137c69060ce2d6be6919acbc8bfc60417570aeb5ae
|
File details
Details for the file solaxx3-1.0.4-py3-none-any.whl.
File metadata
- Download URL: solaxx3-1.0.4-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
805fa9eca6c03bee896610bddfaa9567592773b3f1d2b3b628d2d1ae613f7107
|
|
| MD5 |
69329a6310f4001a9da6030cff21d61f
|
|
| BLAKE2b-256 |
6cdc2b52ed6c3d03a66b101f88875012dff1c72b4f7cf7a22ea53821478d68bc
|