-
Notifications
You must be signed in to change notification settings - Fork 2
Used Sensors
Joerg Heinemann edited this page Nov 13, 2024
·
34 revisions
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 |
---|
Reg | Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|---|
32016 |
Inverter_PV_1_Voltage pv_1_voltage |
V | sensor | Huawei Solar | |
32017 |
Inverter_PV_1_Current pv_1_current |
A | sensor | Huawei Solar | |
Inverter_PV_1_Power pv_1_power |
W | = pv_1_voltage * pv_1_current = [32016] * [32017] |
sensor | Template | |
32018 |
Inverter_PV_2_Voltage pv_2_voltage |
V | sensor | Huawei Solar | |
32019 |
Inverter_PV_2_Current pv_2_current |
A | sensor | Huawei Solar | |
Inverter_PV_2_Power pv_2_power |
W | = pv_2_voltage * pv_2_current = [32018] * [32019] |
sensor | Template | |
Inverter_PV_Power pv_power |
W | = pv_1_power + pv_2_power = [32016] * [32017] + [32018] * [32019] |
sensor | Template | |
32064 |
Inverter_Input_Power inv_in_power |
W | sensor | Huawei Solar | |
inv_in_power_corrected |
W | sensor | Template | ||
32080 |
Inverter_Active_Power inv_active_power |
W | In(-), Out(+) | sensor | Huawei Solar |
37765 | W | = bat_active_power = inv_in_power - inv_active_power In(+), Out(-) |
sensor | Huawei Solar | |
Batteries_Active_Power bat_active_power |
W | = inv_in_power - inv_active_power = [32064] - [32080] In(+), Out(-) |
sensor | Template | |
Batteries_Charge_Power bat_in_power |
W | = max(0, bat_active_power) = max(0, [32064] - [32080]) |
sensor | Template | |
Batteries_Charge_Power_Mean_30min bat_in_power_mean_30min |
W | = statistics(bat_in_power, mean, 0.5h) = statistics(max(0, [32064] - [32080], mean, 0.5h) |
sensor | Statistics | |
Batteries_Charge_from_Grid_Power inv_in_grid_power |
W | = -min(0, inv_active_power) = -min(0, [32080]) |
sensor | Template | |
Batteries_Discharge_Power bat_out_power |
W | = -min(0, bat_active_power**) = -min(0, [32064] - [32080]) |
sensor | Template | |
Batteries_Discharge_Power_Mean_24h bat_out_power_mean_24h |
W | = statistics(bat_out_power, mean, 24h) = statistics(-min(0, [32064] - [32080]), mean, 24h) |
sensor | Statistics | |
37113 |
Power_Meter_Active_Power grid_active_power |
W | In(-), Out(+) | sensor | Huawei Solar |
Grid_Import_Power grid_in_power |
W | = -min(0, grid_active_power) = -min(0, [37113]) |
sensor | Template | |
Grid_Export_Power grid_out_power |
W | = max(0, grid_active_power) = max(0, [37113]) |
sensor | Template | |
House_Consumption_Power house_power |
W | = inv_in_power - bat_active_power - grid_active_power = inv_in_power - (inv_in_power - inv_active_power) - grid_active_power = inv_active_power - grid_active_power = [32080] - [37113] |
sensor | Template |
Reg | Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|---|
32108 |
Inverter_Total_DC_Input_Energy pv_yield_total |
kWh | = pv_yield_strings | sensor | Huawei Solar |
PV_Yield_Quarter_Hourly PV_Yield_Hourly PV_Yield_Daily pv_yield |
kWh | = UM(pv_yield_total) = UM([32108]) |
sensor | Utility Meter | |
PV_Yield_Strings | kWh | = integration(pv_power, left) = integration([32016] * [32017] + [32018] * [32019], left) |
sensor | Integral | |
PV_Yield_Strings_Quarter_Hourly PV_Yield_Strings_Hourly PV_Yield_Strings_Daily |
kWh | = UM(pv_yield_strings) | sensor | Utility Meter | |
Solar_Yield | kWh | = integration(inv_in_power, left) = integration([32064], left) |
sensor | Integral | |
Solar_Yield_Quarter_Hourly Solar_Yield_Hourly Solar_Yield_Daily inv_in_solar |
kWh | = UM([solar_yield]) | sensor | Utility Meter | |
|
kWh | = max(0, (inv_out_total - bat_out_total + bat_in_total)) = max(0, ([32106] - [37068] + [37066])) |
sensor | Template | |
|
kWh | = max(0, (inv_out - bat_out + bat_in)) = max(0, ([32114] - [37017] + [37015])) |
sensor | Template | |
32106 |
Inverter_Total_Yield inv_out_total |
kWh | sensor | Huawei Solar | |
Inverter_Yield_Quarter_Hourly Inverter_Yield_Hourly Inverter_Yield_Weekly inv_out_weekly Inverter_Yield_Monthly inv_out_monthly Inverter_Yield_Yearly inv_out_yearly |
kWh | = UM(inv_out_total) = UM([32106]) |
sensor | Utility Meter | |
32114 |
Inverter_Daily_Yield inv_out |
kWh | sensor | Huawei Solar | |
37119 |
Power_Meter_Exported grid_out_total |
kWh | sensor | Huawei Solar | |
Power_Meter_Exported_Energy_Daily grid_out Power_Meter_Exported_Energy_Weekly grid_out_weekly Power_Meter_Exported_Energy_Monthly grid_out_monthly Power_Meter_Exported_Energy_Yearly grid_out_yearly |
kWh | = UM(grid_out_total) = UM([37119]) |
sensor | Utility Meter | |
37121 |
Power_Meter_Consumption grid_in_total |
kWh | sensor | Huawei Solar | |
Power_Meter_Consumption_Energy_Hourly Power_Meter_Consumption_Energy_Daily grid_in Power_Meter_Consumption_Energy_Weekly Power_Meter_Consumption_Energy_Monthly Power_Meter_Consumption_Energy_Yearly |
kWh | = UM(grid_in_total) = UM([37121]) |
sensor | Utility Meter | |
37066 |
Batteries_Total_Charge bat_in_total |
kWh | sensor | Huawei Solar | |
Batteries_Charge_from_Grid_Energy_Total inv_in_grid_total |
kWh | = integration(inv_in_grid_power, left) = integration(-min(0, inv_active_power), left) = integration(-min(0, [32080]), left) |
sensor | Integral | |
Batteries_Charge_from_Grid_Energy_Daily inv_in_grid |
kWh | = UM(inv_in_grid_total) | sensor | Utility Meter | |
37068 |
Batteries_Total_Discharge bat_out_total |
kWh | sensor | Huawei Solar | |
37015 |
Batteries_Day_Charge bat_in |
kWh | sensor | Huawei Solar | |
Batteries_Day_Charge_with_Loss bat_in_with_loss |
kWh | = bat_in + bat_in_loss = [37015] + bat_in_loss |
sensor | Template | |
37017 |
Batteries_Day_Discharge bat_out |
kWh | sensor | Huawei Solar | |
Batteries_Day_Discharge_with_Loss bat_out_with_loss |
kWh | = bat_out - bat_out_loss = [37017] - bat_out_loss |
sensor | Template | |
Inverter_Loss_Daily inv_loss |
kWh | = bat_in_loss + bat_out_loss = inv_in_solar + inv_in_grid + bat_out - bat_in - inv_out = inv_in_solar + inv_in_grid + [37017] - [37015] - [32114] |
sensor | Template | |
Batteries_Charge_Loss_Daily bat_in_loss |
kWh | if([37765] >= 0) = inv_loss - bat_out_loss |
sensor | Template | |
Batteries_Discharge_Loss_Daily bat_out_loss |
kWh | if([37765] < 0) = inv_loss - bat_in_loss |
sensor | Template | |
House_Consumption_Energy_Total house_in_total |
kWh | = inv_out_total - grid_out_total + grid_in_total - inv_in_grid_total = [32106] - [37119] + [37121] - inv_in_grid_total |
sensor | Template | |
House_Consumption_Energy_Daily house_in House_Consumption_Energy_Weekly House_Consumption_Energy_Monthly House_Consumption_Energy_Yearly |
kWh | = UM(house_in_total) | sensor | Utility Meter | |
House_Consumption_Energy_Daily_Control | kWh | = inv_in_solar - bat_in_with_loss - grid_out + grid_in + bat_out_with_loss | sensor | Template | |
House_Consumption_Solar_Energy_Daily house_in_solar |
kWh | = inv_in_solar + inv_in_grid - bat_in_with_loss - grid_out | sensor | Template | |
Inverter_Yield_Self_Use_Total self_use_total |
kWh | = inv_out_total - grid_out_total = [32106] - [37119] |
sensor | Template | |
Inverter_Yield_Self_Use_Daily self_use Inverter_Yield_Self_Use_Weekly Inverter_Yield_Self_Use_Monthly Inverter_Yield_Self_Use_Yearly |
kWh | = UM(self_use_total) | sensor | Utility Meter |
Reg | Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|---|
37046 |
Batteries Maximum charge power bat_rated_charge_power |
W | sensor | Huawei Solar | |
37048 |
Batteries Maximum discharge power bat_rated_discharge_power |
W | sensor | Huawei Solar | |
37758 |
Batteries_Rated_Capacity bat_rated_capacity |
Wh | sensor | Huawei Solar | |
37760 |
Batteries_State_of_capacity bat_soc |
% | sensor | Huawei Solar | |
Batteries_State_of_Energy bat_soe |
kWh | = bat_rated_capacity * bat_soc / 100 = [37758] * [37760] / 100 |
sensor | Template | |
Batteries_Max_End_of_Charge_Energy bat_max_eoc |
kWh | = bat_rated_capacity * 1.15 = [37758] * 1.15 |
|||
Batteries_End_of_Charge_Energy bat_eoc |
kWh | = bat_max_eoc * (1 - bat_soc / 100) = [37758] * 1.15 * (1 - [37760] / 100) |
sensor | Template | |
Batteries_End_of_Charge_Time bat_eoc_time |
h | = bat_eoc / bat_in_power_mean_30min / 1000 | sensor | Template | |
Batteries_End_of_Discharge_Time bat_eod_time |
h | = bat_soe / bat_out_power_mean_24h / 1000 | sensor | Template | |
House_Self_Sufficiency_Total self_sufficiency_total |
% | = self_use_total / house_in_total | sensor | Template | |
House_Self_Sufficiency_Daily self_sufficiency_daily |
% | = self_use / house_in | sensor | Template | |
32087 | Inverter_Internal_Temperature | °C | sensor | Huawei Solar | |
30362 |
Inverter_Rated_power inv_rated_power |
W | sensor | Huawei Solar | |
30075 |
Inverter Max active power inv_max_active_power sensor.inverter_power |
W | sensor | Huawei Solar | |
Inverter_Total_Efficiency inv_efficiency_total |
% | = inv_out_total / (pv_yield_total + bat_out_total - bat_in_total) * 100 = [32106] / ([32108] + [37068] - [37066]) * 100 |
sensor | Template | |
Inverter_Daily_Efficiency inv_efficiency |
% | = inv_out / (pv_yield + bat_out - bat_in) * 100 = [32114] / (UM([32108]) + [37017] - [37015]) |
sensor | Template | |
Inverter_Efficiency_Average | % |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
emhass_naive_mpc_optim_forecast emhass_forecast |
automation | |||
emhass_prediction_horizon emhass_prediction_horizon |
((prediction_end_time_tomorrow - now())/60/30) + 1 | sensor | template | |
emhass_forecast_data | sensor | template | ||
emhass_publish_data | rest command | |||
emhass_perfect_optim | rest command | |||
emhass_dayahead_optim_forecast | rest command | |||
emhass_naive_mpc_optim_forecast | rest command | |||
emhass_ml_load_forecast_model_fit | rest command | |||
emhass_ml_load_forecast_model_predict | rest command | |||
emhass_ml_load_forecast_model_tune | rest command | |||
p_grid_forecast emhass_grid_active_power_forecast |
W | sensor | emhass | |
p_load_forecast house_power_forecast |
W | sensor | emhass | |
p_hybrid_inverter inv_active_power_forecast |
W | sensor | emhass | |
p_batt_forecast bat_active_power_forecast |
W | sensor | emhass | |
optim_status emhass_optim_status |
sensor | emhass |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
batteries_soc_setpoint_low bat_soc_setpoint_low |
% | input_number | helper | |
batteries_soc_setpoint_neutral bat_soc_setpoint_neutral |
% | input_number | helper | |
batteries_soc_setpoint_high bat_soc_setpoint_high |
% | input_number | helper | |
batteries_soc_setpoint_forcible_charge bat_soc_setpoint_forcible_charge |
% | input_number | helper | |
epexspot_quantile_setpoint_low | input_number | helper | ||
epexspot_quantile_setpoint_neutral | input_number | helper | ||
epexspot_quantile_setpoint_high | input_number | helper | ||
batteries_charge_from_grid inv_in_grid_control |
binary_sensor | template | ||
batteries_maximum_charging_power bat_max_charge_power_control |
binary_sensor | template | ||
batteries_maximum_discharging_power bat_max_discharge_power_control |
binary_sensor | template | ||
batteries_forcible_charge bat_forcible_charge_control |
binary_sensor | template | ||
load_forecast_remaining_today_every_minute house_in_forecast |
kWh | sensor | template | |
solcast_forecast_remaining_today_every_minute inv_in_solar_forecast |
kWh | sensor | template |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
hems_sun_pv_excess_start_rising_offset pv_excess_start_rising_offset |
% | input_number | helper | |
hems_sun_pv_excess_end_setting_offset pv_excess_end_setting_offset |
% | input_number | helper | |
hems_sun_prediction_end_setting_offset prediction_end_setting_offset |
% | input_number | helper | |
hems_sun_rising rising_time |
sensor | sun2 | ||
hems_sun_setting setting_time |
sensor | sun2 | ||
hems_sun_solar_noon solar_noon_time |
sensor | sun2 | ||
hems_sun_prediction_end prediction_end_time |
sensor | template | ||
hems_sun_pv_excess_start pv_excess_start_time |
sensor | template | ||
hems_sun_pv_excess_end pv_excess_end_time |
sensor | template |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
automation.epex_spot_fetch_data epexspot_fetch_data |
automation | |||
epex_spot_data_update epexspot_data_update |
binary_sensor | template | ||
epex_spot_data_price epexspot_price |
EUR/MWh | sensor | template | |
epex_spot_data_price_3 epexspot_price_1 |
EUR/MWh | sensor | epexspot | |
epex_spot_data_price_1 epexspot_price_2 |
EUR/MWh | sensor | epexspot | |
epex_spot_data_price_2 epexspot_price_3 |
EUR/MWh | sensor | epexspot | |
epex_spot_data_net_price epexspot_net_price |
ct/kWh | sensor | template | |
epex_spot_data_net_price_3 epexspot_net_price_1 |
ct/kWh | sensor | epexspot | |
epex_spot_data_net_price_1 epexspot_net_price_2 |
ct/kWh | sensor | epexspot | |
epex_spot_data_net_price_2 epexspot_net_price_3 |
ct/kWh | sensor | epexspot | |
epex_spot_data_rank epexspot_rank |
sensor | template | ||
epex_spot_data_rank_3 epexspot_rank_1 |
sensor | epexspot | ||
epex_spot_data_rank_1 epexspot_rank_2 |
sensor | epexspot | ||
epex_spot_data_rank_2 epexspot_rank_3 |
sensor | epexspot | ||
epex_spot_data_quantile epexspot_quantile |
sensor | template | ||
epex_spot_data_quantile_3 epexspot_quantile_1 |
sensor | epexspot | ||
epex_spot_data_quantile_1 epexspot_quantile_2 |
sensor | epexspot | ||
epex_spot_data_quantile_2 epexspot_quantile_3 |
sensor | epexspot |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
solcast_pv_forecast_prognose_heute solcast_forecast_today |
kWh | sensor | solcast | |
solcast_pv_forecast_prognose_fur_morgen solcast_forecast_tomorrow |
kWh | sensor | solcast | |
solcast_pv_forecast_zuletzt_abgefragte_api solcast_poll |
sensor | solcast | ||
solcast_pv_forecast_api_limit solcast_api_limit |
sensor | solcast | ||
solcast_pv_forecast_verwendete_api solcast_api_used |
sensor | solcast | ||
solcast_pv_forecast_api_update solcast_api_update |
automation | |||
solcast_pv_forecast_api_update solcast_api_update_control |
sensor | template |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
406_wp_sg_ready_evu sg_ready_hp_lock |
switch | shelly | ||
406_wp_sg_ready_pv_ma sg_ready_pv_excess |
switch | shelly | ||
sg_ready_mode | sensor | template |
Entity | Unit | Calculation | Type | Integration |
---|---|---|---|---|
tibber_prices | EUR | sensor | rest | |
tibber_electricity_spot_price | EUR | sensor | rest | |
tibber_hourly_cost | EUR | sensor | rest | |
tibber_daily_cost | EUR | sensor | rest | |
tibber_monthly_cost | EUR | sensor | rest | |
tibber_yearly_cost | EUR | sensor | rest | |
tibber_strompreisentwicklung_website_text | sensor | multiscrape | ||
tibber_basic_fee_monthly | € | input_number | helper | |
tibber_grid_usage_fee_daily | € | input_number | helper | |
tibber_electricity_meter_fee_daily | € | input_number | helper | |
tibber_vat_rate | input_number | helper | ||
tibber_hourly_cost_total | EUR | sensor | template | |
tibber_daily_cost_total | EUR | sensor | template | |
tibber_monthly_cost_total | EUR | sensor | template | |
tibber_yearly_cost_total | EUR | sensor | template | |
tibber_hourly_cost_statistics | EUR | sensor | template | |
tibber_daily_cost_statistics | EUR | sensor | template | |
tibber_monthly_cost_statistics | EUR | sensor | template | |
tibber_yearly_cost_statistics | EUR | sensor | template |
Suggest an edit to this page, or provide/view feedback for this page.