Skip to content

Instantly share code, notes, and snippets.

@moozaad
moozaad / automation.yml
Last active October 11, 2025 16:52
Home assistant, fox ess kh inverter with pred bat - load balancing between battery and house loads (like heat pump) when force charging
# --- AUTOMATION 1: Dynamic Charge Limiting ---
# This automation dynamically limits the battery charge rate to prevent the
# total grid current from exceeding a defined target (e.g., 95A), which helps
# to avoid tripping the main fuse during high-load situations.
alias: Dynamic PredBAT Charge Limit
description: Adjust PredBAT battery_rate_max based on grid headroom to target 95A
id: dynamic_predbat_charge_limit # A unique ID for easier reference
trigger: