NickStallman / home-assistant-repo

5 stars 0 forks source link

SG10RS - no grid usage or export #8

Open mitch-1211 opened 5 days ago

mitch-1211 commented 5 days ago

Thanks for this great add on!

I am able to get data coming across into my home assistant instance, however I can't seem to get any info from the power meter i.e. I have no info about grid consumption or daily feed in etc

Below is a list of all the entities that have been created:

Sungrow Inverter Array Insulation Resistance
sensor.sg10rs_a23a2000179_array_insulation_resistance
MQTT
—
—

Sungrow Inverter Bus Voltage
sensor.sg10rs_a23a2000179_bus_voltage
MQTT
—
—

Sungrow Inverter Daily Yield
sensor.sg10rs_a23a2000179_daily_yield
MQTT
—
—

Sungrow Inverter Grid Frequency
sensor.sg10rs_a23a2000179_grid_frequency
MQTT
—
—

Sungrow Inverter Internal Air Temperature
sensor.sg10rs_a23a2000179_internal_air_temperature
MQTT
—
—

Sungrow Inverter Maximum Apparent Power
sensor.sg10rs_a23a2000179_maximum_apparent_power
MQTT
—
—

Sungrow Inverter Meter Phase-A Current
sensor.sg10rs_a23a2000179_meter_phase_a_current
MQTT
—
—

Sungrow Inverter Meter Phase-A Voltage
sensor.sg10rs_a23a2000179_meter_phase_a_voltage
MQTT
—
—

Sungrow Inverter Meter Phase-B Current
sensor.sg10rs_a23a2000179_meter_phase_b_current
MQTT
—
—

Sungrow Inverter Meter Phase-B Voltage
sensor.sg10rs_a23a2000179_meter_phase_b_voltage
MQTT
—
—

Sungrow Inverter Meter Phase-C Current
sensor.sg10rs_a23a2000179_meter_phase_c_current
MQTT
—
—

Sungrow Inverter Meter Phase-C Voltage
sensor.sg10rs_a23a2000179_meter_phase_c_voltage
MQTT
—
—

Sungrow Inverter MPPT Total Power
sensor.sg10rs_a23a2000179_mppt_total_power
MQTT
—
—

Sungrow Inverter MPPT1 Current
sensor.sg10rs_a23a2000179_mppt1_current
MQTT
—
—

Sungrow Inverter MPPT1 Power
sensor.sg10rs_a23a2000179_mppt1_power
MQTT
—
—

Sungrow Inverter MPPT1 Voltage
sensor.sg10rs_a23a2000179_mppt1_voltage
MQTT
—
—

Sungrow Inverter MPPT2 Current
sensor.sg10rs_a23a2000179_mppt2_current
MQTT
—
—

Sungrow Inverter MPPT2 Power
sensor.sg10rs_a23a2000179_mppt2_power
MQTT
—
—

Sungrow Inverter MPPT2 Voltage
sensor.sg10rs_a23a2000179_mppt2_voltage
MQTT
—
—

Sungrow Inverter MPPT3 Current
sensor.sg10rs_a23a2000179_mppt3_current
MQTT
—
—

Sungrow Inverter MPPT3 Power
sensor.sg10rs_a23a2000179_mppt3_power
MQTT
—
—

Sungrow Inverter MPPT3 Voltage
sensor.sg10rs_a23a2000179_mppt3_voltage
MQTT
—
—

Sungrow Inverter Number of AFCI Faults
sensor.sg10rs_a23a2000179_number_of_afci_faults
MQTT
—
—

Sungrow Inverter Phase A Current
sensor.sg10rs_a23a2000179_phase_a_current
MQTT
—
—

Sungrow Inverter Phase A Voltage
sensor.sg10rs_a23a2000179_phase_a_voltage
MQTT
—
—

Sungrow Inverter Running Status
sensor.sg10rs_a23a2000179_running_status
MQTT
—
—

Sungrow Inverter SG10RS A23A2000179
sensor.sg10rs_a23a2000179_sg10rs_a23a2000179
MQTT
—
—

Sungrow Inverter Total Active Power
sensor.sg10rs_a23a2000179_total_active_power
MQTT
—
—

Sungrow Inverter Total Apparent Power
sensor.sg10rs_a23a2000179_total_apparent_power
MQTT
—
—

Sungrow Inverter Total DC Power
sensor.sg10rs_a23a2000179_total_dc_power
MQTT
—
—

