ESP01 water level indicator and Domoticz

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
phil77560
New user
Posts: 8
Joined: 08 Jul 2016, 09:56

ESP01 water level indicator and Domoticz

#1 Post by phil77560 » 18 Jul 2016, 16:22

Hi,
I wanted to make what I thought an easy project !
I'd like to use a simple water level sensor(https://fr.aliexpress.com/item/1pc-Tank ... 110.hXHfTB) with an ESP01 and Domoticz.
I'd like to know if the water level is good or not.
So, I used easy esp, choosed Switch ... connected to GPIO2.
My water level is connected at the ground and serial with a 10k at Vcc , this middle point at GPIO2
but Value never changer ! ...
could someone help me please ?

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: ESP01 water level indicator and Domoticz

#2 Post by rtenklooster » 19 Jul 2016, 23:50

Okay, so one of the wires is connected to vcc, the other to the gpio pin.
You use a 10k pull down resistor (gpio to gnd)

If that's your setup you should disable the pull-up in the switch settings.
Richard - Groningen (NL) - Image

phil77560
New user
Posts: 8
Joined: 08 Jul 2016, 09:56

Re: ESP01 water level indicator and Domoticz

#3 Post by phil77560 » 20 Jul 2016, 07:27

rtenklooster wrote:Okay, so one of the wires is connected to vcc, the other to the gpio pin.
You use a 10k pull down resistor (gpio to gnd)

If that's your setup you should disable the pull-up in the switch settings.
I did and now it's good thank you...
Now, one more problem :cry: How can I have this level indicator in Domoticz ?....
Thank you once more

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: ESP01 water level indicator and Domoticz

#4 Post by rtenklooster » 22 Jul 2016, 13:29

phil77560 wrote:
rtenklooster wrote:Okay, so one of the wires is connected to vcc, the other to the gpio pin.
You use a 10k pull down resistor (gpio to gnd)

If that's your setup you should disable the pull-up in the switch settings.
I did and now it's good thank you...
Now, one more problem :cry: How can I have this level indicator in Domoticz ?....
Thank you once more
You can just add a dummy device, use a switch. Give it a proper name, add some actions e.g. send mail / push notification.
You can hide it with a $ in the name. Of course you could add / remove it from a floorplan.

Hope this gets you started.
Richard - Groningen (NL) - Image

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests