Overview
This page documents all configuration options available in Energy Control Pro, including their constant names, default values, and valid options.Core Configuration
Simulation Mode
Enable simulation mode to test the integration with synthetic solar and load profiles instead of real sensors.Constant:
CONF_SIMULATIONProfile Selection
Solar profile to use when simulation mode is enabled. Choose from predefined daily patterns.Constant:
CONF_PROFILEValid options:sunny_day- High solar production throughout the day (const:PROFILE_SUNNY_DAY)cloudy_day- Variable solar production with clouds (const:PROFILE_CLOUDY_DAY)winter_day- Low solar production winter pattern (const:PROFILE_WINTER_DAY)
Entity Configuration
Solar Power Entity
Home Assistant sensor entity that reports solar power production in watts (W) or kilowatts (kW). Required when simulation mode is disabled.Constant:
CONF_SOLAR_POWER_ENTITYExample: sensor.solar_powerLoad Power Entity
Home Assistant sensor entity that reports grid import/export power in watts (W) or kilowatts (kW). Positive values indicate grid import, negative values indicate grid export. Required when simulation mode is disabled.Constant:
CONF_LOAD_POWER_ENTITYExample: sensor.grid_powerThreshold Configuration
Import Threshold
Grid import power threshold in watts. The system triggers import alerts when grid import exceeds this value for the configured duration.Constant:
Default:
CONF_IMPORT_THRESHOLD_WDefault:
DEFAULT_IMPORT_THRESHOLD_W = 800Range: 0-20000W (step: 100W)Export Threshold
Grid export power threshold in watts. The system triggers export alerts when grid export exceeds this value for the configured duration.Constant:
Default:
CONF_EXPORT_THRESHOLD_WDefault:
DEFAULT_EXPORT_THRESHOLD_W = 800Range: 0-20000W (step: 100W)Duration Threshold
Minimum duration in minutes that import or export must persist above thresholds before triggering state changes.Constant:
Default:
CONF_DURATION_THRESHOLD_MINDefault:
DEFAULT_DURATION_THRESHOLD_MIN = 10Range: 1-180 minutesOptimization Configuration
Optimization Enabled
Enable the load optimization engine to automatically control configured loads based on solar surplus and grid import.Constant:
Default:
CONF_OPTIMIZATION_ENABLEDDefault:
DEFAULT_OPTIMIZATION_ENABLED = FalseOptimization Strategy
Strategy used by the optimization engine to control loads.Constant:
Default:
CONF_STRATEGYDefault:
DEFAULT_STRATEGY = "maximize_self_consumption"Valid strategies:maximize_self_consumption- Maximize use of solar energy (const:STRATEGY_MAXIMIZE_SELF_CONSUMPTION)avoid_grid_import- Minimize grid import (const:STRATEGY_AVOID_GRID_IMPORT)balanced- Balance between self-consumption and grid import avoidance (const:STRATEGY_BALANCED)
Load Slot Configuration
Each load slot (1-3) supports the following configuration parameters:Load Entity
Home Assistant switch or input_boolean entity to control. The optimization engine will turn this entity on/off based on surplus solar or grid import conditions.Constants:
CONF_LOAD_1_ENTITY, CONF_LOAD_2_ENTITY, CONF_LOAD_3_ENTITYExample: switch.water_heaterMinimum Surplus
Minimum solar surplus in watts required before this load will be turned on.Constants:
Default:
CONF_LOAD_1_MIN_SURPLUS_W, CONF_LOAD_2_MIN_SURPLUS_W, CONF_LOAD_3_MIN_SURPLUS_WDefault:
DEFAULT_LOAD_MIN_SURPLUS_W = 1200Range: 0-20000W (step: 100W)Minimum On Time
Minimum time in minutes that the load must stay on once turned on before it can be turned off by the optimization engine.Constants:
Default:
CONF_LOAD_1_MIN_ON_TIME_MIN, CONF_LOAD_2_MIN_ON_TIME_MIN, CONF_LOAD_3_MIN_ON_TIME_MINDefault:
DEFAULT_LOAD_MIN_ON_TIME_MIN = 10Range: 0-180 minutesCooldown Period
Minimum time in minutes that must elapse after turning off before this load can be turned on again.Constants:
Default:
CONF_LOAD_1_COOLDOWN_MIN, CONF_LOAD_2_COOLDOWN_MIN, CONF_LOAD_3_COOLDOWN_MINDefault:
DEFAULT_LOAD_COOLDOWN_MIN = 10Range: 0-180 minutesPriority
Priority level for this load. Lower numbers have higher priority. When turning on loads with surplus solar, the highest priority (lowest number) eligible load is turned on first. When turning off loads due to grid import, the lowest priority (highest number) load is turned off first.Constants:
Defaults: Load 1 = 1, Load 2 = 2, Load 3 = 3Range: 1-3
CONF_LOAD_1_PRIORITY, CONF_LOAD_2_PRIORITY, CONF_LOAD_3_PRIORITYDefaults: Load 1 = 1, Load 2 = 2, Load 3 = 3Range: 1-3