From: David Woodhouse Date: Sun, 15 Dec 2024 16:48:34 +0000 (+0000) Subject: Move clamp filter to ntc_resistance not temperature X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9ee620ea71766333a0fbfa78fb56e099a9adddff;p=users%2Fdwmw2%2Fesp32-pool.git Move clamp filter to ntc_resistance not temperature --- diff --git a/bathroomfloor.yaml b/bathroomfloor.yaml index f8cde1d..031e4c9 100644 --- a/bathroomfloor.yaml +++ b/bathroomfloor.yaml @@ -149,3 +149,5 @@ sensor: # 2.52 -> 2.49 # 1.99 -> 1.96 + - id: !extend ntc_resistance + resistor: 9.97kΩ diff --git a/ufh.yaml b/ufh.yaml index 035d3ea..6c5b2b4 100644 --- a/ufh.yaml +++ b/ufh.yaml @@ -171,7 +171,7 @@ sensor: send_every: 1 send_first_at: 1 - clamp: - min_value: 8 + min_value: 5 max_value: 35 ignore_out_of_range: true on_value: @@ -186,19 +186,24 @@ sensor: id: ntc_resistance sensor: ntc_adc reference_voltage: 3.28v # measured - resistor: 9.97 kOhm configuration: DOWNSTREAM filters: - - median: - window_size: 5 - send_every: 5 - send_first_at: 5 + - clamp: + min_value: 5000 + max_value: 25000 + ignore_out_of_range: true - platform: adc id: ntc_adc attenuation: 12dB update_interval: never pin: ${adc_pin} + # Still doing this manually because the new multisample support uses the mean not the median + filters: + - median: + window_size: 5 + send_every: 5 + send_first_at: 5 climate: - platform: thermostat