Page 1 of 1

ESP01 water level indicator and Domoticz

Posted: 18 Jul 2016, 16:22
by phil77560
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 ?

Re: ESP01 water level indicator and Domoticz

Posted: 19 Jul 2016, 23:50
by rtenklooster
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.

Re: ESP01 water level indicator and Domoticz

Posted: 20 Jul 2016, 07:27
by phil77560
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

Re: ESP01 water level indicator and Domoticz

Posted: 22 Jul 2016, 13:29
by rtenklooster
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.