This is home automation using 4 chennel relay android studio code with nodemcu.
git clone https://github.com/ticatwolves/firebase-homeautomation.git
open it on android studio and arduino ide.
http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://github.com/firebase/firebase-arduino