hugokernel / esphome-rain-detector

ESPHome Rain Detector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seems to work bad with my sensor.....

josemabcn opened this issue · comments

Dear Hugo,

I'm using a wemos d1 mini32 board and one sensor plate with a maximun resistance of 42540,9 ohms.

I modify your code with the following values:

  resistor_value: "9.78kOhm"

  # TODO: Handle case where resistance higher than max_resistance 

 # Skip the value not in the range
  min_resistance: "1000"
  max_resistance: "42540.8"

  # Value of the resistance at which a significant change is considered
  # to occur
  rain_detection_threshold: "4000"
 
  # If the resistance increases by this value, the sensor is considered
  # to be dry
  dry_detection_threshold: "4000"

  # When booting, if the resistance is lower this value, assume sensor is wet
  wet_resistance_when_booting: "20000"

But the problem is when I put a water drop on the plate, the systems starts to read the Rain Detector Resistance with a speed less than 30000 mili seconds, then the plate is starting to rust....

It seems to detect that is raining and put the Rain detector raining in ON and Rain Detector drying in OFF, but continues to reading the resistance quickly. When the plate starts to dry and arrive to the max resistance, the sensors Rain detector raining continues in ON and Rain Detector drying continues in OFF:

image

Something is wrong in my configuration, but I can't understand......

Any idea?.

Thanks in advance,

Solved, I forgot to include on_boot sentences......