Entity Configuration Issues
Entities not found during setup
Error code:real_entity_not_found
When it occurs: During initial setup or reconfiguration when simulation mode is disabled.
Validation code (from config_flow.py:340-342):
Verify entity exists in Home Assistant
- Go to Developer Tools → States
- Search for your solar and load entity IDs
- Confirm they appear in the list
Check entity domain
- ✓
sensor.solar_power - ✗
switch.solar_power - ✗
input_number.solar_power
Ensure integration providing entities is loaded
Entity state unavailable
Error code:real_entity_unavailable
When it occurs: Entity exists but is in unknown or unavailable state.
Validation code (from config_flow.py:343-344):
Check source entity status
Verify hardware connectivity
- Check that your inverter or energy monitor is online
- Ensure network connectivity to the device
- Review the source integration’s logs for errors
Wait for entity to update
Entity value not numeric
Error code:real_entity_not_numeric
When it occurs: Entity exists and is available, but the state is not a number.
Validation code (from config_flow.py:345-348):
Check current state value
- ✓
1500(valid) - ✓
2.5(valid) - ✗
On(invalid) - ✗
Producing(invalid) - ✗
--(invalid)
Use the correct entity
- ✓ Use:
sensor.solaredge_current_power - ✗ Don’t use:
sensor.solaredge_status
Invalid unit of measurement
Error code:real_entity_unit_not_w
When it occurs: Entity is numeric but doesn’t report power in watts (W) or kilowatts (kW).
Validation code (from config_flow.py:350-352):
Check entity unit
unit_of_measurement:- ✓
W(watts) - ✓
kW(kilowatts) - ✗
A(amps) - ✗
V(volts) - ✗
kWh(energy, not power)
Find the correct power sensor
- Power sensors update frequently and show current load
- Energy sensors accumulate over time and increase continuously
Real mode requires both entities
Error code:real_entities_required
When it occurs: Simulation mode is disabled, but one or both required entities are not configured.
Validation code (from config_flow.py:325-330):
Provide both required entities
- Solar Power Entity
- Load Power Entity
Sensor Update Issues
Sensors not updating
Symptom: Sensors exist but show old values or never change. Common causes:- Integration not loaded
- Source entities not updating
- Configuration error preventing updates
- Coordinator in failed state
Verify integration is loaded
- Go to Settings → Devices & Services
- Find Energy Control Pro
- Status should show “Configured”, not “Failed” or “Setup error”
Check update interval
coordinator.py:94).Review logs for errors
- Go to Settings → System → Logs
- Filter for
energy_control_pro - Look for errors like:
UpdateFailed: Entity not foundUpdateFailed: Entity state unavailableUpdateFailed: Real mode requires solar_power_entity and load_power_entity
Confirm source entities are updating
last_changed timestamps are old, fix the source integration first.Sensors show unexpected values
Symptom: Calculated values like surplus, import, or export don’t make sense. Understanding the calculations (fromlogic.py):
surplus_w = solar_w - load_wgrid_import_w = max(0, -(solar_w - load_w))(only when load > solar)grid_export_w = max(0, solar_w - load_w)(only when solar > load)
Verify source values are correct
sensor.energy_control_pro_solar_w and sensor.energy_control_pro_load_w match your expectations.Understand negative surplus
- Solar: 1000W
- Load: 1500W
- Surplus: -500W
- Grid Import: 500W
Optimization Issues
Optimization switch exists but no actions execute
Symptom:switch.energy_control_pro_optimization is ON, but loads never turn on or off.
Common causes:
- No load entities configured
- Thresholds not met
- Duration requirements not satisfied
- Anti-flapping protections active
- Loads already in desired state
Ensure at least one load is configured
- Load 1 Entity
- Load 2 Entity
- Load 3 Entity
Verify conditions are met for actions
optimization/engine.py, loads turn ON when:- Export duration ≥ configured threshold (default: 10 min)
- Surplus ≥ load’s min_surplus_w (default: 1200W)
- Cooldown period has passed since last turn-off
- Grid import ≥ import_threshold_w (default: 800W)
- Import duration ≥ duration threshold (default: 10 min)
- Min on-time has passed since last turn-on
Monitor durations
sensor.energy_control_pro_export_duration_minsensor.energy_control_pro_import_duration_min
Review last action sensor
sensor.energy_control_pro_last_action for clues:"No actions yet": Conditions haven’t been met"Optimization OFF": Switch is off- Recent action message: System is working
Loads turn on/off too frequently (flapping)
Symptom: Loads oscillate on and off repeatedly. Cause: Anti-flapping protections are too low or conditions are borderline. Solution:Increase anti-flapping timers
- Min On Time: Time load must stay on before it can turn off (default: 10 min)
- Cooldown: Time load must stay off before it can turn on again (default: 10 min)
Increase duration threshold
Adjust surplus requirements
min_surplus_w, small fluctuations can cause the condition to toggle.Add a safety margin:- Water heater uses 1000W
- Set
min_surplus_wto 1200W (20% margin)
Wrong load is turning on/off
Symptom: Lower-priority load activates before higher-priority load. Understanding priority (fromoptimization/engine.py:63,96):
-
Turn ON: Sorted by priority ascending (priority 1 first)
-
Turn OFF: Sorted by priority descending (priority 3 first)
Verify priority configuration
- Load 1 Priority (should be 1 for highest)
- Load 2 Priority (should be 2 for medium)
- Load 3 Priority (should be 3 for lowest)
Check surplus requirements
- Load 1 (priority 1): needs 2000W
- Load 2 (priority 2): needs 1000W
- Surplus: 1500W
Alert Issues
Not receiving persistent notifications
Symptom: No notifications appear even when thresholds are exceeded. Solution:Verify threshold and duration settings
coordinator.py:201-226, alerts trigger when:Export alert:grid_export_w > export_threshold_w(default: 800W)export_duration_min >= duration_threshold_min(default: 10 min)- Alert hasn’t already been sent
grid_import_w > import_threshold_w(default: 800W)solar_w > 300W(hardcoded)- Alert hasn’t already been sent
Check duration requirements
sensor.energy_control_pro_export_duration_minsensor.energy_control_pro_import_duration_min
Verify notifications aren't dismissed
energy_control_pro_prolonged_grid_exportenergy_control_pro_import_while_solar
Too many notifications
Symptom: Getting alert spam during borderline conditions. Solution:Increase duration threshold
Increase power thresholds
- Export Threshold: 1000W (from 800W)
- Import Threshold: 1000W (from 800W)
Configuration Issues
Cannot add multiple instances
Symptom: Trying to add a second Energy Control Pro integration fails. Cause: Only one instance is allowed per Home Assistant installation. Solution: This is intentional. The integration uses a unique ID (const.py:5):
config_flow.py:106-107:
Configuration changes don’t take effect
Symptom: Changed settings but behavior hasn’t updated. Solution:Check runtime entities
- Optimization enabled: controlled by
switch.energy_control_pro_optimization - Strategy: controlled by
select.energy_control_pro_strategy
Getting Additional Help
If issues persist:Collect diagnostics
- Go to Settings → Devices & Services → Energy Control Pro
- Click on the integration
- Select Download Diagnostics
- Save the file
Check for known issues