An adapted version of a brilliant smart button enginered by Noel Portugal. It uses an esp8266-01 Espressif wi-fi module and lua programming language to turn on, publish an mqtt message and shutdown to prevent battery drain. It supports OTA wi-fi configuration.
-
Flash nodemcu firmware
add
end user setup
andMQTT
to the basic preselected modules. Download and flash using esptool -
Fork this project
-
Upload files
Note There are many
uploaders
out there, I use nodemcu-uploaderMake changes to
init.lua
to set your mqtt provider configuration and uploadinit.lua
,wifisetup.lua
andmqttpub.lua
to the esp-01 moduleA
iftttrequest.lua
has been added to test IFTTT (not required)