From e6df71f10b100c802f9ca6c72b256338bd464baf Mon Sep 17 00:00:00 2001 From: Malte Date: Wed, 1 Jan 2025 20:02:48 +0100 Subject: [PATCH] fix hysteresis --- dewpoint.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dewpoint.yaml b/dewpoint.yaml index 6049470..b3d29ed 100644 --- a/dewpoint.yaml +++ b/dewpoint.yaml @@ -95,9 +95,10 @@ sensor: update_interval: 30s icon: "mdi:thermometer-water" - platform: template + id: fan_state_temp name: "Fan state" lambda: |- - uint8_t fan_state = 0; + uint8_t fan_state = id(fan_state_temp).state; float deltadp = id(inner_dew_point).state - id(outer_dew_point).state; if (deltadp > 6.0) { fan_state = 1;