Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for regular string inverters #58

Open
debietim opened this issue May 3, 2024 · 22 comments
Open

Support for regular string inverters #58

debietim opened this issue May 3, 2024 · 22 comments

Comments

@debietim
Copy link

debietim commented May 3, 2024

Hello

I am using this integrations for my Solis RHI 10kW Hybrid inverter and it works very good!
I have also 2 regular inverters without battery. I't would be great if I can control this inverters also like I do with the Hybrid one.

But today I get an error when I try to setup one of these inverters.

Is there an option to support also non-hybrid inverters?

regards

@Pho3niX90
Copy link
Owner

Which errors are you getting?

@debietim
Copy link
Author

debietim commented May 4, 2024

I can add them (by IP address) but then I gat a "failed" message...
Screenshot 2024-05-04 at 11 50 42

@Pho3niX90
Copy link
Owner

Which port are you using for them? Also, are there any other modbus software connecting to them? Lastly, do you know which wifi dongle is used with them?

@debietim
Copy link
Author

debietim commented May 4, 2024

I am using port 502 (was standard filled in)… i am using the same wifi dongle as on my hybrid inverter… (S2-WL-ST)
No other modbus connection, only soliscloud…

@0rangutan
Copy link

Ah, you can't use this integration and Solis Cloud simultaneously - one or the other.
Or set up an RS485 gateway - see the threads re. Waveshare

@debietim
Copy link
Author

debietim commented May 4, 2024

I know, but when i installed my hybrid with this integration, it automatically stopped on soliscloud… but now it don’t even start…

@debietim
Copy link
Author

I have next to my Solis RHI 10kW also al Solis S5-GR3P8K string inverter. Now it would be very nice if I can control the Power Limit (value between 0 and 110%) via home assistant. Now I can only change this value via the SolisCloud platform. But when I use this integrations the device is not recognised... any chance that it can be supported in the future? I use the same datalogger as I use on the RHI 10kW inverter.

@christian-albrecht22
Copy link

The Modbus register is different between the hybrid inverters and the normal grid-tied inverters. Here is an overview about the register:
https://community.openenergymonitor.org/uploads/short-url/hfD6j9G7EvHVFtuh2HiujSVhgyG.pdf
found in this conversation:
https://community.openenergymonitor.org/t/solis-s6-pv-inverter-and-rs485-modbus/20507

@Pho3niX90
Copy link
Owner

#84 related

Pho3niX90 added a commit that referenced this issue Oct 30, 2024
@Pho3niX90
Copy link
Owner

@Pho3niX90 Pho3niX90 linked a pull request Oct 30, 2024 that will close this issue
@debietim
Copy link
Author

debietim commented Nov 4, 2024

Hello, I installed the test-version but was forced to roll back.
The battery shows constant discharge of 139W.
When tried to add a Solis String Inverter, this did not work. It connected, but no values (complete none) came thru..

@Pho3niX90
Copy link
Owner

Unfortunately the documentation I have found regarding the string inverters are unreliable to blindly code it. I would either need access to a system where I can do testing, or someone can continue from #86 to make a PR

@fastsonic
Copy link

i can open a Port from the Elfin so you can connect to the Inverter over Modbus TCP !?
but a little bit scared about security... is there a other Tip !?

@Pho3niX90
Copy link
Owner

For all involved, here is a discussion #100

If you can test the release as well please, and provide feedback.

@Pho3niX90
Copy link
Owner

@fastsonic @debietim @christian-albrecht22
The above includes registrars of the official documentation. However, some info was missing, such as the conversion rate. So this is a basic implementation, to test the critical sensors, if all is well, I will implement the rest

Pho3niX90 added a commit that referenced this issue Feb 6, 2025
feat: #58 & #84 test
fixes: #15 #79
implements #93 #94
addition of time of use
faster startup
add waveshare values, fixes #74
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the Stale label Feb 17, 2025
@omenukas
Copy link

Hello,
I have an inverter s5-gr3p12k without batteries.
I have made a modbus connection according to this description https://github.com/alienatedsec/solis-ha-modbus-cloud
The SolisCloud side is working fine.
If I manually add some known registry sensors to the .yaml, it shows them as well.
For example:

  • name: modbus
    timeout: 1
    type: tcp
    host: 192.168.XX.XX
    port: 502
    sensors:
    • name: Solis power
      device_class: power
      data_type: uint32
      slave: 1
      address: 3004
      input_type: input
      unit_of_measurement: W
      state_class: measurement
      scan_interval: 20

    • name: Solis today energy
      device_class: energy
      data_type: uint16
      slave: 1
      address: 3014
      input_type: input
      unit_of_measurement: kWh
      state_class: total_increasing
      scan_interval: 60
      scale: 0.1
      precision: 1

    • name: Solis total energy
      device_class: energy
      data_type: uint32
      slave: 1
      address: 3008
      input_type: input
      unit_of_measurement: kWh
      state_class: total_increasing
      scan_interval: 300

