From 7bf479f90affbe6f96df54d47369f774b1a96717 Mon Sep 17 00:00:00 2001 From: "willem.serruys" Date: Sat, 22 Aug 2026 19:46:16 +0200 Subject: [PATCH] fix: height --- configurations/home-assistant/configuration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/home-assistant/configuration.yaml b/configurations/home-assistant/configuration.yaml index 5a8bf3c..6fec60b 100644 --- a/configurations/home-assistant/configuration.yaml +++ b/configurations/home-assistant/configuration.yaml @@ -61,7 +61,7 @@ template: state_class: measurement state: > {% set mount_gap = 290 %} {# mm from sensor down to the "full" water line #} - {% set max_water_height = 2090 %} {# mm, tank depth from full line to bottom #} + {% set max_water_height = 1800 %} {# mm, tank depth from full line to bottom #} {% set distance = states('sensor.regenput_sensor_distance') | float(0) %} {% set height = max_water_height - (distance - mount_gap) %} {{ [ [height, 0] | max, max_water_height] | min | round(1) }}