Setup Guide - heinoskov/huawei-solar-battery-optimizations GitHub Wiki
Huawei Solar Battery Optimization Setup Guide
This guide will help you set up the required input sensors for the Huawei Solar Battery Optimization package. Follow these steps to ensure all necessary entities are correctly configured.
Prerequisites
Before starting, make sure you have the following integrations installed and configured:
- Huawei Solar integration by wlcrs
- Solcast integration by oziee
- Energi Data Service integration by MTrab
For Energi Data Service please create two sensors - one for the total price and one for the spotprice
Configuration Steps
1. Huawei Solar Device IDs
Find your Huawei Solar inverter and battery device IDs in the Home Assistant developer tools:
input_text.hsbo_device_id_inverter
: Your Huawei inverter device IDinput_text.hsbo_device_id_batteries
: Your Huawei battery device ID
To find the device IDs follow these steps:
- Go to Developer Tools - Actions
- In the action box, write Huawei Solar: Forcible Charge (to find Batteries ID)
- Find your device in the dropdown select "Batteries" for your battery (do not use Battery 1)
- Select "GO TO YAML MODE"
- Note down ID for the device
Repeat above steps to find your inverter. Use "Huawei Solar: Limit the power fed to the grid" to find Inverter ID the same way.
2. Energi Data Service Sensors
Locate the correct entities from the Energi Data Service integration:
input_text.hsbo_energi_data_service_total_price
: Type the name of your entity for total electricity price i.e. sensor.energi_data_service_total_priceinput_text.hsbo_energi_data_service_spot_price
: Type the name of your entity for spot electricity price i.e. sensor.energi_data_service_total_price
3. Solcast PV Forecast Sensors
Find the Solcast forecast entities:
input_text.hsbo_solcast_pv_forecast_forecast_today
: Today's PV forecast entity i.e sensor.solcast_pv_forecast_forecast_todayinput_text.hsbo_solcast_pv_forecast_forecast_tomorrow
: Tomorrow's PV forecast entity i.e. sensor.solcast_pv_forecast_forecast_tomorrow
Note: This integration is tested with Solcast and not other Solar Forecast integrations.
4. Power Consumption and Production Sensors
Identify your home's consumption and solar production sensors:
input_text.hsbo_house_consumption_power
: Type the name of your entity for house power consumptioninput_text.hsbo_solar_production_power
: Type the name of your entity for solar power production i.e. sensor.inverter_input_power
5. Huawei Battery Sensors
Locate the following Huawei battery-related entities:
input_text.hsbo_batteries_grid_charge_cutoff_soc
: Entity for battery grid charge cutoff state of charge i.e. number.batteries_grid_charge_cutoff_socinput_text.hsbo_batteries_working_mode
: Entity for battery working mode i.e. select.batteries_working_modeinput_text.hsbo_batteries_excess_pv_energy_use_in_tou
: Entity for excess PV energy use in Time-of-Use mode i.e. select.batteries_excess_pv_energy_use_in_touinput_text.hsbo_batteries_state_of_capacity
: Entity for battery state of capacity ie. sensor.batteries_state_of_capacity
6. Huawei Inverter Sensor
Find the Huawei inverter active power control entity:
input_text.hsbo_inverter_active_power_control
: Entity for inverter active power control i.e. sensor.inverter_active_power_control
7. EV Charger Status (if applicable)
If you have an EV charger, locate its status entity:
input_text.hsbo_ev_charger_status
: Entity for EV charger status - state of this sensor must be "Charging" or "charging"
8. Battery Configuration
Set up the following input numbers for battery configuration:
input_number.hsbo_ac_charge_cutoff_soc
: Set the desired AC charge cutoff state of charge (default: 100) in percentageinput_number.hsbo_battery_max_capacity
: Set your battery's maximum capacity in kWh i.e. 10
Verifying Your Setup
After configuring all input sensors, restart Home Assistant and check the Huawei Solar Battery Optimization package entities to ensure they're working correctly. If you encounter any issues, double-check that all entity names match exactly and that the source entities are providing valid data.
Troubleshooting
If you experience problems after setup:
- Verify all entity names in your configuration.
- Check that source entities are providing valid data.
- Review Home Assistant logs for any error messages related to the package.
- Ensure all required integrations are up to date.
For further assistance, please open an issue on the GitHub repository with details about your setup and any error messages you're seeing and I may be able to help.