This package provides dashboard sensors, scripts, and automations that work alongside your existing Smart Load Manager blueprint automation. It reuses your blueprint's input helpers and entity selections for seamless integration.
Add to your configuration.yaml:
homeassistant:
packages: !include_dir_named packages- Create
/config/packages/directory - Copy
smart_load_manager.yamlto/config/packages/ - Update entity names (see Entity Mapping below)
- Restart Home Assistant
Check Developer Tools → States for new entities like:
sensor.grid_demand_calculatedsensor.current_peak_limitsensor.power_margin
The package is designed to reuse your existing blueprint input helpers and entity selections. Here's how to configure it:
- Settings → Automations & Scenes
- Find "Smart Load Manager" automation
- Edit → switch to YAML mode to see your configuration
From your blueprint YAML, you'll see something like this:
use_blueprint:
path: smart_load_manager_blueprint.yaml
input:
pv_power: sensor.solaredge_current_power
grid_power: sensor.grid_power_import_export
home_consumption: sensor.house_consumption_w
battery_soc: sensor.solaredge_battery_level
emergency_override: input_boolean.emergency_charging_mode
tesla_charger: number.tesla_wall_connector_charging_amps
hyundai_charger: number.ioniq5_charging_current
heat_pump: switch.heat_pump_main
sauna: switch.sauna_heater
# ... etcReplace the placeholder entities in smart_load_manager.yaml with your actual entities:
# Power sensors:
sensor.home_consumption → sensor.house_consumption_w
sensor.pv_power → sensor.solaredge_current_power
sensor.grid_power → sensor.grid_power_import_export
sensor.battery_soc → sensor.solaredge_battery_level
# EV chargers:
number.tesla_charging_current → number.tesla_wall_connector_charging_amps
number.hyundai_charging_current → number.ioniq5_charging_current
# Emergency control:
input_boolean.emergency_override → input_boolean.emergency_charging_mode
# Optional loads (only if you configured them):
switch.heat_pump → switch.heat_pump_main
switch.sauna → switch.sauna_heater
# ... etcThe package will reference your existing blueprint input helpers for peak limits and battery settings. No additional input helpers needed!
The package templates will automatically use the same input helpers that your blueprint created.
- Copy the
smart_load_manager_dashboard.yamlcontent - Go to Settings → Dashboards
- Click + ADD DASHBOARD → New dashboard from scratch
- Name it "Smart Load Manager"
- Click the ⋮ menu → Raw configuration editor
- Paste the dashboard YAML content
- Click SAVE
The dashboard YAML needs to reference your actual entities. Update these key sections:
# Update these entities in the power flow card:
grid: sensor.grid_power → sensor.your_actual_grid_power
battery: sensor.battery_soc → sensor.your_actual_battery_soc
solar: sensor.pv_power → sensor.your_actual_pv_power
home: sensor.home_consumption → sensor.your_actual_home_consumption# Update charger entities in the dashboard:
entity: number.tesla_charging_current → number.your_actual_tesla_charger
entity: number.hyundai_charging_current → number.your_actual_hyundai_charger# Update switch entities for load monitoring:
entity: switch.heat_pump → switch.your_actual_heat_pump
entity: switch.sauna → switch.your_actual_sauna
# ... etc for AC unitsThe dashboard automatically uses your blueprint's input helpers:
- Peak limit sliders:
input_number.peak_p1throughpeak_p5 - Battery thresholds:
input_number.battery_soc_minandbattery_soc_emergency - Emergency override:
input_boolean.emergency_override
No changes needed for these - they'll work automatically with your existing blueprint configuration.
After saving, you should see:
- 📊 Power Flow: Live grid, solar, battery, and home consumption
- ⚡ Peak Management: Current limits and priority levels
- 🔋 EV Charging: Tesla and Hyundai charging controls
- 🏠 Load Status: Heat pump, sauna, AC units status
- 🚨 Emergency: Quick emergency mode toggle
- 📈 Statistics: Daily peak and average demand tracking
- Grid Demand:
sensor.grid_demand_calculated - Peak Limits:
sensor.current_peak_limit(dynamic based on time/conditions) - Power Margin:
sensor.power_margin - System Status:
sensor.load_manager_status - EV Power:
sensor.tesla_charging_power,sensor.hyundai_charging_power
- Reset Loads:
script.smart_load_reset_all_loads - Emergency Controls: Activate/deactivate scripts
- Notifications: Automatic alerts for emergency mode and peak warnings
- Logging: State change tracking
- Daily peak and average demand tracking
- Weekend/summer detection
- Over-peak alerts
Use the existing input helpers from your blueprint automation:
- Settings → Devices & Services → Helpers
- Search for "peak_p1", "peak_p2", etc.
- Adjust values as needed
Similarly, modify your blueprint's battery thresholds:
input_number.battery_soc_min- Minimum SoC for load suspensioninput_number.battery_soc_emergency- Emergency charging threshold
To add additional loads to the package:
- Add switch entities to the appropriate sections
- Update the suspension logic in the scripts
- Add status tracking in the template sensors
Modify the automation messages and conditions in the automation section of the package file.
- Check
configuration.yamlhas the packages include - Verify file is in
/config/packages/directory - Check YAML syntax with Configuration Check
- Verify all referenced entities exist in your system
- Check Home Assistant logs for errors
- Use Developer Tools to test template syntax
- Check that source sensors are working
- Verify template logic in Developer Tools → Template
- Restart Home Assistant if needed
- Monitor daily statistics sensors
- Adjust peak limits based on usage patterns
- Review notification messages for relevance
The entire Smart Load Manager can be backed up by saving the single package file.
To remove all Smart Load Manager entities, simply delete the package file and restart Home Assistant.
This package approach gives you a complete, self-contained Smart Load Manager system that's easy to maintain and customize!