wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
295 stars 88 forks source link

[BUG] #214

Closed blackwhitebear8 closed 1 year ago

blackwhitebear8 commented 1 year ago

Describe the bug I m getting: unrecognized Solis inverter type - serial number : unknown and Solis: reading serial number from address 0x80ec failed; other address may succeed

I m using a DSD TECH SH-U10 rs485 to usb adaptor it has a silicon labs cp2102 chip in it. its correctly wired up to our solis 10KW Hybird inverter

Mandatory details

  1. Integration Version: 0.7.0.5
  2. HA Version: Home Assistant 2022.11.4
  3. Inverter Brand: solis
  4. Plugin Used: solis
  5. First 6 digits of Serial: 110CA2
  6. Connection Method: Serial (DSD TECH SH-U10 rs485 )

Detailed Error Log Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:84 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 14:50:20 (1 occurrences) Last logged: 14:50:20

Solis: reading serial number from address 0x80ec failed; other address may succeed

Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:86 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 14:50:20 (1 occurrences) Last logged: 14:50:20

Solis: cannot find serial number, even not for other Inverter

Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:97 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 14:50:20 (1 occurrences) Last logged: 14:50:20

unrecognized Solis inverter type - serial number : unknown

If there are no log's showing for SolaX try the following depending on your language settings, you can find the full logs under:

Settings → System → Logs > at bottom of page press “LOAD FULL LOGS”

Now the full logs are loaded. If you scroll down, you will see them. Once the full logs are shown, you can either use the search function in your browser to search for “solax” related entries or use the search entry field on top of the page.

Search for

solax

2022-11-25 15:00:04.261 WARNING (MainThread) [custom_components.solax_modbus.plugin_solis] Solis: reading serial number from address 0x80ec failed; other address may succeed 2022-11-25 15:00:04.264 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] Solis: cannot find serial number, even not for other Inverter 2022-11-25 15:00:04.265 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] unrecognized Solis inverter type - serial number : unknown

Additional context Add any other context about the problem here.

wills106 commented 1 year ago

If you select the correct entity it might show 0? Not sure. battery_power_charge is a SolaX name, just need to drop the _charge.

wills106 commented 1 year ago

For the Grid try "Meter Active Power" that should be the 3 Phases combined.

blackwhitebear8 commented 1 year ago

ye i had found that just now but it shows 0 just like on the inverter is receiving 0 from the meter for some reason

wills106 commented 1 year ago

What about the one without meter? "Active Power"

wills106 commented 1 year ago

the 3 phase meter seems to be sending out 0 for everything to the inverter

Is this a Modbus Power meter such as a Eastron or similar? Was it supplied with the Solar Installation?

blackwhitebear8 commented 1 year ago

i have corrected the meter settings inside solis and now its sending out the correct usage

wills106 commented 1 year ago

If some of your reading still seem out, there might be further work required to correct them. #210

kai-seipp commented 1 year ago

i have corrected the meter settings inside solis and now its sending out the correct usage

I have had the same issue: My installing company did configure an Eastron Meter, but delivered a Acrel Meter... That did not work at all... 

blackwhitebear8 commented 1 year ago

anyone know how to configure a card like this with these meters? https://github.com/ulic75/power-flow-card

kai-seipp commented 1 year ago

for your information (from an other thread):

I don't trust my inverters import / exports readings at all. I use a shelly 3EM to monitor these values. So I have not yet really checked them.

But yes they do need scaling from what I can see. Here is what I could find:

Grid Import Yesterday Shelly: 7,66 kWh Grid Import Yesterday Solis South Inverter: 84 kWh Grid Import Yesterday Solis North Inverter: 60 kWh

Grid Export Yesterday Shelly: 3,09 kWh Grid Export Yesterday Solis South Inverter: 12 kWh Grid Export Yesterday Solis North Inverter: 12 kWh

wills106 commented 1 year ago

For the Power Flow Card have a look at https://github.com/wills106/homeassistant-solax-modbus/discussions/31 It's geared towards Solax, but should be a starting point.

