I have 2 inverters, a 10 kW and a 6 kW. Both inverters are connected to 2 x 5 kWh batteries, so each inverter has its own dedicated battery. The 10 kW inverter controls the system, and battery charging is prioritized. When the house is consuming power, it is supplied via the battery. However, until the battery is fully charged, the solar energy production is not displayed, and the minus value appears twice on the energy panel, but only there. What can I do to fix this? Also, solar production appears at night too. :)))
Needless to say, the houseās consumption is also displayed incorrectly because of this. It only shows the real consumption correctly around midnight.
I have a problem with the values coming from the smart meter. In particular, the house consumption shows the energy used. I would have expected to see power used. Is it possible to get that info?
And another question - the values for the power meter updates very slowly, sometimes more than an hour between updates. Is it possible to improve that somehow? Iām currently connected through the Sdongle, as I could not get the connection to the Inverterās AP to work. I can connect, and port 6607 is open, but I do not get any data.
It looks like this template solved the problem. I looked up an example for this earlier. I love this forum, you can always find alternative solutions here
template:
- sensor:
# 6PV second battery pack
- name: 6KTL Total PV
#friendly_name: "PV Energy"
unique_id: "PV Energy 6"
state: "{{ (states('sensor.sun2000_6ktl_total_yield') | float) - (states('sensor.luna2000_battery_2_total_discharge') | float) + (states('sensor.luna2000_battery_2_total_charge') | float)}}"
device_class: energy
state_class: total
unit_of_measurement: kWh
- name: 6KTL Daily PV
#friendly_name: "PV Energy daily"
unique_id: "PV Energy daily 6"
state: "{{ (states('sensor.sun2000_6ktl_daily_yield') | float) - (states('sensor.luna2000_battery_2_day_discharge') | float) + (states('sensor.luna2000_battery_2_day_charge') | float)}}"
device_class: energy
state_class: total
unit_of_measurement: kWh
# 10PV first battery pack
- name: 10KTL Total PV
#friendly_name: "PV Energy"
unique_id: "PV Energy 10"
state: "{{ (states('sensor.sun2000_10ktl_total_yield') | float) - (states('sensor.luna2000_battery_total_discharge') | float) + (states('sensor.luna2000_battery_total_charge') | float)}}"
device_class: energy
state_class: total
unit_of_measurement: kWh
- name: 10KTL Daily PV
#friendly_name: "PV Energy daily"
unique_id: "PV Energy daily 10"
state: "{{ (states('sensor.sun2000_10ktl_daily_yield') | float) - (states('sensor.luna2000_battery_day_discharge') | float) + (states('sensor.luna2000_battery_day_charge') | float)}}"
device_class: energy
state_class: total
unit_of_measurement: kWh
Hi!
I use Homewizard instead of the Power Meter because itās not accurate for me either; sometimes it shows a difference of 2-3 kWh compared to the HW, which is directly connected to the electricity meter via the P1 port. Iāve been using it for 2 years without any issues. Iāve already tested to see if everything goes through the Huawei Power Meter, and it seems that it does, but the data still differs. Since the electricity provider uses the electricity meter as a reference, I prefer using the HW.
Do you do some calculations on top of that? My electricity meter only shows import and export. But the actual consumption would something along the line of (solar power + import + battery discharge) - (export + battery charge).
But then it becomes a bit tricky if I charge the battery from imported electricity, or discharge the battery for export.
And the power values from the inverter and power meter have such slow update frequency that it becomes very inaccurate.
the only way i did it is:
manual ip in HA lan conected to router 192.168.1.1 [minipc lan]
and automat ip conected with HA on huwaei hotspot 192.168.200.1 [minipc wifi dongle]
host: 192.168.200.1
port 6607
so it seems its about vlans management the problems when u have FE dongle conected to invertor by lan it gets vlan 1 : 192.168.1.1 as internet
when conecting by minipc dongle to invertors hotspot u get vlan 200: 192.168.200.1.
else try remove fe dongle and use invertorās wifi hostspot.
have fun guys
Iām having some trouble adding a second Huawei inverter to my HA setup. Iāve already integrated one inverter using a dongle and itās working fine.
The second inverter doesnāt have a dongle, but I can access it via its IP address. However, when I try to add it to HA using the same integration method as the first one, I get a connection error.
Thanks for your help!
ā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.ā
good user and pasword
Unexpected error???
It worked very well 2 weeks but after the last homeassistant update- out of orderā¦
Tried to delete and reinstall, no results.
Assuming your talking about two inverters in the same location / home setup?
If so, then you shouldnāt be looking to āaddā the second inverter via LAN / IP address, you need to lookup the RS485 networking section of the inverters manual.
In there youāll see that you should be wiring the secondary inverter into the primary inverter using the RS485 connectors. When thats done correctly and configured in FusionSolar, you should then go to the FusionSolar Portal and youāll see the site with the sDongle and below that the two inverters should show.
In HA you then just need to reconfigure the Huawei intetgration (WLCRS) and refer to the Wiki section on Github for WLCRS, that refers to the ID numbers you need to use (by default will probably be ā1,2ā) that should be entered, at which point the integration should query your setup and see the two inverters (and any batteries / optimisers also).
Thank you @wlcrs for your hard work!
I have a Luna2000 battery, which I want to control based on electricity prices. I am doing this from within the Node-Red addon.
I have done what I thought would be the difficult part, calculating the required battery state as āchargeā, ādischargeā or āstandbyā. But as it turns out, the difficult part is actually controlling the battery.
Here are my questions, that I hope the infinite wisdom of the people in this thread can shed some light upon:
The idea is to use āforcible_charge_socā together with charge_from_grid when the battery should be charged. (As there is not much solar power this time of the year where I live). How do I specify device_id, power and target_soc in the action_node?
When discharging, I plan on using āMaximise self consumptionā as I believe that would result in power going from the battery to my house. Is there a better mode for this state?
It seems that the trickiest state is āstandbyā. I charge the battery at night and want to use it many hours later. Meanwhile, the battery should be in standby or hibernation, as it consumes an insane 100W in normal mode, even without feeding anything to the house. How can I set it to standby?
These questions shouldnāt be difficult, but I fail to find any answers by searching through the almost 3000 comments in this thread.
I am trying to get this integration running with elevated permission so I can use home assistant to manage battery charging. Without elevated permissions the integration is connecting to the inverter, I can ping the inverter I have all the measurements available
I had my account role changed to installer which is visible on the fusionsolar web page
I also configured the dongle to enable modbus unrestricted
but when I try to turn on the elevated permission in the integration I am stuck on the installer login screen of the integration
because my credentials for my fusionsolar installer account are not accepted.
Hi, I have small favor to ask.
I set up this integration long long time ago and today when I was checking logs I noticed some warnings regarding entities from Huawei Solar. Pasting only short example I will adjust rest accordingly once this is solved. Can anyone advise how to fix it?
Logs:
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{{ '%0.2f' | format(states('sensor.power_meter_consumption') | float) }}' but no default was specified
2024-12-20 11:09:25.973 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unknown' when rendering template '{{ '%0.2f' | format(states('sensor.power_meter_consumption') | float) }}' but no default was specified') while processing template 'Template<template=({{ '%0.2f' | format(states('sensor.power_meter_consumption') | float) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.m_grid_accumulated_energy'
2024-12-20 11:09:25.974 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ '%0.2f' | format(states('sensor.inverter_total_yield') | float) }}) renders=2>
Hello!
I tried to enable the Peak-shaving functionality, since we here in Sweden now have to pay for peak consumption.
However, I can not get the call to huawei_solar.set_capacity_control_periods to work.
I get the error :
2025-01-01 14:57:03.269 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall huawei_solar.set_capacity_control_periods (c:01JGH2FN55A3VKV6FYJFHFPDZ8): device_id=3fda7578187a27d2e7794148b5b0f9a0, periods=00:00-06:00/1234567/5000W
22:00-23:59/1234567/5000W
06:00-21:59/1234567/2500W>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2822, in _run_service_call_catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/huawei_solar/services.py", line 575, in set_capacity_control_periods
await bridge.set(
^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'set'
I can run huawei_solar.set_tou_periods without problems, so I do think the parameters are correct.
I managed to configure the peak-shaving through FusionSolar, and that is now visible in Home Assistant.
Have anyone been able to call the huawei_solar.set_capacity_control_periods correctly or know if there are any problems with it? Or should I file a bug-report?
Iāve managed to install a battery to my huawei 5KTL inverter and the daily yeld statistics are higher than what fusion portal reports.
Iāve read the wiki from wlcrs and imported his code to test located HERE.
Apart of that, does anyone have an working solution instead of trying and fail?
The code shared in 2022 i in this topic above is not matching the 2024 Home assistant code at least from Riemann perspective.
Anyone experiencing connection issues at the moment. Inverter/Battery data is coming and going every so often. Getting timeout issues fetching power_meter_data_update_coordinator data and inverter_data_update_coordinator data. Was working fine for the last year. Had upgraded to HAOS today but dont know if thats just a coincidence.
Edit: I have the Huawei Inveter added through the wifi network interface option in Home Assistant and see that it is sometimes dissapearing from this. Would that be due to network interference between the inverters wifi signal and my pcās wifi connection?