From a4d8520837e19eb23de1ba3471b3483a2caff161 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 30 Oct 2018 16:49:33 +0100 Subject: [PATCH] Power Meter internal filter --- esphomeyaml/cookbook/power_meter.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/esphomeyaml/cookbook/power_meter.rst b/esphomeyaml/cookbook/power_meter.rst index 63ecb25bb..ad8afca6a 100644 --- a/esphomeyaml/cookbook/power_meter.rst +++ b/esphomeyaml/cookbook/power_meter.rst @@ -41,6 +41,19 @@ Thus, rearranging the expression yields a proportional factor of ``0.06`` from ` And if a technician shows up and he looks confused about what the heck you have done to your power meter, tell them about esphomelib 😉 +.. note:: + + Photoresistors often have a bit of noise during their switching phases. So in certain situations, + a single power meter tick can result in many pulses being counted. This effect is especially big on + ESP8266s. If you're experiencing this, try enabling the ``internal_filter:`` filter option: + + .. code:: yaml + + sensor: + - platform: pulse_counter + # ... + internal_filter: 10us + See Also --------