Optimization Switch
Global switch to enable or disable optimization functionality.This switch controls whether Energy Control Pro actively manages connected loads based on available solar surplus. When enabled, the system monitors power flows and automatically turns loads on/off according to the selected strategy. When disabled, no optimization actions are performed.
Display name of the switch entity
Format:
{entry_id}_optimizationMaterial Design Icon identifier
Current state of the optimization switch
true: Optimization is enabled and activefalse: Optimization is disabled
Services
The switch supports standard Home Assistant switch services:Turn On
Enables the optimization engine.Turn Off
Disables the optimization engine.Toggle
Toggles the optimization state.Implementation Details
async_set_optimization_enabled(True) - Called when turning onasync_set_optimization_enabled(False) - Called when turning offThe switch state is read from coordinator data key
optimization_enabled