From 6d8f5e779ee30409b10981d67aad6a1655d1cd20 Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:17:53 -0600 Subject: [PATCH 1/3] Fix input dry logic Should fix https://github.com/ApolloAutomation/PUMP-1/issues/18 --- Integrations/ESPHome/Core.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index f1e5352..6df9002 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -147,7 +147,7 @@ switch: - if: condition: or: - - binary_sensor.is_on: fluid_input_sensor + - binary_sensor.is_off: fluid_input_sensor - switch.is_off: stop_pump_when_dry then: - logger.log: "Pump turning on - conditions met" From de3e5baf9945e637e84ea0e3cbb989ffdd8b0b1d Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:27:54 -0600 Subject: [PATCH 2/3] undo previous yaml change undo previous yaml change --- Integrations/ESPHome/Core.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index 6df9002..f1e5352 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -147,7 +147,7 @@ switch: - if: condition: or: - - binary_sensor.is_off: fluid_input_sensor + - binary_sensor.is_on: fluid_input_sensor - switch.is_off: stop_pump_when_dry then: - logger.log: "Pump turning on - conditions met" From e46bdcb4050daec6c895c9cf94ab214007b794dd Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:29:15 -0600 Subject: [PATCH 3/3] Change condition to check if fluid input sensor is off --- Integrations/ESPHome/Core.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index f1e5352..9797b14 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -370,7 +370,7 @@ script: condition: - and: - switch.is_on: stop_pump_when_dry - - binary_sensor.is_on: fluid_input_sensor + - binary_sensor.is_off: fluid_input_sensor then: - logger.log: "Pump stopping - input dry" - switch.turn_off: pump_control