From 271362511f922ec097bb541ea39b09001de9e13b Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:07:48 +0100 Subject: [PATCH] Use ADC sampling Use esphome/esphome#6330 to enable sampling on adc sensor and smooth the data. Solves #1918 --- esphome/nspanel_esphome_core.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/esphome/nspanel_esphome_core.yaml b/esphome/nspanel_esphome_core.yaml index bebf9c1..1c09943 100644 --- a/esphome/nspanel_esphome_core.yaml +++ b/esphome/nspanel_esphome_core.yaml @@ -36,7 +36,14 @@ external_components: url: https://github.com/edwardtfn/esphome ref: nextion-23 # To do: nextion-v425 components: - - nextion # Change this when that PR#6192 gets released (2024.3?) + - nextion # Change this when that PR#6192 gets released (2024.4?) + refresh: 300s + - source: + type: git + url: https://github.com/edwardtfn/esphome + ref: adc-sampling + components: + - adc # Change this when PR#6330 is merged (2024.4?) refresh: 300s ##### ESPHOME CONFIGURATION ##### @@ -1434,6 +1441,7 @@ sensor: pin: 38 update_interval: 60s attenuation: 11db + samples: 12 ##### INTERNAL TEMPERATURE SENSOR, adc reading converted to resistance (calculation)##### - id: resistance_sensor