There is a variant with “http request” from Kay Pohl and another with “MQTT” from me.
After pressing the top button, the http request or the MQTT Publish is executed and then goes into the deepsleep mode.
However, first you have to upload the “Arduino http updater” via Arduino IDE and serial connection for the web update or one of the two variants of us, which already integrated the http updater.
After that you no longer need the serial connection and can always make the necessary adjustments via the browser.
All you have to do is the top button on the RST and the side button to GPIO12.
Both buttons must then still be connected to GND.
Otherwise, just VCC and GND must be connected to the battery, but that’s clear.
To activate the web update, the side button must be pressed and hold.
Then press the top button briefly and wait until the LED on the ESP starts to blink, then you can call up the web address of the ESP.
Excellent work! Any idea how long the battery will last? I’ve had problems running my Nodemcu sensors off a battery more than a few days (even with a deepsleep), but I’m thinking yours would last much longer (active only when button is pressed, no voltage regulators like the Nodemcu has), obviously dependent on usage of the button.
I have the button now about 4 weeks active and the battery still shows the same voltage.
It’s used about 4 times a day (this switch turn on my son’s bed light).
How long does it take to send the button press? If it is in deep sleep, I would assume it has to wake, connect to wifi and then send signal. The connecting part could take a second or two I would think.
On thingiverse is only the STL files for the button…
The STL from the adapter brings you nothing, because we have taken any contact pins that we had there …
Sorry, I’m not often online.
It’s difficult to install another button as only the main button can wake up the ESP from the deepsleep.
After waking up, you could press/take other buttons, but always have to press the reset button before.