Skip to content
Joerg Heinemann edited this page Sep 27, 2024 · 77 revisions

Welcome to the "Huawei Solar HEMS" Wiki!

For installation follow all prerequisites and installation guides stricly!

  • Step by step.

Notes:

The provided custom template sensors are based on a Huawei Solar setup with one inverter and two batteries. This is reflected throughout the README and these Wiki Pages.

Table of Contents

Overview of used Sensors

image

Flows, Definitions and Calculations

The diagram and the table below shows the definitions and calculations used for the power- and energy flows between the Solar PV, House, Batteries, and Grid. These definitions are used in the naming convention of the custom template sensors included in the "Huawei Solar HEMS packages".

Dashboard: Level 6
Dashboard-6
Reg Sensor Unit Calculation
32016 Inverter_PV_1_Voltage V
32017 Inverter_PV_1_Current A
Inverter_PV_1_Power W = [32016] * [32017]
32018 Inverter_PV_2_Voltage V
32019 Inverter_PV_2_Current A
Inverter_PV_2_Power W = [32018] * [32019]
Inverter_PV_Power
pv_power
W = pv_1_power * pv_2_power
= [32016] * [32017] + [32018] * [32019]
32064 Inverter_Input_Power
inv_in_power
W
Inverter_Input_Power_Corrected 1 W = [32064]*n
32080 Inverter_Active_Power
inv_active_power
W In(-), Out(+)
37765 Batteries_Charge_Discharge_Power W = bat_active_power
= inv_in_power - inv_active_power
In(+), Out(-)
Batteries_Active_Power
bat_active_power
W = inv_in_power - inv_active_power
= [32064] - [32080]
In(+), Out(-)
Batteries_Charge_Power W = max(0, [32064] - [32080])
Batteries_Charge_Power_Average_last_30mins W = statistics(max(0, [32064] - [32080], mean, 0.5h)
Batteries_Charge_from_Grid_Power
inv_in_grid_power
W = -min(0, inv_active_power)
= -min(0, [32080])
Batteries_Discharge_Power W = -min(0, [32064] - [32080])
Batteries_Discharge_Power_Average_last_24h W = statistics(-min(0, [32064] - [32080]), mean, 24h)
37113 Power_Meter_Active_Power
pm_active_power
W In(-), Out(+)
Grid_Import_Power W = -min(0, [37113])
Grid_Export_Power W = max(0, [37113])
House_Consumption_Power W = inv_in_power - bat_active_power - pm_active_power
= inv_in_power - (inv_in_power - inv_active_power) - pm_active_power
= inv_active_power - pm_active_power
= [32080] - [37113]
32108 Inverter_Total_DC_Input_Energy
PV_Yield
kWh = pv_yield_strings
PV_Yield_Quarter_Hourly
PV_Yield_Hourly
PV_Yield_Daily
kWh = UM(pv_yield)
= UM([32108])
PV_Yield_Strings kWh = integration(pv_power, left)
= integration([32016] * [32017] + [32018] * [32019], left)
PV_Yield_Strings_Quarter_Hourly
PV_Yield_Strings_Hourly
PV_Yield_Strings_Daily
kWh = UM(pv_yield_strings)
Solar_Yield 3
inv_in_solar
kWh = integration(inv_in_power, left)
= integration([32064], left)
Solar_Yield_Quarter_Hourly
Solar_Yield_Hourly
Solar_Yield_Daily
kWh = UM([3 solar_yield])
FusionSolar_Yield_Total kWh = inv_out + Batteries_Total_Charge - Batteries_Total_Discharge
= [32106] + [37066] - [37068]
FusionSolar_Yield_Daily kWh = [32114] + [37015] - [37017]
32106 Inverter_Total_Yield
inv_out
kWh
Inverter_Yield_Quarter_Hourly
Inverter_Yield_Hourly
Inverter_Yield_Weekly
Inverter_Yield_Monthly
Inverter_Yield_Yearly
kWh = UM([32106])
32114 Inverter_Daily_Yield kWh
37119 Power_Meter_Exported
grid_out
kWh
Power_Meter_Exported_Energy_Daily
Power_Meter_Exported_Energy_Weekly
Power_Meter_Exported_Energy_Monthly
Power_Meter_Exported_Energy_Yearly
kWh = UM([37119])
37121 Power_Meter_Consumption
grid_in
kWh
Power_Meter_Consumption_Energy_Hourly
Power_Meter_Consumption_Energy_Daily
Power_Meter_Consumption_Energy_Weekly
Power_Meter_Consumption_Energy_Monthly
Power_Meter_Consumption_Energy_Yearly
kWh = UM([37121])
37066 Batteries_Total_Charge kWh
Batteries_Charge_from_Grid_Energy_Total
inv_in_grid
kWh = integration(inv_in_grid_power, left)
Batteries_Charge_from_Grid_Energy_Daily kWh = UM(inv_in_grid)
37068 Batteries_Total_Discharge kWh
37015 Batteries_Day_Charge kWh
Batteries_Day_Charge_with_Loss
bat_in
kWh = [37015] + 5 bat_in_loss
37017 Batteries_Day_Discharge kWh
Batteries_Day_Discharge_with_Loss
bat_out
kWh = [37017] - 6 bat_out_loss
Inverter_Loss_Daily 4 kWh = 5 bat_in_loss + 6 bat_out_loss
= Solar_Yield_Daily + [37017] - [37015] - [32114]
Batteries_Charge_Loss_Daily 5
bat_in_loss
kWh if([37765] >= 0)
= 4 inverter_loss - 6 bat_out_loss
Batteries_Discharge_Loss_Daily 6
bat_out_loss
kWh if([37765] < 0)
= 4 inverter_loss - 5 bat_in_loss
House_Consumption_Energy_Total
house_in
kWh = inv_out + grid_in - gid_out - inv_in_grid
= [32106] + [37121] - [37119] - inv_in_grid
House_Consumption_Energy_Weekly
House_Consumption_Energy_Monthly
House_Consumption_Energy_yearly
kWh = UM(house_in)
House_Consumption_Energy_Daily kWh = [32114] + UM([37121]) - UM([37119] - UM(inv_in_grid) )
House_Consumption_Solar_Energy_Daily
house_consumption_solar
kWh = inv_in_solar + inv_in_grid - bat_in - grid_out
Solar_Yield_Self_Use_Total
Inverter_Yield_Self_Use_Total
kWh = inv_out - gid_out - inv_in_grid
= [32106] - [37119] - inv_in_grid
Inverter_Yield_Self_Use_Daily kWh = [32114] - UM([37119]) - UM(inv_in_grid)
37760 Batteries_State_of_Capacity
bat_soc
%
37758 Batteries_Rated_Capacity Wh
Batteries_Rated_Charge_Energy kWh = [37758] * 1.15
Batteries_State_of_Capacity_Energy
bat_soc_energy
kWh = [37758] * 1.15 * [37760] / 100
Batteries_State_of_Capacity_remaining_Charge_Energy kWh = [37758] * 1.15 * (1 - [37760] / 100)
Batteries_State_of_Capacity_remaining_Charge_Time h = bat_soc_energy_remaining / bat_charge_power_average_last_30mins / 1000
Batteries_State_of_Capacity_remaining_Discharge_Time h = bat_soc_energy / bat_discharge_power_average_last_24h / 1000
Solar_Yield_Self_Sufficiency_Total
House_Self_Sufficiency_Total
% = self_use / house_in
= ( inv_out - gid_out - inv_in_grid ) / ( inv_out + grid_in - gid_out - inv_in_grid )
= ( [32106] - [37119]  - inv_in_grid ) / ( [32106] + [37121] - [37119] - inv_in_grid )
House_Self_Sufficiency_Daily % = ( [32114] - UM([37119]) - inv_in_grid ) / ( [32114] + UM([37121]) - UM([37119]) - UM(inv_in_grid) )
32087 Inverter_Internal_Temperature °C
Inverter_Efficiency_Daily %
Inverter_Efficiency_Average %

Supporting staff

Clone this wiki locally