From 7e3556d6857832bb3067cb9d19f65726e6902df7 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Wed, 29 Apr 2026 11:51:46 +0200 Subject: [PATCH] feat: change solix power delivery to cower usage on all 3 phases --- .../fw/modules/home-assistant/anker-solix.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/hosts/fw/modules/home-assistant/anker-solix.nix b/hosts/fw/modules/home-assistant/anker-solix.nix index ae414e5..f6cccb6 100644 --- a/hosts/fw/modules/home-assistant/anker-solix.nix +++ b/hosts/fw/modules/home-assistant/anker-solix.nix @@ -65,14 +65,20 @@ }; # Zero-export grid balancing automation - # Adjusts Solarbank output every 30s to drive grid import on phase C toward 0W + # Adjusts Solarbank output to drive net grid import (sum of all 3 phases) toward 0W "automation solarbank zero export" = { alias = "Solarbank Zero Export"; mode = "single"; - trigger = { - platform = "state"; - entity_id = "sensor.shellyem3_485519d792a7_channel_c_power"; - }; + trigger = [ + { + platform = "state"; + entity_id = [ + "sensor.shellyem3_485519d792a7_channel_a_power" + "sensor.shellyem3_485519d792a7_channel_b_power" + "sensor.shellyem3_485519d792a7_channel_c_power" + ]; + } + ]; condition = [ { condition = "not"; @@ -98,7 +104,7 @@ action = [ { variables = { - grid_power = "{{ states('sensor.shellyem3_485519d792a7_channel_c_power') | float(0) }}"; + grid_power = "{{ (states('sensor.shellyem3_485519d792a7_channel_a_power') | float(0)) + (states('sensor.shellyem3_485519d792a7_channel_b_power') | float(0)) + (states('sensor.shellyem3_485519d792a7_channel_c_power') | float(0)) }}"; current_output = "{{ states('number.solarbank_3_e2700_pro_system_output_preset') | float(0) }}"; }; }