Control Energenie With NodeMCU

You might have noticed, we like the concept of Smart Homes, and physical devices you can control remotely from an API using your local Wifi network. Specifically, we’re talking about Energenie sockets, a brand of electrical sockets controlled by radio. We’ve introduced previously these sockets in posts like Control Energenie with ESP8266, Control energenie with Pebble or Raspberry Pi and Energenie but this time, we’re going to show you how we built the same Energenie radio controller with a NodeMCU web server.

NodeMCU

NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. Source

The concept behind this is the same as our ESP8266 implementation. But, there are a few advantages of using NodeMCU instead.

Easier development

Lua scripting (easier than C++)

Standard 5V microusb power input

More stability (ESP8266 was constantly restarting (memory leak on C++?))