From 40cad2ec703eb7e436f60b42ee722563334aa36b Mon Sep 17 00:00:00 2001 From: "willem.serruys" Date: Sat, 22 Aug 2026 19:20:07 +0200 Subject: [PATCH] fix: sensor_offset --- 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 222e0e4..f239c14 100644 --- a/configurations/home-assistant/configuration.yaml +++ b/configurations/home-assistant/configuration.yaml @@ -60,7 +60,7 @@ template: unit_of_measurement: "mm" state_class: measurement state: > - {% set sensor_offset = 290 %} {# distance (mm) from sensor to tank bottom #} + {% set sensor_offset = 2090 %} {# distance (mm) from sensor to tank bottom #} {% set distance = states('sensor.regenput_sensor_distance') | float(0) %} {% set height = sensor_offset - distance %} {{ [ [height, 0] | max, sensor_offset] | min | round(1) }}