Image

However, I do not know how to extract smartmeter grid data.
A smartmeter Arcel DTSD1352C is connected to the inverter via the meter port. The data about the voltages, currents and power of all three phases of the grid from this smartmeter are all displayed in SoliCloud. I don't know how to get this data into HA.
Therefore, I tried to install this Solis modbus integration, but with not one option, all sensors are either inactive or with zero values.
Is there any chance that I can see grid energy consumption with this integration?

@Pho3niX90
Copy link
Owner

Hello, I have an inverter s5-gr3p12k without batteries. I have made a modbus connection according to this description https://github.com/alienatedsec/solis-ha-modbus-cloud The SolisCloud side is working fine. If I manually add some known registry sensors to the .yaml, it shows them as well. For example:

  • name: modbus
    timeout: 1
    type: tcp
    host: 192.168.XX.XX
    port: 502
    sensors:

    • name: Solis power
      device_class: power
      data_type: uint32
      slave: 1
      address: 3004
      input_type: input
      unit_of_measurement: W
      state_class: measurement
      scan_interval: 20
    • name: Solis today energy
      device_class: energy
      data_type: uint16
      slave: 1
      address: 3014
      input_type: input
      unit_of_measurement: kWh
      state_class: total_increasing
      scan_interval: 60
      scale: 0.1
      precision: 1
    • name: Solis total energy
      device_class: energy
      data_type: uint32
      slave: 1
      address: 3008
      input_type: input
      unit_of_measurement: kWh
      state_class: total_increasing
      scan_interval: 300

Image

However, I do not know how to extract smartmeter grid data. A smartmeter Arcel DTSD1352C is connected to the inverter via the meter port. The data about the voltages, currents and power of all three phases of the grid from this smartmeter are all displayed in SoliCloud. I don't know how to get this data into HA. Therefore, I tried to install this Solis modbus integration, but with not one option, all sensors are either inactive or with zero values. Is there any chance that I can see grid energy consumption with this integration?

These registers doesn't seem to correspond with the solis pv/grid doc.

See here:

Image

Image

Image

If you have confirmed the values you are getting are in fact accurate, where did you get the registrars from?

@omenukas
Copy link

from this document:

RS485_MODBUS Communication Protocol_Solis Inverters_1.pdf

just need to evaluate:

Image

@Pho3niX90
Copy link
Owner

from this document:

RS485_MODBUS Communication Protocol_Solis Inverters_1.pdf

just need to evaluate:

Image

Thanks for pointing that out, I have missed that part completely.

I cannot seem to find any reference in regards to the smart port for grid/string inverters

@omenukas
Copy link

And I have already found some parameters I need from smartmeter:

  - name: S5 meter voltage A
    device_class: voltage
    slave: 1
    address: 3250
    input_type: input
    data_type: uint16
    scale: 0.1
    unit_of_measurement: "V"
    scan_interval: 10
    precision: 1
    
  - name: S5 meter A phase current
    device_class: current
    data_type: uint16
    slave: 1
    address: 3251
    input_type: input
    unit_of_measurement: A
    state_class: measurement
    scan_interval: 10
    scale: 0.01
    precision: 2

  - name: S5 meter import energy total
    device_class: energy
    state_class: total_increasing
    data_type: uint32
    slave: 1
    address: 3282
    input_type: input
    unit_of_measurement: kWh
    scan_interval: 300
    scale: 0.01
    precision: 2
    
  - name: S5 meter export energy total
    device_class: energy
    state_class: total_increasing
    data_type: uint32
    slave: 1
    address: 3284
    input_type: input
    unit_of_measurement: kWh
    scan_interval: 300
    scale: 0.01
    precision: 2

Similarly for phases B and C.

However, I do not find the most important for me - active power in each phase.
Maybe these parameters could be what I need, but I don't know how to describe a sensor with this "device type - S32":

Image

@omenukas
Copy link

I already found how to find the power consumption:

  - name: S5 meter active power A
    device_class: power
    data_type: int32
    slave: 1
    address: 3256
    input_type: input
    unit_of_measurement: kW
    state_class: measurement
    scan_interval: 10
    scale: 0.001
    precision: 3

@github-actions github-actions bot removed the Stale label Feb 21, 2025
Pho3niX90 added a commit that referenced this issue Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants