logo elektroda
logo elektroda
X
logo elektroda

Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90]

starob 98013 318
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #241 20217782
    ilex
    Level 11  
    starob wrote:
    ilex wrote:
    Anyone have an idea?

    If it's Ktl-G3 or HYD, it has a different register addressing. Get the modbus register for your inverter and adjust config.cfg - if you have entered the login details correctly.


    It is still the same SofarSolar KTL-X inverter, I only changed the logger from the WiFi version to the LAN version
  • ADVERTISEMENT
  • #242 20225388
    Emi_B
    Level 9  
    ilex wrote:
    I mounted the LSE-3


    What software version of this logger?

    Added after 8 [minutes]:

    ilex wrote:
    starob wrote:
    ilex wrote:
    Anyone have an idea?

    If it's Ktl-G3 or HYD, it has a different register addressing. Get the modbus register for your inverter and adjust config.cfg - if you have entered the login details correctly.


    It is still the same SofarSolar KTL-X inverter, I only changed the logger from the WiFi version to the LAN version


    It was the same for me and such answers on the forum that it is the inverter's fault only waste time unnecessarily. For me, replacing the logger with another copy with newer software helped. Details are in this thread.
  • #243 20225486
    ilex
    Level 11  
    Hi. Thanks for the hint. Can you tell me what firmware number in LSE-3 is working properly? Regards.
  • #244 20227407
    Emi_B
    Level 9  
    ilex wrote:
    Hi. Thanks for the hint. Can you tell me what firmware number in LSE-3 is working properly? Regards.


    Although this information is given earlier in this thread, I will repeat: "Firmware version: ME_08_2701_2.06 - with this firmware it works OK, the previous version ME_0D_2701_5.08 did not work properly."
  • #245 20227414
    ilex
    Level 11  
    You don't have this version in the file?
  • #246 20234403
    Emi_B
    Level 9  
    ilex wrote:
    You don't have this version in the file?


    Unfortunately, I have to worry you, but neither the sellers nor the manufacturer attach the software to each copy of the logger ;-p

    ps. you did not answer the question what version of the software you have, it would help other forum users in diagnosing the problem
  • ADVERTISEMENT
  • #247 20234735
    ilex
    Level 11  
    1. Just asked :)
    2. I can't provide (yet) the version of the LSE-3 software because I went back to the working LSW-3 for the moment.
  • #248 20243296
    ilex
    Level 11  
    Originally, I had LSE-3 in version ME_0A_2701_5.02. I updated to ME_08_2708_2.06 and confirm, everything works fine :)
  • ADVERTISEMENT
  • #249 20243502
    starob
    Level 29  
    ilex wrote:
    Originally, I had LSE-3 in version ME_0A_2701_5.02. I updated to ME_08_2708_2.06 and confirm, everything works fine


    Where are you downloading the update from?
  • #251 20279744
    spin722
    Level 9  
    Best wishes on the occasion of Poland's Independence Day!
    Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90]


    I have a request - can someone provide a link to the website or phone number to AZZURRO Poland? I do not know yet if I, as a user of AZZURRO production in Ukraine, can I get a consultation from them?
    I thank you in advance.
  • #252 20295845
    mariuszml
    Level 12  
    Code: Javascript
    Log in, to see the code


    If anyone is interested, I'm posting a compact class I wrote for Nodejs for sequential reading of data from one or many Sofar inverters via Modbus TCP (requires 'modbus-serial' installed) and power control. I use the USR-DR302 TCP-Modbus RTU converter for reading/settings, it works flawlessly with my 36000K-TL.
  • #253 20295865
    xury
    Automation specialist
    Well, I made some extra money in case of W write FC13. :P This is hard to achieve on the standard modbus protocol, which does not provide for this.
  • #254 20302815
    muppel2
    Level 1  
    Hello,
    I can only write in English, but I understand replies in Polish:
    We have a Sofar ME 5-20KTL-3PH inverter with an LSW-3 data logger and I tried to use https://github.com/MichaluxPL/Sofar_LSW3 to read directly via LAN.

    But this tool needs two base and end addresses:
    register_start1=0x0000
    register_end1=0x0027
    register_start2=0x0105
    register_end2=0x0114

    Maybe somebody knows these values?

    Thank you!!
  • #255 20337914
    mariuszml
    Level 12  
    I have a question, does anyone know what the Polish standard says about exceeding the voltage of 253V and the behavior of inverters in such a situation?

    Apparently, if the "average of measurements for the last 10 minutes" exceeds 253V, the voltage should be adequately reduced, of course by limiting the inverter power.

    The question is how often (every second) the measurements taken to calculate this average should be sampled? I understand that in the case of a 3-phase inverter, the same rule should be calculated in parallel for each phase? I will be grateful for the guidance. I am most interested in information about this sampling. I suppose that it may result from other standards if it is not explicitly quoted in the standard for inverters. I will be grateful for your response.
  • ADVERTISEMENT
  • #256 20338668
    akrawiec
    Level 15  
    muppel2 wrote:

    Maybe somebody knows these values?


    I have HYD 5KTL-3PH inverter.

    These adresses was good for me:
    register_start1=0x0484
    register_end1=0x04a4
    register_start2=0x0690
    register_end2=0x0693
    register_start3=0x0584
    register_end3=0x0586
    registerhw_start=0x0440
    registerhw_end=0x0465

    I have modified InverterData.py and SOFARMap.xml as well.
    There is an output of the program, with adresses of registers:

    *** Chunk no: 0
    Modbus request: 0103 0484 0021 c4cb
    0x0484 - Grid frequency: 50.01Hz
    0x0485 - Output active power: 0W
    0x0486 - Output reactive power: 0.4kVar
    0x048D - L1 Voltage: 226.5V
    0x048E - L1 Current: 0.01A
    0x0498 - L2 Voltage: 227.0V
    0x0499 - L2 Current: 0.01A
    0x04A3 - L3 Voltage: 223.0V
    0x04A4 - L3 Current: 0.01A
    *** Chunk no: 1
    Modbus request: 0103 0690 0004 44ac
    0x0690 - Today production: 0Wh
    0x0691 - Today production: 0Wh
    0x0692 - Total production: 0.0kWh
    0x0693 - Total production: 574.2kWh
    *** Chunk no: 2
    Modbus request: 0103 0584 0003 452e
    0x0584 - PV1 Voltage: 14.8V
    0x0585 - PV1 Current: 0.0A
    0x0586 - PV1 Power: 0W

    *** JSON output:
    {
    "Grid frequency (Hz)": 50.01,
    "Output active power (W)": 0,
    "Output reactive power (kVar)": 0.4,
    "L1 Voltage (V)": 226.5,
    "L1 Current (A)": 0.01,
    "L2 Voltage (V)": 227.0,
    "L2 Current (A)": 0.01,
    "L3 Voltage (V)": 223.0,
    "L3 Current (A)": 0.01,
    "Today production (Wh)": 0,
    "Total production (kWh)": 574.2,
    "PV1 Voltage (V)": 14.8,
    "PV1 Current (A)": 0.0,
    "PV1 Power (W)": 0
    }
    May be these informations will help you.
  • #257 20362752
    tymenus
    Level 11  
    SOFAR 8.8KTLX-G3 inverter
    FW: V003, SOFT:V010002, L010002, 0601, G010006

    Logger LSW3_15_270A_1.50
    S/N: 2342xxxxxxxxx

    In addition, a Sofar meter with transformers for home consumption and supply to the network, maybe a data scraper can also be made for it - DTSD422-D3 meter
    FW. LSW3_15_E02D_1.05 


    A request to direct what registers should be entered in the script from MichaluxPL
    https://github.com/MichaluxPL/Sofar_LSW3


    the following do not reflect the data
    [SofarInverter]
    inverter_ip=192.168.88.105
    inverter_port=8899
    inverter_sn=2342738060
    register_start1=0x0480
    register_end1=0x04BC
    register_start2=0x0580
    register_end2=0x05B3
    registerhw_start=0x680
    registerhw_end=0x069B
    lang=EN
    verbose=1


    Connecting to logger... connected successfully !
    Traceback (most recent call last):
      File "C:SOFARInverterData.py", line 141, in 
        crc=binascii.unhexlify(str(hex(libscrc.modbus(businessfield))[4:6]) str(hex(libscrc.modbus(businessfield))[2:4])) # CRC16modbus
    binascii.Error: Odd-length string


    Connector for 16 pin, maybe someone will tell you how to get to it and download data? Is it some modification of RS485?

    Added after 1 [hours] 37 [minutes]:
    Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90]
    Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90]


    Added after 10 [hours] 50 [minutes]:
    Another update using a simplified script https://github.com/Nedel124/Sofar_G3_LSW3
    Data is downloaded:
    Sofar_G3_LSW3-main>.InverterHWData.py
    PV_Generation_Today:0.37kW
    PV_Generation_Total:82.0kW
    P1:390.90000000000003V
    P1:2.09A
    P1:0.81kW
    R:225.0V
    R:1.34A
    S:229.8V
    S:1.33A
    T:229.60000000000002V
    T:1.35A
  • #258 20365094
    akrawiec
    Level 15  
    tymenus wrote:
    Connector for 16 pin, maybe someone will tell you how to get to it and download data? Is it some modification of RS485?


    It is standard RS485.
    You connect to 3 pins:
    pin 1 = A or RS485+
    pin 3 = B or RS485-
    pin7 = GND (ground) (optional but recommended)

    pins 2 and 4 are provided for connection to the next inverter for ease of installation.
  • #259 20370648
    ijkowal
    Level 11  
    akrawiec wrote:
    tymenus wrote:
    Connector for 16 pin, maybe someone will tell you how to get to it and download data? Is it some modification of RS485?


    It is standard RS485.
    You connect to 3 pins:
    pin 1 = A or RS485
    pin 3 = B or RS485-
    pin 7 = GND (ground) (optional but recommended)

    pins 2 and 4 are provided for connection to the next inverter for ease of installation.


    GND rather mandatory, otherwise there will be problems with interference. In addition, in the summer when there are storms, it is worth considering using an RS-485 converter with isolation or additional overvoltage protection. Standard integrated RS-485 transceivers are resistant to overvoltages of several volts (you can buy other integrated circuits resistant to severe overvoltages); additionally, PV inverters usually have their own grounding. A nearby lightning strike can cause damage (usually transceivers fail) if there is a significant voltage difference between the inverter ground and the building ground.
  • #260 20451811
    Czita28
    Level 11  
    Hello.
    Someone is reading the dtsd422-d3 meter via RS485. I wanted to integrate it with HA?
  • #261 20479989
    lpinca
    Level 2  
    Hello,
    my question is probably unrelated so feel free to ignore me. I found this thread
    on Google while searching for the ME_0D_2701_5.08 firmware.

    I bought an LSE-3 logger to replace an LSW-3 logger. The LSW-3 logger works.
    The LSE-3 logger does not work. It connects to the remote server but it seems
    that it cannot read data from the inverter.

    The inverter is rebranded by Zucchetti (ZCS Azzurro). The LSW-3 logger serial
    number is 179XXXXXXX and the firmware version is LSW3_15_FFFF_1.0.57. The LSE-3
    logger serial number is 210XXXXXXX and the firmware version is ME_0D_2701_5.08.

    The only difference I found is that the value of the "Inverter Brand Select" in
    the configuration of the LSW-3 logger is "Sofar" whilst the value of the
    "Inverter Brand Select" in the configuration of the LSE-3 logger is empty and
    I can't change it, there is no value to select.

    Do you know if I can fix the issue with a different firmware version? If so do
    you know where I can find it? I saw people mentioning the ME_08_2701_2.06 version
    but I can't find it anywhere.

    Thank you.
  • #263 20514995
    asyriusz
    Level 15  
    Hello
    I have a question.
    Maybe it's stupid but I don't get this RS485 at all.
    I have a meter on the building's power supply, it has an RS485 A and B MODBUS output
    I think I was able to connect.
    But what parameters should I set in the meter to communicate with the inverter
    I can set it up
    ADDRESS
    SPEED
    PARITY
    STOP BIT
    Will the inverter use the data thrown from the meter and will I see it in the Solar MAN application???
    Please advise if this can be done and how.
    Regards
  • #264 20515008
    mariuszml
    Level 12  
    I have a question about optimizing the RS485 serial connection of six Sofars.

    Currently, the maximum speed that I can achieve on the RS485 reader is 10500 baud. I wonder if this relatively low value (reader max. several hundred kilobaud) at a relatively short distance (last Sofar at 8 meters) is not related to the resistance, which I did not set at all. The specifications of the inverters show that they work in half-duplex mode (two wires are used for communication), so "according to the art" resistors should be used on the terminals of the first and last inverter.

    I have the following questions:

    - what resistors to use assuming the length as above and the CAT6 cable used to connect them (the next inverters are at a more or less similar distance from each other)?
    - possibly if someone figured out a special red switch on the Sofar control board described as SWT2 (termination resistor). It has two jumpers that can be set in "up/down" positions.
    - I do not have a GND wire connected between the reading device and the first inverter - can this also affect the speed obtained?

    In general, RS works fine for me, I just wanted to increase the frequency of readings and that's why I need this optimization. Thanks in advance for your suggestions
  • #265 20539090
    laciaty1990
    Level 14  
    Hey dear colleagues
    Is it possible to easily integrate KTL-X with HomeAssistant (the latest HAos 7.5 installed natively - so I can't run newer python or scripts there, I don't want a virtual machine or docker) based on Paweł Karpiński's project (https://github.com/pawelka / sofarsolar_esp_rs485_logger) but using an ethernet rs485 converter ready??

    https://allegrolokalnie.pl/oferta/konwerter-rs485-ethernet-zrh
    or
    https://allegro.pl/oferta/usr-tcp232-304-rs485-to-ethernet-11687116141

    will it be much of a hassle? I'm weak in Linux topics :/ And the lsw3 logger with the solarman cloud drives me crazy. (I tried to integrate according to Mr. Paweł's earlier abandoned project, i.e. LSW-3 integration with Pawelek's Homeassistant, but version 1.1 requires python 3, which is missing in native HAos, then I reinstalled from forc because someone made a better integration, but it still didn't work. Michaelux integration also doesn't work because it requires python3 and HA on docker or virtual machine).

    Integration with the USB-rs485 converter would also be ok, because I have 5 meters to the inverter from the computer with HAos. As long as it worked stably and didn't require HA on docker/virtual machine
  • #267 20539418
    laciaty1990
    Level 14  
    well, he doesn't want esp32, he just wants to integrate it on the ethernet - rs485 converter
  • #268 20540283
    starob
    Level 29  
    Use HA modbus integration, and read registers directly. It's a bit of work because all the entities have to be added on foot ... but it's doable.
  • #269 20540656
    xury
    Automation specialist
    If you prefer, but as you say you are close to HA, it makes no sense to do it on the eth converter. Connect via UART-RS485 converter and as above colleague @starob wrote use modbus RTU integration. You can just use the configuration for Esphome - just adjust and rewrite it to HA.
  • #270 20545377
    xury
    Automation specialist
    Anyone know how to clear production data in Sofar KTL-X G2?

Topic summary

The discussion revolves around integrating the Sofar Solar KTL-X inverter with Domoticz via RS485 Modbus, addressing issues related to communication, configuration, and data retrieval. Users share experiences with various setups, including the use of Ethernet-to-RS485 converters and the LSW-3 logger. Key points include the need for correct transmission parameters (9600 baud, 8 data bits, no parity, 1 stop bit), the importance of proper wiring, and the challenges faced when using different firmware versions. Participants also discuss the mapping of Modbus registers for accurate data reading and the potential for using Node-RED for automation. Solutions for common problems, such as timeouts and data retrieval errors, are provided, along with suggestions for configuring Home Assistant for monitoring.
Summary generated by the language model.
ADVERTISEMENT