Hello everyone!
I’m excited to share my latest Home Assistant Blueprint for users of the Solakon ONE inverter. This Blueprint implements a highly accurate and intelligent dynamic zero export solution. It’s designed to maximize your self-consumption while protecting your battery health through a unique three-tiered State-of-Charge (SOC) logic based on a Proportional Controller (P-Regulator). Say goodbye to unwanted grid feed-in and optimize your energy usage!
Solakon ONE Zero Export Blueprint
This Home Assistant Blueprint implements dynamic zero export for the Solakon ONE inverter, based on a Proportional Controller (P-Regulator) and an intelligent three-tiered State-of-Charge (SOC) logic.
Blueprint Download & Source
Download via My Home Assistant:
GitHub Source Link (YAML):
https://github.com/D4nte85/Solakon-One-Nulleinspeisung-Blueprint-homeassistant/blob/Solakon-ONE-Zero-Export/solakon_one_zeroexport.yaml
Installation & Preparation
Important Note on Variables (For Developers)
As an important note for other users and Blueprint developers: the variable declarations within this blueprint use the only reliably working method for Blueprints in Home Assistant to prevent errors.
Preparation: Creating the Input Select Helper
The Blueprint requires an Input Select helper to store the status of the discharge cycle.
- In Home Assistant, navigate to Settings → Devices & Services → Helpers.
- Click Create Helper.
- Select the type Dropdown (Input Select).
- Enter a name, e.g.,
SOC Discharge Cycle Status. - Under Options, add exactly these two values:
onoff
- Save the helper. The resulting entity (e.g.,
input_select.soc_discharge_cycle_status) must then be selected in the Blueprint under Discharge Cycle Status Storage.
Functionality: Dynamic Zero Export with SOC Zone Logic (Solakon ONE) 
This Home Assistant Blueprint dynamically regulates the AC Output Power Limit of the Solakon ONE inverter to achieve zero export
while efficiently managing the battery via an intelligent three-stage State of Charge (SOC) logic.
1. Proportional Controller (P-Controller)
The core of the control system is a P-Controller that operates based on the Grid Power Sensor (e.g., Shelly 3EM).
- Measurement Principle: The grid power serves as the control deviation.
- Correction: The controller adjusts the Solakon ONE’s output power:
- Positive Grid Power (Consumption):
→ Increase Solakon ONE output power. - Negative Grid Power (Export):
→ Decrease Solakon ONE output power.
- Positive Grid Power (Consumption):
- Control: The speed (aggressiveness) of the correction is controlled via the Adjustment Factor (
anpassungs_faktor). The output power is always capped at a maximum value (max_active_power_limit) and a minimum of 0 W.
Three-Stage SOC Zone Logic
The control is divided into three operating modes based on the current SOC:
| Zone | SOC Range | Mode | Goal & Control |
|---|---|---|---|
| 1. Fast Discharge | SOC > Upper Threshold (e.g., 50%) | INV Discharge (PV Priority) |
Aggressive P-Control with a 0 W offset for exact zero export. An active discharge cycle helper maintains this state until the lower threshold is undershot. |
| 2. Battery Conservation | Lower Threshold (e.g., 20%) < SOC $\le$ Upper Threshold | INV Discharge (PV Priority) |
Active P-Control to maintain a negative zero-point offset (e.g., -30 W) to enforce slight grid import. Discharge power is additionally limited by a dynamic upper limit (PV generation minus PV charge reserve) to prioritize battery charging. |
| 3. Safety Stop | SOC $\le$ Lower Threshold (e.g., 20%) | Disabled |
Output power is immediately set to 0 W to protect the battery. The discharge cycle is ended. |
Remote Timeout Reset
To prevent an unintentional switch to Disabled mode due to a timeout, the Solakon ONE’s internal Remote Timeout Timer is proactively reset to a high value (≈ 3600 s) in the active control zones (1 and 2) as soon as it drops below 120 s.
Trigger Conditions (Automation Triggers)
The core logic of this zero-export Blueprint is activated by the following five critical events, ensuring immediate and stable regulation of the Solakon ONE:
-
Power Changes (with 3s Delay):
- Any state change of the Grid Power Sensor (
shelly_grid_power_sensor) for 3 or more seconds. - Any state change of the Solar Power Sensor (
solakon_solar_power_sensor) for 3 or more seconds. - (This stabilizes the Proportional-Controller (P-Controller) against measurement spikes.)
- Any state change of the Grid Power Sensor (
-
SOC Threshold Reached:
- The Battery SOC (
solakon_soc_sensor) goes above the Upper Limit (soc_fast_limit). (Triggers the aggressive discharge cycle.) - The Battery SOC goes below the Lower Limit (
soc_conservation_limit). (Triggers the safety stop and disables discharge.)
- The Battery SOC (
-
Mode Change:
- Any state change of the Operating Mode Selector (
solakon_mode_select). - (Ensures the automation reacts to external or manual changes to the inverter mode.)
- Any state change of the Operating Mode Selector (
Input Variables and Default Entities
Required Entities (Solakon ONE & Shelly/Smart Meter)
| Variable | Default Entity | Description |
|---|---|---|
| Shelly/Grid Power Sensor | (No Default) | Sensor for current grid power. Positive values = Consumption, Negative values = Export. |
| Solakon ONE - Solar Power | sensor.solakon_one_pv_power |
Current PV generation in Watts. |
| Solakon ONE - Battery SOC | sensor.solakon_one_battery_soc |
Battery State of Charge (%) |
| Solakon ONE - Output Power Controller | number.solakon_one_remote_active_power |
The entity to set the power target value. |
| Solakon ONE - Operating Mode Selection | select.solakon_one_remote_mode |
The entity to switch the operating mode. |
| Mode Reset Timer Entity (Setter) | number.solakon_one_remote_timeout_control |
Used to set/reset the remote timeout (to 3599 s). |
| Remote Timeout Countdown Sensor (Reader) | sensor.solakon_one_remote_timeout_countdown |
Sensor displaying the remaining timeout countdown. |
| Discharge Cycle Status Storage | (See above) | The created Input Select helper (on/off). |
Configuration Parameters (Setting Values)
| Parameter | Default Value | Description |
|---|---|---|
| SOC Threshold “Fast Control” | 50 % |
Upper threshold. Exceeding this starts the aggressive discharge cycle (Zone 1). |
| SOC Threshold “Charge Priority” | 20 % |
Lower threshold. Falling below this stops discharge (Zone 3). |
| Tolerance Range (Half-Width) | 50 W |
The allowed range in Watts around the zero point before correction. |
| Adjustment Factor | 1.5 |
Defines the aggressiveness of the P-Regulator in Zone 1. |
| Zero-Point Offset | -30 W |
The target value for grid power in Zone 2 (battery conservation). Negative value forces slight grid consumption. |
15 W |
PV power reserved in Zone 2 to allow battery charging despite discharge. | |
| Maximum Output Power (Hard Limit) | 800 W |
The absolute maximum AC output power that the Blueprint is allowed to set. This is used to respect hardware limits and allows for additional throttling of power (e.g., to 600 W), even if the device is technically capable of more. |
Feel free to ask any questions in the comments below! Happy automating!