yes, I can confirm that. For me too it’s due to a home power outage. My HASSIO is installed on notebook (dedicated) so there’s a battery that protect against power outage but i think huawei smart meter stops to read value :). Next week I will install a “backup box” to complete Huawei Luna2000 installation (but I think this will not solve the problem), now I’m trying to filter by a template filtered sensors value > 19milionkWh (but I don’t know if that filter will work, I’m a newbe )
- sensor:
- unique_id: grid_consumpt_2
state: >-
{% set gcons = states('sensor.grid_consumption') | round(2) %}
{{ 0 if gcons > 19999999 else gcons }}
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- sensor:
- unique_id: grid_exported_2
state: >-
{% set gexport = states('sensor.grid_exported') | round(2) %}
{{ 0 if gexport > 19999999 else gexport }}
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
thanks, I’m trying to connect with a TPLINK TL-WR802N. But I need the pass to enter the SUN2000-xxxx WLAN, right? it seems that the installer, change the predefined pass of the inverter and I can’t access… is there anyway to get to it?
Hi, I have install integration, but give me this error:
SUN2000L-5KTL for huawei_solar integration not ready yet: Could not update 2101073796HVHB005492 values: Got error while reading from register 37760 with length 28: Exception Response(131, 3, IllegalAddress); Retrying in background
Please file a bug report and fill in the template to the best of your abilities. Otherwise I won’t have enough information to do a sensible recommendation.
The Daily Solar Energy Yield , which is calculated by :
(daily_energy_yield + daily_battery_charge - daily_battery_discharge)
has decreasing values during the day.
So for the Energy Management Dashboard it isn’t an option. (state_class: total_increasing)
To have a working sensor I have used the Riemann Sum to calculate kWh from kW.
But you need to take the efficiency off the Inverter into account :
So I apply a correction to the input_power before feeding it into the Riemann
The sensor solar_energy_riemann can then be used in the Energy Management Dashboard.
PS 1 : You can adopt the corrections to fit your installation, but for my installation its very accurate.
PS 2 : This efficiency graph is also the reason why in the morning the Daily Battery Discharge is higher then the Daily Energy Yield…
The Modbus register is only 2 digits accurate for kW… so having 5.012,7 W doesn’t make any sense…
You can have only accurate readings of order 10 Watt, which is already amazingly accurate.
I moved my installation from SD card to SSD. since then I am unable to connect to the Huawei inverter.
log error is mentioned below
Logger: huawei_solar.huawei_solar
Source: /usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py:307
First occurred: 6:55:23 PM (1 occurrences)
Last logged: 6:55:23 PM
failed to connect to device, is the host correct?
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py", line 303, in read_register
response = self.client.read_holding_registers(
File "/usr/local/lib/python3.9/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers
return self.execute(request)
File "/usr/local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 108, in execute
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.200.1:502)]
I am on “2485325” Huawei integration tried to update the latest “a973aed” to can’t upgrade to some unknown issue. is there any manual way of upgrading?
If I upgrade I only see the following code but even after rebooting the host, it is the same old version.
after finally updating the intergration
I see the following error
This error originated from a custom integration.
Logger: custom_components.huawei_solar.sensor
Source: custom_components/huawei_solar/sensor.py:192
Integration: huawei_solar (documentation)
First occurred: 8:49:11 PM (1 occurrences)
Last logged: 8:49:11 PM
could not connect to Huawei inverter: failed to connect to device, is the host correct?
Logger: huawei_solar.huawei_solar
Source: /usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py:416
First occurred: 8:49:11 PM (1 occurrences)
Last logged: 8:49:11 PM
failed to connect to device, is the host correct?
NoneType: None
The gain-column with 1000 that you see to the right of unit-column with kW means that you need to divide that register with 1000 to get the kW value. I felt like being clever, and just give the resulting value as W instead of kW for that register.
Indeed, that’s why its not total_increasing. I believe the decreasing behavior is due to the efficiency factor (losses) between the battery discharge and the Inverter output (daily energy yield). People without a battery won’t have this issue I believe. Maybe someone without battery can confirm this…