From bbdf1ccc9ec9624f8171e2c65a624b2215c623d7 Mon Sep 17 00:00:00 2001 From: Xavier Berger Date: Sun, 2 Feb 2025 17:34:31 +0100 Subject: [PATCH] Fix: open bypass relay when disabling router --- esp8266-proxy-client.yaml | 4 +--- solar_router/engine_progressive_with_bypass.yaml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/esp8266-proxy-client.yaml b/esp8266-proxy-client.yaml index acf1510..5bc7a93 100644 --- a/esp8266-proxy-client.yaml +++ b/esp8266-proxy-client.yaml @@ -52,9 +52,7 @@ substitutions: yellow_led_pin: GPIO2 relay_regulator_gate_pin: GPIO0 - bypass_timer_threshold: "30" - hide_regulators: "False" - + packages: power_meter: url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/ diff --git a/solar_router/engine_progressive_with_bypass.yaml b/solar_router/engine_progressive_with_bypass.yaml index 1345ace..c2397ca 100644 --- a/solar_router/engine_progressive_with_bypass.yaml +++ b/solar_router/engine_progressive_with_bypass.yaml @@ -26,6 +26,7 @@ switch: id(power_meter_activated) = 0; id(energy_divertion).turn_off(); id(regulator_opening).publish_state(0); + - script.execute: relay_regulation_control # Define the bypass relay # When bypass relay is ON, the regulator opening is set to 0