Sofar_LSW3 icon indicating copy to clipboard operation
Sofar_LSW3 copied to clipboard

Get MODBUS data from Sofar (K-TLX) inverter through LSW-3 or LSE module

Results 6 Sofar_LSW3 issues
Sort by recently updated
recently updated
newest added

How does it work for you with the lines 157 and 158 of InverterData.py? These lines: pos_ini=str(hex(pini)[2:4].zfill(4)) pos_fin=str(hex(pfin-pini+1)[2:4].zfill(4)) with example configuration: register_start1=0x0484 register_end1=0x0487 For pos_ini this will give the result...

It seems like the inverter sometimes sends invalid data (rarely but happens) which results in this script logging wrong values. Unfortunately we can't stop the inverter from doing that. However...

Please consider to add read/write support for the two mentioned registers. They are useful to control discharge of the battery. If enforced charging to a defined SoC could also be...

register_start1=0x0000 # Inverter register's first MODBUS address for the first register's range. register_end1=0x0027 # Inverter register's last MODBUS address for the first register's range register_start2=0x0105 # Inverter register's first MODBUS...

help wanted

i have 10 LSW-3 i tried your script against one, but i get `Connecting to logger... connected successfully ! *** Chunk no: 0 Sent data: bytearray(b'\xa5\x17\x00\x10E\x00\x00\xcc\r=\xa4\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x03\x00\x00\x00(E\xd4\x00\x15') Received data: b'\xa5\x13\x00\x10\x15\x00r\xcc\r=\xa4\x02\x01\xb8\xb1\x8f\x00-&\x00\x00\xf7\xcd\xb3e\x01\x90\x02\xcd\xc1\xaf\x15' 0x0000...

When enabling MQTT, I'm getting the following error: ``` File "/home/frank/Sofar_LSW3-main/InverterData.py", line 315, in client=paho.Client("inverter") ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 772, in __init__ raise ValueError( ValueError: Unsupported callback API version: version...