heinoskov / huawei-solar-battery-optimizations

This yaml package file for Home Assistant provides a set of scripts and automations to optimize the use of a Huawei solar battery system.
9 stars 1 forks source link

Optimize morning routine battery optimization for seasonal house load #3

Closed heinoskov closed 1 month ago

heinoskov commented 1 month ago

Currently, the "HSBO Implement Daily Optimization" automation runs at 6:05 AM and sets the working mode to "TOU and Disable Battery Charging and Discharging" regardless of the season. This approach may be suitable for summer months (May to September) when solar production starts early and can meet morning household demands. However, during the rest of the year (October to April), this strategy may not be optimal. In the colder months, solar production typically starts later and may not be sufficient to meet the morning household load. By disabling battery usage during this time, the system forces the house to draw power from the grid, potentially at higher costs, instead of utilizing stored energy in the battery.

The challenge is to implement a more adaptive strategy that:

  1. Recognizes the current season (summer vs. winter months).
  2. Adjusts the morning battery usage strategy based on the season including house load assumptions (could vary if using heating pumps etc).
  3. In winter months (October to April), allows battery discharge in the morning to meet household loads before solar production ramps up.
  4. In summer months (May to September), optimize the current strategy of disabling battery usage to prioritize grid feeding of excess solar production but count in when solar production is sufficient to provide electricity to house load.

This seasonal adaptation should improve overall energy efficiency and potentially reduce electricity costs during winter months by making better use of stored battery power during peak morning usage times.

Easy fix is to extend the TOU periods until 9am.

heinoskov commented 1 month ago

@woopstar any thoughts on this?

heinoskov commented 1 month ago

@woopstar could you check this branch as its a bigger update to how we ensure correct working mode throughout the day...

https://github.com/heinoskov/huawei-solar-battery-optimizations/tree/3-optimize-morning-routine-battery-optimization-for-seasonal-house-load

Added new automation hsbo_comprehensive_daily_mode_management Added 06:00-10:00/1234567/- to Default TOU Updated hsbo_implement_daily_optimization (removed script as its in the new automation Commented out hsbo_switch_to_approriate_mode_at_5_pm and hsbo_check_and_change_mode (as they are incorporated in the new automaton and to be removed later)

heinoskov commented 1 month ago

I just realized we have two other automations also setting working mode...

HSBO: Manage inverter export based on spot price HSBO Calculate Next Day Charging at 9 PM (which sets the night working mode)

I need to incorporate these in this hsbo_comprehensive_daily_mode_management automation to avoid conflicts and flopping in and out of several modes.