-
Notifications
You must be signed in to change notification settings - Fork 0
Power Management Basics
partach edited this page Feb 14, 2026
·
3 revisions
The HA_Felicity integration includes power management to prevent electrical overload by monitoring and controlling the current on all three phases of the electrical system.
The system continuously monitors electrical current across all three phases via TREX inverter registers.
When any phase exceeds the configured maximum amperage:
- System detects the overload condition
- Power is automatically reduced in 1 kW steps per cycle
- Reduction continues until all phases are within safe limits
- Power is gradually restored when demand decreases
- Condition: All three phases are below the maximum amperage threshold
- Behavior: System operates at user-configured default power level
- Status: Normal operation
- Trigger: Any single phase exceeds the Max Amperage setting
- Response: Immediate power reduction initiated
- Action: Power level decreased by 1 kW per cycle
- Frequency: Continues each cycle until safe levels are restored
- Protection: Prevents circuit breaker trips and electrical system damage
- Condition: Current demand decreases after scale-back
- Action: Power level increased by 1 kW per cycle
- Limit: Restoration continues until user-configured desired power level is reached
- Purpose: Maximizes system utilization while maintaining safety
The integration uses two primary settings for power management:
Description: Maximum charge/discharge power setting for the system
Function:
- Sets the target power level for normal operation
- Acts as the upper limit for power restoration
- Controls how fast energy flows to/from the battery
Usage:
- Used during both charging and discharging operations
- Reference point for power scaling algorithms
- Default operating point when no overload is detected
Description: Maximum allowable current for any single phase
Function:
- Threshold for triggering power reduction
- Protection limit for electrical installation
- Prevents overloading individual phases
Behavior:
- Continuously compared against real-time phase currents
- When exceeded, initiates power reduction cycle
- Reduction continues until all phases are within tolerance
Safety:
- Prevents electrical system damage
- Protects against circuit breaker trips
- Ensures balanced load across phases
State: Safe
├─ All phases < Max Amperage
├─ Power = User configured level
└─ Monitor continuously
State: Overload Detected
├─ Any phase >= Max Amperage
├─ Trigger: Power reduction
└─ Transition to: Reducing Power
State: Reducing Power
├─ Power level -= 1 kW per cycle
├─ Check: All phases < Max Amperage?
│ ├─ Yes → Transition to: Safe (Monitoring for restoration)
│ └─ No → Continue reducing
└─ Minimum limit check
State: Restoring Power
├─ Demand decreased
├─ Power level += 1 kW per cycle
├─ Check: Power < User configured level?
│ ├─ Yes → Continue restoring
│ └─ No → Transition to: Safe (at target level)
└─ Monitor for new overload
- Prevents electrical system overload
- Automatic protection without manual intervention
- Works independently for each phase
- Maximizes available power usage
- Automatically adapts to changing demand
- Gradual restoration prevents oscillation
- User-configurable thresholds
- Works with different electrical installations
- Compatible with varying load patterns
Implementation varies by inverter model: