I had a few Plant Soil Moisture sensors lying around already, but now i've bought the whole in one Package from Lilygo.


And because i'm a big fan of ESPeasy and already have few ESP8266 with BME280 Temp/Humidity in my Home i tought instead of writing my own Code lets give it a try. first time on ESP32 but someone already got this thingy working with ESPhome so it should be possible!
As Expected Flashing with espTool didn't work. But thats no issue, the .bin file can be flashed via the ESP32 Flash Download Tool. I used the ESP_Easy_mega_20200812_custom_ESP32_4M316k and it worked right away. Strangely I did have some extreme lag in the WebUI Until i've plugged the power for 3-5 minutes, after that it was back to normal.
Things nice to know:
Pin 4 Has to be set to High on Boot for the Sensors to be turned on!
I2C Ports have to be manually changed for the BH1750 Light sensor to be recognized.
Analog Soil Moisture sensor works fine but i never managed to get any readings on the Salt Sensor (GPIO 34)
The BatteryVoltage according to liligy Github code is off by about 0.1V .... gonna try more with a decent power supply that allows for specific voltage when it arrives.
Sleep seems to work fine. According to my cheap USB Powermeter the device uses 0.015A when under full load and 0.007A when in deep sleep.
I've currently plugged a 18650 Battery and 10 Minutes Sleep with 15 second wake time (Set to 10 Seconds, but guess it takes longer to send all values via UDP). Will update about Batterylife after a few days.
Does anyone have a good idea what function i could put on the GPIO35 aka "Wake Button"? Pressing Reset pretty much wakes up the device so there is no need for a extra button.
And what is the correct configuration for Timing with Sensor Values and Sleep?
I've currently set 10s Wake, 590s Sleep and Sensors to 590s. Does that matter? Or is it enought to simply set Sensors for longer than the Wake time? i.e 20 seconds and it will poll once when it wakes up and then go back to sleep.
Greetings,
Haldi