Strategy Select
Runtime strategy selector for optimization behavior.This select entity allows you to choose which optimization strategy the system uses when managing loads. Each strategy has different priorities and behaviors for balancing self-consumption, grid usage, and load management.
Display name of the select entity
Format:
{entry_id}_strategyMaterial Design Icon identifier
Currently selected strategy (one of the available options)
Available strategy options:
maximize_self_consumptionavoid_grid_importbalanced
Available Strategies
Maximize Self Consumption
Prioritizes using all available solar power within the home.This strategy aims to maximize the amount of solar energy consumed on-site rather than exporting to the grid. It aggressively turns on loads when surplus is available to utilize excess solar generation.
Defined in const.py:43
This is the default strategy (DEFAULT_STRATEGY in const.py:37)
Avoid Grid Import
Minimizes power drawn from the electrical grid.This strategy focuses on reducing or eliminating grid import by carefully managing loads to stay within solar generation capacity. It may be more conservative about turning on loads compared to maximize_self_consumption.
Defined in const.py:44
Balanced
Balances between self-consumption and grid import avoidance.This strategy provides a middle ground between the other two approaches, attempting to optimize both self-consumption and grid import reduction.
Defined in const.py:45
Services
The select entity supports standard Home Assistant select services:Select Option
Changes the active optimization strategy.Implementation Details
async_set_strategy(option) - Called when selecting a new strategyThe current strategy is read from coordinator data key
strategyAvailable strategies are defined in STRATEGIES tuple in const.py:46-50