Sungrow Inverter Total On-grid Running Time
sensor.sg10rs_a23a2000179_total_on_grid_running_time
MQTT
—
—

Sungrow Inverter Total Power Factor
sensor.sg10rs_a23a2000179_total_power_factor
MQTT
—
—

Sungrow Inverter Total Reactive Power
sensor.sg10rs_a23a2000179_total_reactive_power
MQTT
—
—

Sungrow Inverter Total Yield
sensor.sg10rs_a23a2000179_total_yield
MQTT
—
—

So it seems as though the below would give the current going through the meter device, however as you can see it's not changing value at all

Screenshot 2024-07-05 at 10 12 54 pm

There's no problem getting total solar generation:

Screenshot 2024-07-05 at 10 14 25 pm

Any idea how to get: -instantaneous grid usage (or feed in) -instantaneous solar production -daily integrated grid usage

Many thanks

NickStallman commented 4 days ago

The meter readings should be functional. Note that all the possible meter values will appear, even if they aren't actually used. This applies to other sensors too, not all are expected to actually be usable - they are just what's provided as-is.

Here's what I get, only Phase A is used with my setup so B and C are ignored.

image

Do you see the meter readings if you go to the Winet's web interface directly? Do you see meter readings in iSolarCloud? It sounds like your meter might not be hooked up properly if they don't show the values.

There's notes in the Readme for which values give the various instantaneous readings, and how to get the Energy Dashboard working. All the values should be available, even if the names don't seem obvious initially. :) I'm not sure if the SG20RS changes things or not (since the addon just reads all the data available from the Winet) but I haven't had any reports that these instructions differ for other inverters.

mitch-1211 commented 4 days ago

Firstly, apologies, I mistakenly wrote the wrong model in the title originally. Correct model is SG10RS

So looking in the iSolar Cloud app, I get information about both grid usage and solar production.

I’ll put a few screenshots of the individual devices and the data they are producing:

IMG_3433

IMG_3434 IMG_3435 IMG_3436 IMG_3437

So it looks like the meter device itself is producing a single value that is positive for grid usage and negative for grid feed in.

The inverter device doesn’t seem to have the meter data associated with it directly. It seems as though this info is missing: IMG_3438

Obviously iSolar cloud is able to piece together the right info to calculate all metrics, just don’t know if the data from the meter is coming through to home assistant.

Would you mind sharing what your devices look like in isolar cloud in terms of data?

NickStallman commented 4 days ago

I know there's a few users of my addon with a SG10RS however I don't know of any specific quirks with that setup.

Can you log in to the Winet via it's IP address in your browser and just confirm that you don't see any "Purchased Power" orr "Total Export Active Power" value? This addon should simply mirror exactly what the Winet web interface shows, but worth double checking. They are the fields provided by the SH10RS that give the realtime import/export info. I don't actually use the meter values myself.

If iSolarCloud shows "Meter A Active Power" as blank then that sounds like the meter isn't wired to the inverter correctly. That would explain why Home Assistant also is getting blank. It does look like it knows there's a meter there though, just no values for it.

If the meter isn't wired up I'm not sure how the Inverter would be getting the household power usage - the inverter on it's own can only see generation but not whether it's exported or self consumed.

One thing to double check is are you on the latest firmware? They do fiddle with these things and change them around.

matheuscanela commented 3 days ago

Hey @NickStallman Thanks for the integration, I just installed and it worked perfectly.

Do you know why ISolar shows one shows a different load compared to what the inverter produces? I checked the output from the WiNet internal site and it matches what the integration collect, however, the ISolar always shows a little bit above - see the screenshots. Is it normal?

isolar Screenshot 2024-07-07 090217

Also - I have read the entire manual yet, but is it possible to change the device's behaviour through this integration? E.g. discharge the battery to the grid or force charging?

matheuscanela commented 3 days ago

This is the graph for the morning, and there is no 1KW consumption.

Screenshot 2024-07-07 090806

NickStallman commented 3 days ago

Do you have whole house backup or are there loads not on your backup circuit? That sensor isn't your household usage it's backup only.

I calculate the household usage (and I think iSolarCloud does too) from:

matheuscanela commented 3 days ago

Interesting! It is supposed to be the entire house, so don't know why it is less. I will switch off the circuit outside and see if everything is connected. This inverter supports up to 63A on the backup line, so I connected everything as I can decide what to use during a blackout.

Also, thanks for the calculation tip, it makes totally sense.