kai-seipp commented 1 year ago

This is how I configured my Energy dashboard: https://dsh.re/61a868

For the Grid Information I use my Shelly entities these are total values, not daily values. So for your inverters readings here you would need to use the entities:

making "solis_nord" matching your configuration. I fond using the total numbers here to be rubust. But I have also heard of people using the "today" values.

blackwhitebear8 commented 1 year ago

when usin total its a bit weird becouse theres no battery so how can things move there

Screenshot 2022-11-26 111321
kai-seipp commented 1 year ago

What is the benefit of using this custom card instead of the official HA card?

blackwhitebear8 commented 1 year ago

this ones live and the HA one not?

wills106 commented 1 year ago

The HA isn't live! It's misleading, all the values are the previous hour.

wills106 commented 1 year ago

Also you import / export should look more realistic either later in the day / tomorrow. Unless you have imported 58kW so far today?

The battery might just show there anyway regardless if you have one or not? I have only ever had a battery connected since the Dashboard was introduced, so I don't know how it would look if you didn't have a battery.

kai-seipp commented 1 year ago

ok, true. For me that had worked so far. As I also created my own dash for my current values.

https://dsh.re/137cd So I might look into that custom card as well for that dash.

blackwhitebear8 commented 1 year ago

cool

wills106 commented 1 year ago

I could never be bothered to setup the PowerFlowCard so I just stuck to the PowerDistribution one.

Doesn't look as colourful, but does the job.

image

wills106 commented 1 year ago

Last time I looked into that PowerFlow card you can to split all the bi-directional sensors into input / output. Where the Power Distribution card did that Internally.

Things might have changed since though?

blackwhitebear8 commented 1 year ago

@kai-seipp how did you creare these graphs?

Screenshot 2022-11-26 114015
wills106 commented 1 year ago

It might be worth either adding to the discussion here #211 Or creating a new discussion? Otherwise when this issue get closed down it will be hard to share the information.

Just thinking it will be easier for others to share the knowledge then.

blackwhitebear8 commented 1 year ago

when editing the solax intergation like polling frequenfy etc it creates new sensors instead of using the old one......

wills106 commented 1 year ago

When we started to develop 0.7.0beta it was changed so you couldn't have the Integration twice with the same name. But this also prevents you from updating the configuration. (We need to relook into fixing that)

For the time being you are best removing the Integration from the Integration page, restarting HA and adding it back again with your new polling rate.

This way you can rename it the same as the initial setup. If you do it this was any custom dashboards etc will still function correctly as the naming is the same.

kai-seipp commented 1 year ago

@kai-seipp how did you creare these graphs?

Screenshot 2022-11-26 114015

These are coming from HA (Energy cards) You can use these on your dashboard by adding a custom card.


type: energy-usage-graph

You can find the documentation here: https://www.home-assistant.io/dashboards/energy/

blackwhitebear8 commented 1 year ago

the powerflow dashboard shows grid power as 300.000W instead of like 300W like all the others do?

wills106 commented 1 year ago

Is that only when displayed in the powerflowcard or on the Integration page?

The powerflowcard might be expecting kW and not wasts?

kai-seipp commented 1 year ago

I gave Power Card a try. This is the configuration that works for me. https://dsh.re/59b4b6

type: custom:power-flow-card title: Aktueller Energie Fluss entities: battery: sensor.solis_nord_battery_power battery_charge: sensor.solis_nord_battery_soc grid: sensor.power_total solar: sensor.current_pv_power_total gas: sensor.recording_ractualpower w_decimals: 1 kw_decimals: 2 watt_threshold: 2200 inverted_entities: battery

blackwhitebear8 commented 1 year ago

i tried your configuration but it still shows some thingsin kwh and high values? i seem to be missing the power_total sensor

kai-seipp commented 1 year ago

Yes, power total is a template sensor that I have created for a Shelly device. You would have to use one of your inverter entities.

wills106 commented 1 year ago

I am going to close down as the Inverter is now responding to the Inverter following setting the correct address.

Any further issues, please raise a new issue.