Hi!
A very long discussion
But couldn’t find a solution for me.
I have two inverters connected together SUN2000-8KTL-M1 and SUN2000-4KTL-M1.
The 4KTL one is the master one and it has SDongleA-05 and Smart Metter attached to it.
I was able to connect to Home Assistant using inventers built-in wifi AP. But I can connect to one of both inventors and I don’t see data from other inventor. And seems like Smart Metter also shows data from one inventor not both.
So it looks like it won’t work that way.
The other way is to connect through the dongle?
The dongle is connected to my home router with an ethernet cable.
But I wasn’t able to connect it that way.
Firmware is SPC118. I guess I need a newer one for it to work?
I’m using wlcrs integration.
And I would like a FusionSolar to continue to work.
In firmware spc123 for smart dongle LAN is working by default. In newer smart dongle firmware you need to unlock communication in fusionsolar app. In spc118 modbus tcp is not working for ethernet cable.
Find the slave ID of your slave inverter and enter it in the 3rd field -separated with a comma- when installing the integration.
For example if it is 16: 0,16
Hmm, where can I find it?
If you want to use the internal APs to connect to both inverters, then you need 2 seperate wifi-to-ethernet bridges which each connect to one of the inverters. Then you can add the integration twice with two different IP addresses. The master inverter will then also show the data from the smart meter and battery. The second inverter will only show its own data. That’s how I have set up the integration. Connecting through the internal APs is much faster than through the dongle.
If you want to connect through the dongle, then you need to put in the two slave IDs as Thijs has said above. In a lot of cases it is either 0 and 1, 1 and 2 or 1 and 16. However, if you want to find out which slave ids your system has, then you need to login to the inverter using the Fusionsolar app and the internal AP. There you can see the slave id under the communication settings.
Hi Carlo,
Could you please share your openwrt configuration with us?
Thanks a lot !
Masadido
Have you already seen the OpenWRT config here: Connecting to the inverter · wlcrs/huawei_solar Wiki · GitHub ?
I created a page on the Wiki with more info. Feel free to make changes/add information where you think it is lacking.
Thanks!
Already managed to set it up. Just guessed slave inverter ID
Now struggling to get export and import data.
As I understood Fusion solar calculates export and import by just summing active power on all three phases.
But it is not correct because there are situations when I’m exporting in two phases and importing in one phase at the same time.
So I want to sum up positive values to get export and sum up negative values to get import.
Also where I can adjust time zone for this integration? Because startup time now shows 3 hours earlier than actual time.
I guess it is because my time zone is +3
Who can help me adjust my settings here? I’m really stuck for days now.
I just want my dashboard with energy meter showing in W instead of kW.
Also tried the tesla power card , but also no success…
Note that the timestamp reported is in UTC (that is what that +00:00 at the end means).
However, I’ll have to investigate how the inverter handles changes in time zone dueo to DST, because the reported time is off by one hour in my case. The inverter just reports how big the offset from UTC is in minutes, but that value hasn’t changed when I went from CET to CEST.
Energy distribution today graph shows energy in kWh what you are trying to do is power in W. For Power you have you use sensors with Power or KW or W units.
do you have zero export device or smart meter installed? If you have it installed, it has 3 CT installed measuring current in all three phases, along with Voltage in each phase.
So power is calculated for each phase.
Notice there is negative power in phase B.
In the original app from huawei the values are in kW instead of kWh. I want to create something exactly like that but in home assistant.
I do have indeed a power meter attached , it’s directl connected to my huawei inverter.
Orginal fusion app shows active power for each section, i.e PV, home, grid and batteries. It doesn’t show active energy consumption on the first page.
For PV you can use “sensor.input_power”
For grid, you can use “sensor.grid_active_power”
For home, I am not sure.
Hi everyone
Guys help if possible …
Kindly, I can’t figure out what data to enter to display the correct values, you probably need conversions or accounts to do but I can’t understand how and where to insert them.
In practice I used the “iammeter” card on which I would like to insert the wlcrs sensors taken from “huawei_solar”
If someone has made the conversion and wanted to make it public I would be grateful …
I have the tesla power card working in W.
Here is my card config:
type: custom:tesla-style-solar-power-card
name: 'Power Flow '
threshold_in_k: 4
hide_inactive_lines: 0
show_gap: true
change_house_bubble_color_with_flow: 1
grid_to_house_entity: sensor.template_grid_consumption
generation_to_grid_entity: sensor.template_grid_feed_in
generation_to_house_entity: sensor.template_curent_solar_consumption
house_entity: sensor.house_consumption_daily
generation_entity: sensor.daily_yield
grid_entity: sensor.grid_import_solar_daily_energy
house_extra_entity: sensor.grid_import_solar_daily_energy
generation_extra_entity: sensor.daily_yield
grid_extra_entity: sensor.grid_export_solar_daily_energy
you are missing the following 3 template sensors I created
here is the config for them
template_grid_feed_in:
friendly_name: "Solar 2 Grid"
unit_of_measurement: 'W'
device_class: power
value_template: >
{% if states('sensor.grid_active_power') | int > 0 %}
{{ states('sensor.grid_active_power') }}
{% else -%}
0
{% endif %}
# sensor used to show power flow from Panels to Grid and doesn't allow it to show a negative number only positive numbers
template_grid_consumption:
friendly_name: "Grid 2 House"
unit_of_measurement: 'W'
device_class: power
value_template: >
{% if states('sensor.grid_active_power') | int > 0 %}
0
{% else -%}
{{ (states('sensor.grid_active_power') | int) | abs }}
{% endif %}
# shows the solar power being fed to the house and doesn't allow it to show a negative number only positive numbers
template_curent_solar_consumption:
friendly_name: 'Solar 2 House'
unit_of_measurement: 'W'
device_class: power
value_template: >-
{% if states('sensor.template_grid_consumption') | float > 0 %}
{{ states('sensor.active_power') }}
{% else -%}
{{ (states('sensor.active_power')| float - states('sensor.template_grid_feed_in')| float) }}
{% endif %}