Dashboard Overview
The dashboard is located in the source repository:- Power snapshot: Current values for solar, load, grid import/export, and surplus
- 24-hour history graph: Power flows over the last day
- Grid status card: Live import/export state with dynamic messages
Importing the Dashboard
Locate the dashboard file
If you installed via HACS, the dashboard file is in your custom components directory:Alternatively, download it from the GitHub repository.
Create a new dashboard in Home Assistant
- Navigate to Settings → Dashboards
- Click Add Dashboard (bottom right)
- Choose New dashboard from scratch
- Enter a title:
Energy Control Pro Overview - Click Create
Switch to YAML mode
- Click the pencil icon (Edit Dashboard)
- Click the three-dot menu (top right)
- Select Raw configuration editor
Dashboard Components
Power Snapshot Card
Displays current power values from all integration sensors:- Solar: Current solar production (W)
- Load: Current home consumption (W)
- Grid Import: Power being imported from grid (W, 0 when exporting)
- Grid Export: Power being exported to grid (W, 0 when importing)
- Surplus: Solar - Load (can be negative)
Power Flows History Graph
Visualizes 24 hours of energy data:- Shows trends over the past day
- Refreshes every 60 seconds
- Overlays all power flows for easy comparison
- Helps identify patterns in solar production and consumption
Grid Status Card
A dynamic markdown card showing real-time grid interaction:- Importing: Shows when drawing power from grid with exact wattage
- Exporting: Shows when sending power to grid with exact wattage
- Balanced: Shows when grid interaction is minimal (< 100W)
Customizing the Dashboard
Adding Optimization Controls
Include the optimization switch and strategy selector:- Toggle to enable/disable optimization
- Dropdown to change strategy in real-time
- Display of the most recent optimization decision
Adding Energy State Information
Show current energy state and duration:- Current state:
importing,exporting, orbalanced - How long the current import condition has persisted
- How long the current export condition has persisted
Adding Load Status Cards
Monitor your controlled loads:Replace entity IDs with your actual load entities configured in the integration.
Changing Time Range
Adjust the history graph duration:12: Half day24: Full day (default)48: Two days168: Full week
Mobile Optimization
The default dashboard works on mobile, but you can optimize it:Stack Cards Vertically
Use a vertical stack for better mobile viewing:Reduce History Graph Height
Monitoring Optimization State
The dashboard helps you understand when and why the integration takes action:Watch for Actions
sensor.energy_control_pro_last_action updates with messages like:
"Turned ON switch.boiler (surplus 1100W for 10 min)""Turned OFF switch.pool_pump (import 900W for 10 min)""No actions yet"(initial state)"Optimization OFF"(when disabled)
Correlate with Energy State
Observe howsensor.energy_control_pro_energy_state changes:
- Solar increases → State becomes
exporting - Export duration reaches 10 min → Integration turns ON a load
- State returns to
balancedorimporting - Import duration reaches 10 min → Integration turns OFF a load
Use Duration Sensors
Track how long conditions persist:sensor.energy_control_pro_import_duration_min: Resets when state leavesimportingsensor.energy_control_pro_export_duration_min: Resets when state leavesexporting
duration_threshold_min (default: 10 minutes).
Troubleshooting Dashboard Issues
Entities not found
Problem: Dashboard shows “Entity not available: sensor.energy_control_pro_solar_w” Solution:Verify integration is loaded
Go to Settings → Devices & Services and check that Energy Control Pro is configured.
Check entity names
Open Developer Tools → States and search for
energy_control_pro. Verify sensor names match the dashboard.Graph not showing data
Problem: History graph is empty or shows no lines. Solution:Wait for data collection
Home Assistant needs at least a few minutes of data before the graph displays.
Check recorder
Ensure the recorder integration is enabled and not excluding
energy_control_pro sensors.Grid status shows incorrect state
Problem: Status says “Balanced” when clearly importing or exporting. Solution: The threshold for “balanced” is 100W (defined inconst.py:35 as DEFAULT_STATE_THRESHOLD_W).
If import or export is below 100W, the integration considers it balanced. This is intentional to avoid noise from minor fluctuations.
To see the exact values, look at the Power Snapshot card, which always shows precise numbers.
Advanced Dashboard Features
Energy Flow Sankey Diagram
Create a visual flow diagram using the Sankey Chart card:Apex Charts for Advanced Visualization
Use ApexCharts card for more detailed graphs:Next Steps
- Review optimization strategies to understand dashboard behavior
- Configure alerts to receive notifications for sustained conditions
- Troubleshoot issues if sensors or optimization aren’t working as expected