What problems does it solve?
If you use solar panels with Home Assistant, you probably run into at least one of these:- Exporting energy to the grid without noticing
- Importing from the grid while solar is still available
- Maintaining fragile automations that are hard to tune
How it works
The integration calculates your solar, load, and grid balance every 10 seconds and makes intelligent decisions based on sustained conditions.Monitor energy flow
Energy Control Pro continuously monitors your solar production and home load to calculate surplus and grid balance.
Detect sustained conditions
When grid export or import stays above your configured threshold for a minimum duration (default 10 minutes), the integration detects it.
Send alerts
You receive persistent Home Assistant notifications when sustained export or import conditions are detected.
Example scenario
Here’s how Energy Control Pro works in practice:Turning on a load with surplus solar
Turning on a load with surplus solar
Conditions:
- Solar production: 1500W
- Home load: 400W
- Surplus: 1100W
- Turns ON
switch.boiler - Registers last action: “Turned ON switch.boiler (surplus 1100W for 10 min)”
Turning off a load during grid import
Turning off a load during grid import
Conditions:
- Solar production: 200W
- Home load: 1100W
- Grid import: 900W
- Turns OFF
switch.boiler - Registers last action: “Turned OFF switch.boiler (import 900W for 10 min)“
Key features
Real-time monitoring
Energy balance calculated every 10 seconds with dedicated sensors for solar, load, surplus, grid import, and grid export.
Simulation mode
Three built-in profiles (sunny day, cloudy day, winter day) for testing dashboards and automations without real hardware.
Persistent alerts
Automatic notifications when grid export or import conditions persist beyond your configured thresholds.
Smart load control
Control up to 3 loads with priority logic, anti-flapping protection, minimum on-time, and cooldown periods.
Sensors created
When you set up Energy Control Pro, you get these sensors:sensor.solar_w- Current solar power productionsensor.load_w- Current home load consumptionsensor.surplus_w- Current surplus (solar minus load)sensor.grid_import_w- Power being imported from gridsensor.grid_export_w- Power being exported to gridsensor.energy_state- Current state:importing,exporting, orbalancedsensor.import_duration_min- How long you’ve been importingsensor.export_duration_min- How long you’ve been exportingsensor.energy_control_pro_last_action- Last optimization action taken
All sensors update every 10 seconds to give you real-time visibility into your energy flow.
Optimization strategies
Choose from three built-in strategies to match your goals:- Maximize self-consumption (default) - Turn on loads as soon as sustained surplus is available
- Avoid grid import - Focus on turning off loads when importing from grid
- Balanced - Balanced approach between the two strategies
Anti-flapping protection
Energy Control Pro includes several protections to prevent devices from cycling on and off too frequently:- Duration thresholds - Conditions must persist for a minimum time before taking action
- Minimum on-time - Loads must stay on for a minimum duration before being turned off
- Cooldown periods - Loads must wait a minimum time after turning off before being turned on again
- Priority logic - Highest priority loads turn on first, lowest priority loads turn off first
These protections are configurable per load, giving you fine-grained control over each device’s behavior.