GPIO read float switch fluctuations during transition

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tgear
Normal user
Posts: 1
Joined: 30 Aug 2019, 09:24

GPIO read float switch fluctuations during transition

#1 Post by tgear » 30 Aug 2019, 09:33

Hi!

I have built a simple water tank level notification project using 4 water float switches.
Also, when the level is low it turns off my water pump so the automatic watering stops and I can water manually whatever has the most needs.

My problem is that as the water is not still, the float switch sends open/close very frequently during the transition of the water level (you can see below).

I want to verify 3 readings of the same state with a 30" second delay between the readings and then send the reading to domoticz.
Is it possible?

Thank you!
2019-08-29 08:06:09 Off
2019-08-29 08:06:01 On
2019-08-29 08:05:37 Off
2019-08-29 08:05:27 Off
2019-08-29 08:05:27 On
2019-08-29 08:05:20 On
2019-08-29 08:05:01 Off
2019-08-29 08:04:46 On
2019-08-29 08:04:43 Off

User avatar
grovkillen
Core team member
Posts: 3197
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: GPIO read float switch fluctuations during transition

#2 Post by grovkillen » 30 Aug 2019, 11:45

Yep using rules you may create a filter function. Read more here:
https://espeasy.readthedocs.io/en/lates ... Rules.html
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 26 guests